| OLD | NEW | 
|---|
| 1 // Copyright (c) 2006-2009 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_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 
| 6 #define NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ | 6 #define NET_SOCKET_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> | 
| 12 #undef Lock | 12 #undef Lock | 
| 13 #include <nspr.h> | 13 #include <nspr.h> | 
| 14 #include <nss.h> | 14 #include <nss.h> | 
| 15 #include <string> | 15 #include <string> | 
| 16 | 16 | 
| 17 #include "base/scoped_ptr.h" | 17 #include "base/scoped_ptr.h" | 
| 18 #include "net/base/cert_verifier.h" | 18 #include "net/base/cert_verifier.h" | 
| 19 #include "net/base/cert_verify_result.h" | 19 #include "net/base/cert_verify_result.h" | 
| 20 #include "net/base/completion_callback.h" | 20 #include "net/base/completion_callback.h" | 
| 21 #include "net/base/nss_memio.h" | 21 #include "net/base/nss_memio.h" | 
| 22 #include "net/base/ssl_client_socket.h" |  | 
| 23 #include "net/base/ssl_config_service.h" | 22 #include "net/base/ssl_config_service.h" | 
|  | 23 #include "net/socket/ssl_client_socket.h" | 
| 24 | 24 | 
| 25 namespace net { | 25 namespace net { | 
| 26 | 26 | 
| 27 class X509Certificate; | 27 class X509Certificate; | 
| 28 | 28 | 
| 29 // An SSL client socket implemented with Mozilla NSS. | 29 // An SSL client socket implemented with Mozilla NSS. | 
| 30 class SSLClientSocketNSS : public SSLClientSocket { | 30 class SSLClientSocketNSS : public SSLClientSocket { | 
| 31  public: | 31  public: | 
| 32   // Takes ownership of the transport_socket, which may already be connected. | 32   // Takes ownership of the transport_socket, which may already be connected. | 
| 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 | 
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 117   PRFileDesc* nss_fd_; | 117   PRFileDesc* nss_fd_; | 
| 118 | 118 | 
| 119   // Buffers for the network end of the SSL state machine | 119   // Buffers for the network end of the SSL state machine | 
| 120   memio_Private* nss_bufs_; | 120   memio_Private* nss_bufs_; | 
| 121 | 121 | 
| 122   static bool nss_options_initialized_; | 122   static bool nss_options_initialized_; | 
| 123 }; | 123 }; | 
| 124 | 124 | 
| 125 }  // namespace net | 125 }  // namespace net | 
| 126 | 126 | 
| 127 #endif  // NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ | 127 #endif  // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 
| OLD | NEW | 
|---|