openssl: Improve compatibility to newer BoringSSL releases
Closes strongswan/strongswan#352
This commit is contained in:
@@ -153,10 +153,15 @@ time_t openssl_asn1_to_time(const ASN1_TIME *time);
|
||||
/**
|
||||
* Compatibility macros
|
||||
*/
|
||||
#ifdef OPENSSL_IS_BORINGSSL
|
||||
#if defined(OPENSSL_IS_BORINGSSL) && \
|
||||
(!defined(BORINGSSL_API_VERSION) || BORINGSSL_API_VERSION < 10)
|
||||
#define EVP_PKEY_base_id(p) EVP_PKEY_type(p->type)
|
||||
#endif
|
||||
|
||||
#ifndef OPENSSL_INIT_ENGINE_ALL_BUILTIN
|
||||
#define OPENSSL_INIT_ENGINE_ALL_BUILTIN 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Macros to define fallback getters/setters to access keys (BIGNUM*) for types
|
||||
* that were made opaque with OpenSSL 1.1.0.
|
||||
|
||||
Reference in New Issue
Block a user