mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-11 10:56:17 +08:00
API compatible with OpenSSL before version 1.1.0
Add BN_init() and CRYPTO_num_locks(), compatible with OpenSSL 0.9.8. And change the default OpenSSL API to 1.1.0.
This commit is contained in:
@@ -339,3 +339,10 @@ int CRYPTO_memcmp(const volatile void * volatile in_a,
|
||||
return x;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if OPENSSL_API_COMPAT < 0x10100000L
|
||||
int CRYPTO_num_locks(void)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user