| OLD | NEW |
| 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 #ifndef NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ | 5 #ifndef NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ |
| 6 #define NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ | 6 #define NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ |
| 7 | 7 |
| 8 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424 | 8 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424 |
| 9 // until NSS 3.12.2 comes out and we update to it. | 9 // until NSS 3.12.2 comes out and we update to it. |
| 10 #define Lock FOO_NSS_Lock | 10 #define Lock FOO_NSS_Lock |
| 11 #include <certt.h> | 11 #include <certt.h> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 33 // The given hostname will be compared with the name(s) in the server's | 33 // The given hostname will be compared with the name(s) in the server's |
| 34 // certificate during the SSL handshake. ssl_config specifies the SSL | 34 // certificate during the SSL handshake. ssl_config specifies the SSL |
| 35 // settings. | 35 // settings. |
| 36 SSLClientSocketNSS(ClientSocket* transport_socket, | 36 SSLClientSocketNSS(ClientSocket* transport_socket, |
| 37 const std::string& hostname, | 37 const std::string& hostname, |
| 38 const SSLConfig& ssl_config); | 38 const SSLConfig& ssl_config); |
| 39 ~SSLClientSocketNSS(); | 39 ~SSLClientSocketNSS(); |
| 40 | 40 |
| 41 // SSLClientSocket methods: | 41 // SSLClientSocket methods: |
| 42 virtual void GetSSLInfo(SSLInfo* ssl_info); | 42 virtual void GetSSLInfo(SSLInfo* ssl_info); |
| 43 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); |
| 43 | 44 |
| 44 // ClientSocket methods: | 45 // ClientSocket methods: |
| 45 virtual int Connect(CompletionCallback* callback); | 46 virtual int Connect(CompletionCallback* callback); |
| 46 virtual void Disconnect(); | 47 virtual void Disconnect(); |
| 47 virtual bool IsConnected() const; | 48 virtual bool IsConnected() const; |
| 48 virtual bool IsConnectedAndIdle() const; | 49 virtual bool IsConnectedAndIdle() const; |
| 49 | 50 |
| 50 // Socket methods: | 51 // Socket methods: |
| 51 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 52 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 52 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 53 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 118 |
| 118 // Buffers for the network end of the SSL state machine | 119 // Buffers for the network end of the SSL state machine |
| 119 memio_Private* nss_bufs_; | 120 memio_Private* nss_bufs_; |
| 120 | 121 |
| 121 static bool nss_options_initialized_; | 122 static bool nss_options_initialized_; |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace net | 125 } // namespace net |
| 125 | 126 |
| 126 #endif // NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ | 127 #endif // NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ |
| OLD | NEW |