Enable liboqs build in UEFI/EDKII. (#975)

UEFI/EDKII used openssl as crypto lib with OPENSSL_SYS_UEFI.

This patch adds OQS_SYS_UEFI macro in liboqs to indicate special build in UEFI/EDKII.
With this patch, we can start building liboqs in UEFI/EDKII.

For algorithm specific patches, we will submit one by one later.

Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
jyao1 2021-04-20 20:55:31 +08:00 committed by GitHub
parent a04ef8d3ca
commit e48bc41c4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,11 @@ extern "C" {
#define OQS_API __attribute__((visibility("default")))
#endif
#if defined(OQS_SYS_UEFI)
#undef OQS_API
#define OQS_API
#endif
/**
* Represents return values from functions.
*
@ -200,6 +205,11 @@ void OQS_MEM_aligned_free(void *ptr);
#define UNUSED
#endif
#if defined(OQS_SYS_UEFI)
#undef UNUSED
#define UNUSED
#endif
#if defined(__cplusplus)
} // extern "C"
#endif