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

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

Issue 10823084: Add a new GetTlsUniqueChannelBinding method to SSLSocket, and implement nss version. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 if (rv != 1) { 656 if (rv != 1) {
657 int ssl_error = SSL_get_error(ssl_, rv); 657 int ssl_error = SSL_get_error(ssl_, rv);
658 LOG(ERROR) << "Failed to export keying material;" 658 LOG(ERROR) << "Failed to export keying material;"
659 << " returned " << rv 659 << " returned " << rv
660 << ", SSL error code " << ssl_error; 660 << ", SSL error code " << ssl_error;
661 return MapOpenSSLError(ssl_error, err_tracer); 661 return MapOpenSSLError(ssl_error, err_tracer);
662 } 662 }
663 return OK; 663 return OK;
664 } 664 }
665 665
666 int SSLClientSocketOpenSSL::GetTlsUniqueChannelBinding(
667 unsigned char* out,
668 unsigned int *outlen,
669 unsigned int outlen_max) {
670 return ERR_NOT_IMPLEMENTED;
671 }
672
666 SSLClientSocket::NextProtoStatus SSLClientSocketOpenSSL::GetNextProto( 673 SSLClientSocket::NextProtoStatus SSLClientSocketOpenSSL::GetNextProto(
667 std::string* proto, std::string* server_protos) { 674 std::string* proto, std::string* server_protos) {
668 *proto = npn_proto_; 675 *proto = npn_proto_;
669 *server_protos = server_protos_; 676 *server_protos = server_protos_;
670 return npn_status_; 677 return npn_status_;
671 } 678 }
672 679
673 ServerBoundCertService* 680 ServerBoundCertService*
674 SSLClientSocketOpenSSL::GetServerBoundCertService() const { 681 SSLClientSocketOpenSSL::GetServerBoundCertService() const {
675 return NULL; 682 return NULL;
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 net_log_.AddByteTransferEvent(NetLog::TYPE_SSL_SOCKET_BYTES_SENT, rv, 1324 net_log_.AddByteTransferEvent(NetLog::TYPE_SSL_SOCKET_BYTES_SENT, rv,
1318 user_write_buf_->data()); 1325 user_write_buf_->data());
1319 return rv; 1326 return rv;
1320 } 1327 }
1321 1328
1322 int err = SSL_get_error(ssl_, rv); 1329 int err = SSL_get_error(ssl_, rv);
1323 return MapOpenSSLError(err, err_tracer); 1330 return MapOpenSSLError(err, err_tracer);
1324 } 1331 }
1325 1332
1326 } // namespace net 1333 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698