Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: net/socket/ssl_client_socket_mac.cc

Issue 8342054: net: enable CRL sets behind a command line flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/x509_certificate_win.cc ('k') | net/socket/ssl_client_socket_nss.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/socket/ssl_client_socket_mac.h" 5 #include "net/socket/ssl_client_socket_mac.h"
6 6
7 #include <CoreServices/CoreServices.h> 7 #include <CoreServices/CoreServices.h>
8 #include <netdb.h> 8 #include <netdb.h>
9 #include <sys/socket.h> 9 #include <sys/socket.h>
10 #include <sys/types.h> 10 #include <sys/types.h>
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 } 1151 }
1152 1152
1153 int flags = 0; 1153 int flags = 0;
1154 if (ssl_config_.rev_checking_enabled) 1154 if (ssl_config_.rev_checking_enabled)
1155 flags |= X509Certificate::VERIFY_REV_CHECKING_ENABLED; 1155 flags |= X509Certificate::VERIFY_REV_CHECKING_ENABLED;
1156 if (ssl_config_.verify_ev_cert) 1156 if (ssl_config_.verify_ev_cert)
1157 flags |= X509Certificate::VERIFY_EV_CERT; 1157 flags |= X509Certificate::VERIFY_EV_CERT;
1158 verifier_.reset(new SingleRequestCertVerifier(cert_verifier_)); 1158 verifier_.reset(new SingleRequestCertVerifier(cert_verifier_));
1159 return verifier_->Verify( 1159 return verifier_->Verify(
1160 server_cert_, host_and_port_.host(), flags, 1160 server_cert_, host_and_port_.host(), flags,
1161 NULL /* no CRL set */,
1161 &server_cert_verify_result_, 1162 &server_cert_verify_result_,
1162 base::Bind(&SSLClientSocketMac::OnHandshakeIOComplete, 1163 base::Bind(&SSLClientSocketMac::OnHandshakeIOComplete,
1163 base::Unretained(this)), 1164 base::Unretained(this)),
1164 net_log_); 1165 net_log_);
1165 } 1166 }
1166 1167
1167 int SSLClientSocketMac::DoVerifyCertComplete(int result) { 1168 int SSLClientSocketMac::DoVerifyCertComplete(int result) {
1168 DCHECK(verifier_.get()); 1169 DCHECK(verifier_.get());
1169 verifier_.reset(); 1170 verifier_.reset();
1170 1171
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
1418 if (rv < 0 && rv != ERR_IO_PENDING) { 1419 if (rv < 0 && rv != ERR_IO_PENDING) {
1419 us->write_io_buf_ = NULL; 1420 us->write_io_buf_ = NULL;
1420 return OSStatusFromNetError(rv); 1421 return OSStatusFromNetError(rv);
1421 } 1422 }
1422 1423
1423 // always lie to our caller 1424 // always lie to our caller
1424 return noErr; 1425 return noErr;
1425 } 1426 }
1426 1427
1427 } // namespace net 1428 } // namespace net
OLDNEW
« no previous file with comments | « net/base/x509_certificate_win.cc ('k') | net/socket/ssl_client_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698