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:
Zhi Guan
2018-01-07 12:02:03 +08:00
parent 0803f0a034
commit 86e1fc9266
8 changed files with 5372 additions and 5348 deletions

View File

@@ -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