summaryrefslogtreecommitdiff
path: root/CryptoPkg/Library/Include/unistd.h
diff options
context:
space:
mode:
authorLong Qin <qin.long@intel.com>2017-04-06 13:53:06 +0800
committerQin Long <qin.long@intel.com>2017-04-07 00:22:07 +0800
commitabc4c8173dab56633e883847721da577e8c80388 (patch)
tree2d1d71b0cb6a8448b578f331feee1972ce32f7a4 /CryptoPkg/Library/Include/unistd.h
parentcffa7925a293d991957bc47865eac25516b59e63 (diff)
downloadedk2-platforms-abc4c8173dab56633e883847721da577e8c80388.tar.xz
CryptoPkg: Move openssl and CRT headers to private include section
Moving the header files for openssl and CRT wrappers to the private include section, since these files should be referenced by CryptoPkg internally. This update was supported by new [Includes.Common.Private] setting in Package DEC file. The external consumer modules should only use the interfaces defined in BaseCryptLib.h to access crypto functions. This change will be helpful to immediately detect any illegal direct reference to internal openssl headers. The Perl script "process_files.pl" was also updated to reflect the new private include path. Cc: Gao Liming <liming.gao@intel.com> Cc: Ting Ye <ting.ye@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long <qin.long@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com>
Diffstat (limited to 'CryptoPkg/Library/Include/unistd.h')
-rw-r--r--CryptoPkg/Library/Include/unistd.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/CryptoPkg/Library/Include/unistd.h b/CryptoPkg/Library/Include/unistd.h
new file mode 100644
index 0000000000..1a8d1c47de
--- /dev/null
+++ b/CryptoPkg/Library/Include/unistd.h
@@ -0,0 +1,15 @@
+/** @file
+ Include file to support building the third-party cryptographic library.
+
+Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution. The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include <CrtLibSupport.h>