diff options
Diffstat (limited to 'vespalib/src')
-rw-r--r-- | vespalib/src/vespa/vespalib/net/tls/impl/openssl_tls_context_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/net/tls/impl/openssl_tls_context_impl.cpp b/vespalib/src/vespa/vespalib/net/tls/impl/openssl_tls_context_impl.cpp index 384561d28b9..defa8a91650 100644 --- a/vespalib/src/vespa/vespalib/net/tls/impl/openssl_tls_context_impl.cpp +++ b/vespalib/src/vespa/vespalib/net/tls/impl/openssl_tls_context_impl.cpp @@ -135,7 +135,7 @@ X509Ptr read_untrusted_x509_from_bio(::BIO& bio) { return X509Ptr(::PEM_read_bio_X509(&bio, nullptr, nullptr, empty_passphrase())); } -SslCtxPtr new_tls1_2_ctx_with_auto_init() { +SslCtxPtr new_tls_ctx_with_auto_init() { ensure_openssl_initialized_once(); #if (OPENSSL_VERSION_NUMBER < 0x10100000L) return SslCtxPtr(::SSL_CTX_new(::TLSv1_2_method())); @@ -151,7 +151,7 @@ SslCtxPtr new_tls1_2_ctx_with_auto_init() { } // anon ns OpenSslTlsContextImpl::OpenSslTlsContextImpl(const TransportSecurityOptions& ts_opts) - : _ctx(new_tls1_2_ctx_with_auto_init()) + : _ctx(new_tls_ctx_with_auto_init()) { if (!_ctx) { throw CryptoException("Failed to create new TLS context"); |