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

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

Issue 8817021: Add a new SSLClientSocket::was_origin_cert_sent() method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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
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 // OpenSSL binding for SSLClientSocket. The class layout and general principle 5 // OpenSSL binding for SSLClientSocket. The class layout and general principle
6 // of operation is derived from SSLClientSocketNSS. 6 // of operation is derived from SSLClientSocketNSS.
7 7
8 #include "net/socket/ssl_client_socket_openssl.h" 8 #include "net/socket/ssl_client_socket_openssl.h"
9 9
10 #include <openssl/ssl.h> 10 #include <openssl/ssl.h>
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 unsigned char *out, unsigned int outlen) { 603 unsigned char *out, unsigned int outlen) {
604 return ERR_NOT_IMPLEMENTED; 604 return ERR_NOT_IMPLEMENTED;
605 } 605 }
606 606
607 SSLClientSocket::NextProtoStatus SSLClientSocketOpenSSL::GetNextProto( 607 SSLClientSocket::NextProtoStatus SSLClientSocketOpenSSL::GetNextProto(
608 std::string* proto) { 608 std::string* proto) {
609 *proto = npn_proto_; 609 *proto = npn_proto_;
610 return npn_status_; 610 return npn_status_;
611 } 611 }
612 612
613 bool SSLClientSocketWin::WasOriginBoundCertNegotiated() {
614 // TODO(rch): support Origin Bound Certificates.
615 return false;
616 }
617
613 void SSLClientSocketOpenSSL::DoReadCallback(int rv) { 618 void SSLClientSocketOpenSSL::DoReadCallback(int rv) {
614 // Since Run may result in Read being called, clear |user_read_callback_| 619 // Since Run may result in Read being called, clear |user_read_callback_|
615 // up front. 620 // up front.
616 OldCompletionCallback* c = user_read_callback_; 621 OldCompletionCallback* c = user_read_callback_;
617 user_read_callback_ = NULL; 622 user_read_callback_ = NULL;
618 user_read_buf_ = NULL; 623 user_read_buf_ = NULL;
619 user_read_buf_len_ = 0; 624 user_read_buf_len_ = 0;
620 c->Run(rv); 625 c->Run(rv);
621 } 626 }
622 627
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 net_log_.AddByteTransferEvent(NetLog::TYPE_SSL_SOCKET_BYTES_SENT, rv, 1250 net_log_.AddByteTransferEvent(NetLog::TYPE_SSL_SOCKET_BYTES_SENT, rv,
1246 user_write_buf_->data()); 1251 user_write_buf_->data());
1247 return rv; 1252 return rv;
1248 } 1253 }
1249 1254
1250 int err = SSL_get_error(ssl_, rv); 1255 int err = SSL_get_error(ssl_, rv);
1251 return MapOpenSSLError(err, err_tracer); 1256 return MapOpenSSLError(err, err_tracer);
1252 } 1257 }
1253 1258
1254 } // namespace net 1259 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698