OLD | NEW |
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 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ | 5 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ |
6 #define NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ | 6 #define NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ |
7 | 7 |
8 #include <certt.h> | 8 #include <certt.h> |
9 #include <keyt.h> | 9 #include <keyt.h> |
10 #include <nspr.h> | 10 #include <nspr.h> |
11 #include <nss.h> | 11 #include <nss.h> |
12 | 12 |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "net/base/completion_callback.h" | 14 #include "net/base/completion_callback.h" |
15 #include "net/base/host_port_pair.h" | 15 #include "net/base/host_port_pair.h" |
16 #include "net/base/net_log.h" | 16 #include "net/base/net_log.h" |
17 #include "net/base/nss_memio.h" | 17 #include "net/base/nss_memio.h" |
18 #include "net/base/ssl_config_service.h" | |
19 #include "net/socket/ssl_server_socket.h" | 18 #include "net/socket/ssl_server_socket.h" |
| 19 #include "net/ssl/ssl_config_service.h" |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 | 22 |
23 class SSLServerSocketNSS : public SSLServerSocket { | 23 class SSLServerSocketNSS : public SSLServerSocket { |
24 public: | 24 public: |
25 // See comments on CreateSSLServerSocket for details of how these | 25 // See comments on CreateSSLServerSocket for details of how these |
26 // parameters are used. | 26 // parameters are used. |
27 SSLServerSocketNSS(StreamSocket* socket, | 27 SSLServerSocketNSS(StreamSocket* socket, |
28 scoped_refptr<X509Certificate> certificate, | 28 scoped_refptr<X509Certificate> certificate, |
29 crypto::RSAPrivateKey* key, | 29 crypto::RSAPrivateKey* key, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 State next_handshake_state_; | 144 State next_handshake_state_; |
145 bool completed_handshake_; | 145 bool completed_handshake_; |
146 | 146 |
147 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); | 147 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); |
148 }; | 148 }; |
149 | 149 |
150 } // namespace net | 150 } // namespace net |
151 | 151 |
152 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ | 152 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ |
OLD | NEW |