src: BoringSSL only requires CRYPTO_library_init
This commit is contained in:
parent
62dd1f5177
commit
b2d6550179
|
@ -154,15 +154,14 @@ bool check_http2_requirement(SSL *ssl) {
|
||||||
void libssl_init() {
|
void libssl_init() {
|
||||||
#if OPENSSL_1_1_API
|
#if OPENSSL_1_1_API
|
||||||
// No explicit initialization is required.
|
// No explicit initialization is required.
|
||||||
#else // !OPENSSL_1_1_API
|
#elif defined(OPENSSL_IS_BORINGSSL)
|
||||||
// OPENSSL_config() is not available in BoringSSL.
|
CRYPTO_library_init();
|
||||||
#if !defined(OPENSSL_IS_BORINGSSL)
|
#else // !OPENSSL_1_1_API && !defined(OPENSSL_IS_BORINGSSL)
|
||||||
OPENSSL_config(nullptr);
|
OPENSSL_config(nullptr);
|
||||||
#endif // !defined(OPENSSL_IS_BORINGSSL)
|
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
SSL_library_init();
|
SSL_library_init();
|
||||||
OpenSSL_add_all_algorithms();
|
OpenSSL_add_all_algorithms();
|
||||||
#endif // !OPENSSL_1_1_API
|
#endif // !OPENSSL_1_1_API && !defined(OPENSSL_IS_BORINGSSL)
|
||||||
}
|
}
|
||||||
|
|
||||||
int ssl_ctx_set_proto_versions(SSL_CTX *ssl_ctx, int min, int max) {
|
int ssl_ctx_set_proto_versions(SSL_CTX *ssl_ctx, int min, int max) {
|
||||||
|
|
Loading…
Reference in New Issue