| OLD | NEW |
| 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_win.h" | 5 #include "net/socket/ssl_client_socket_win.h" |
| 6 | 6 |
| 7 #include <schnlsp.h> | 7 #include <schnlsp.h> |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 } | 548 } |
| 549 | 549 |
| 550 int SSLClientSocketWin::ExportKeyingMaterial(const base::StringPiece& label, | 550 int SSLClientSocketWin::ExportKeyingMaterial(const base::StringPiece& label, |
| 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 SSLClientSocket::NextProtoStatus | 557 SSLClientSocket::NextProtoStatus |
| 558 SSLClientSocketWin::GetNextProto(std::string* proto) { | 558 SSLClientSocketWin::GetNextProto(std::string* proto, |
| 559 std::string* server_proto) { |
| 559 proto->clear(); | 560 proto->clear(); |
| 561 server_proto->clear(); |
| 560 return kNextProtoUnsupported; | 562 return kNextProtoUnsupported; |
| 561 } | 563 } |
| 562 | 564 |
| 563 int SSLClientSocketWin::Connect(OldCompletionCallback* callback) { | 565 int SSLClientSocketWin::Connect(OldCompletionCallback* callback) { |
| 564 DCHECK(transport_.get()); | 566 DCHECK(transport_.get()); |
| 565 DCHECK(next_state_ == STATE_NONE); | 567 DCHECK(next_state_ == STATE_NONE); |
| 566 DCHECK(!user_connect_callback_); | 568 DCHECK(!user_connect_callback_); |
| 567 | 569 |
| 568 net_log_.BeginEvent(NetLog::TYPE_SSL_CONNECT, NULL); | 570 net_log_.BeginEvent(NetLog::TYPE_SSL_CONNECT, NULL); |
| 569 | 571 |
| (...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1567 UpdateConnectionTypeHistograms(CONNECTION_SSL_MD2_CA); | 1569 UpdateConnectionTypeHistograms(CONNECTION_SSL_MD2_CA); |
| 1568 } | 1570 } |
| 1569 | 1571 |
| 1570 void SSLClientSocketWin::FreeSendBuffer() { | 1572 void SSLClientSocketWin::FreeSendBuffer() { |
| 1571 SECURITY_STATUS status = FreeContextBuffer(send_buffer_.pvBuffer); | 1573 SECURITY_STATUS status = FreeContextBuffer(send_buffer_.pvBuffer); |
| 1572 DCHECK(status == SEC_E_OK); | 1574 DCHECK(status == SEC_E_OK); |
| 1573 memset(&send_buffer_, 0, sizeof(send_buffer_)); | 1575 memset(&send_buffer_, 0, sizeof(send_buffer_)); |
| 1574 } | 1576 } |
| 1575 | 1577 |
| 1576 } // namespace net | 1578 } // namespace net |
| OLD | NEW |