diff options
author | Tor Brede Vekterli <vekterli@oath.com> | 2018-09-06 10:45:04 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@oath.com> | 2018-09-06 10:45:04 +0000 |
commit | a4379407c336ca542ad74249831ab004357e7d6b (patch) | |
tree | ee5ad04bd2f7ce68a3c8a4d43f82a7ccb2adf68d /vespalib | |
parent | cc0be38ecff08c170057b59f90185f50a8f371d7 (diff) |
Update function name to imply TLS version agnosticism
Diffstat (limited to 'vespalib')
-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"); |