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

Side by Side Diff: net/base/ssl_client_socket_nss.cc

Issue 118039: Implement SSL client authentication for Windows.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 6 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/ssl_client_socket_nss.h ('k') | net/base/ssl_client_socket_win.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 // This file includes code GetDefaultCertNickname(), derived from 5 // This file includes code GetDefaultCertNickname(), derived from
6 // nsNSSCertificate::defaultServerNickName() 6 // nsNSSCertificate::defaultServerNickName()
7 // in mozilla/security/manager/ssl/src/nsNSSCertificate.cpp 7 // in mozilla/security/manager/ssl/src/nsNSSCertificate.cpp
8 // and SSLClientSocketNSS::DoVerifyCertComplete() derived from 8 // and SSLClientSocketNSS::DoVerifyCertComplete() derived from
9 // AuthCertificateCallback() in 9 // AuthCertificateCallback() in
10 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. 10 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp.
11 11
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 << " for cipherSuite " << channel_info.cipherSuite; 483 << " for cipherSuite " << channel_info.cipherSuite;
484 } 484 }
485 UpdateServerCert(); 485 UpdateServerCert();
486 } 486 }
487 ssl_info->cert_status = server_cert_verify_result_.cert_status; 487 ssl_info->cert_status = server_cert_verify_result_.cert_status;
488 DCHECK(server_cert_ != NULL); 488 DCHECK(server_cert_ != NULL);
489 ssl_info->cert = server_cert_; 489 ssl_info->cert = server_cert_;
490 LeaveFunction(""); 490 LeaveFunction("");
491 } 491 }
492 492
493 void SSLClientSocketNSS::GetSSLCertRequestInfo(
494 SSLCertRequestInfo* cert_request_info) {
495 // TODO(wtc): implement this.
496 }
497
493 void SSLClientSocketNSS::DoCallback(int rv) { 498 void SSLClientSocketNSS::DoCallback(int rv) {
494 EnterFunction(rv); 499 EnterFunction(rv);
495 DCHECK(rv != ERR_IO_PENDING); 500 DCHECK(rv != ERR_IO_PENDING);
496 DCHECK(user_callback_); 501 DCHECK(user_callback_);
497 502
498 // since Run may result in Read being called, clear user_callback_ up front. 503 // since Run may result in Read being called, clear user_callback_ up front.
499 CompletionCallback* c = user_callback_; 504 CompletionCallback* c = user_callback_;
500 user_callback_ = NULL; 505 user_callback_ = NULL;
501 user_buf_ = NULL; 506 user_buf_ = NULL;
502 c->Run(rv); 507 c->Run(rv);
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 if (prerr == PR_WOULD_BLOCK_ERROR) { 804 if (prerr == PR_WOULD_BLOCK_ERROR) {
800 GotoState(STATE_PAYLOAD_WRITE); 805 GotoState(STATE_PAYLOAD_WRITE);
801 return ERR_IO_PENDING; 806 return ERR_IO_PENDING;
802 } 807 }
803 user_buf_ = NULL; 808 user_buf_ = NULL;
804 LeaveFunction(""); 809 LeaveFunction("");
805 return NetErrorFromNSPRError(prerr); 810 return NetErrorFromNSPRError(prerr);
806 } 811 }
807 812
808 } // namespace net 813 } // namespace net
OLDNEW
« no previous file with comments | « net/base/ssl_client_socket_nss.h ('k') | net/base/ssl_client_socket_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698