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

Side by Side Diff: net/socket/ssl_client_socket_win.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 #include "net/socket/ssl_client_socket_win.h" 5 #include "net/socket/ssl_client_socket_win.h"
6 6
7 #include <schnlsp.h> 7 #include <schnlsp.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 } 547 }
548 548
549 int SSLClientSocketWin::ExportKeyingMaterial(const base::StringPiece& label, 549 int SSLClientSocketWin::ExportKeyingMaterial(const base::StringPiece& label,
550 bool has_context, 550 bool has_context,
551 const base::StringPiece& context, 551 const base::StringPiece& context,
552 unsigned char* out, 552 unsigned char* out,
553 unsigned int outlen) { 553 unsigned int outlen) {
554 return ERR_NOT_IMPLEMENTED; 554 return ERR_NOT_IMPLEMENTED;
555 } 555 }
556 556
557 int SSLClientSocketOpenSSL::GetTlsUniqueChannelBinding(
558 unsigned char* out,
559 unsigned int *outlen,
560 unsigned int outlen_max) {
561 return ERR_NOT_IMPLEMENTED;
562 }
563
557 SSLClientSocket::NextProtoStatus 564 SSLClientSocket::NextProtoStatus
558 SSLClientSocketWin::GetNextProto(std::string* proto, 565 SSLClientSocketWin::GetNextProto(std::string* proto,
559 std::string* server_protos) { 566 std::string* server_protos) {
560 proto->clear(); 567 proto->clear();
561 server_protos->clear(); 568 server_protos->clear();
562 return kNextProtoUnsupported; 569 return kNextProtoUnsupported;
563 } 570 }
564 571
565 ServerBoundCertService* SSLClientSocketWin::GetServerBoundCertService() const { 572 ServerBoundCertService* SSLClientSocketWin::GetServerBoundCertService() const {
566 return NULL; 573 return NULL;
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 UpdateConnectionTypeHistograms(CONNECTION_SSL_MD2_CA); 1613 UpdateConnectionTypeHistograms(CONNECTION_SSL_MD2_CA);
1607 } 1614 }
1608 1615
1609 void SSLClientSocketWin::FreeSendBuffer() { 1616 void SSLClientSocketWin::FreeSendBuffer() {
1610 SECURITY_STATUS status = FreeContextBuffer(send_buffer_.pvBuffer); 1617 SECURITY_STATUS status = FreeContextBuffer(send_buffer_.pvBuffer);
1611 DCHECK(status == SEC_E_OK); 1618 DCHECK(status == SEC_E_OK);
1612 memset(&send_buffer_, 0, sizeof(send_buffer_)); 1619 memset(&send_buffer_, 0, sizeof(send_buffer_));
1613 } 1620 }
1614 1621
1615 } // namespace net 1622 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698