mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-05 00:05:12 -04:00
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:
parent
a04ef8d3ca
commit
e48bc41c4f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user