summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@oath.com>2019-01-24 12:43:29 +0000
committerTor Brede Vekterli <vekterli@oath.com>2019-01-24 12:43:29 +0000
commitf5d008ac944d260e9f763d9aad2fbd520c3d2dc9 (patch)
tree7a0773da8f8d23232808054955ac1fa8f2fc660b
parentd23fe06a75f9b4269a66c611deaf5210dcb62f10 (diff)
More explicit constness
-rw-r--r--vespalib/src/vespa/vespalib/net/tls/impl/openssl_tls_context_impl.cpp2
1 files changed, 1 insertions, 1 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 07aea12a02a..fec11c9d18e 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
@@ -478,7 +478,7 @@ void OpenSslTlsContextImpl::set_ssl_ctx_self_reference() {
void OpenSslTlsContextImpl::set_accepted_cipher_suites(const std::vector<vespalib::string>& ciphers) {
vespalib::string openssl_ciphers;
size_t bad_ciphers = 0;
- for (auto& iana_cipher : ciphers) {
+ for (const auto& iana_cipher : ciphers) {
auto our_cipher = iana_cipher_suite_to_openssl(iana_cipher);
if (our_cipher) {
if (!openssl_ciphers.empty()) {