diff options
| author | Nils Maier <maierman@web.de> | 2013-08-25 18:00:46 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2013-09-20 23:06:49 +0200 |
| commit | 3590077d5c43d492b3e357d1a50afca4a7d1cfcf (patch) | |
| tree | 592516aa08b74c7e90c41a9b50c227f3f5b877b0 /src/SocketCore.cc | |
| parent | a76eeb2b8106dd725097750c3ee4958e505e3c85 (diff) | |
More auto-converts by cpp11-migrate
Diffstat (limited to 'src/SocketCore.cc')
| -rw-r--r-- | src/SocketCore.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc index 585ec634..1b4018b8 100644 --- a/src/SocketCore.cc +++ b/src/SocketCore.cc @@ -1175,9 +1175,9 @@ bool verifyHostname(const std::string& hostname, if(addrLen == 0) { return false; } - for(auto i = ipAddrs.begin(), eoi = ipAddrs.end(); i != eoi; ++i) { - if(addrLen == (*i).size() && - memcmp(binAddr, (*i).c_str(), addrLen) == 0) { + for(auto& ipAddr : ipAddrs) { + if(addrLen == ipAddr.size() && + memcmp(binAddr, ipAddr.c_str(), addrLen) == 0) { return true; } } @@ -1187,8 +1187,8 @@ bool verifyHostname(const std::string& hostname, if(dnsNames.empty()) { return util::tlsHostnameMatch(commonName, hostname); } - for(auto i = dnsNames.begin(), eoi = dnsNames.end(); i != eoi; ++i) { - if(util::tlsHostnameMatch(*i, hostname)) { + for(auto& dnsName : dnsNames) { + if(util::tlsHostnameMatch(dnsName, hostname)) { return true; } } |
