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 #include "net/socket/ssl_server_socket_openssl.h" | 5 #include "net/socket/ssl_server_socket_openssl.h" |
6 | 6 |
7 #include <openssl/err.h> | 7 #include <openssl/err.h> |
8 #include <openssl/ssl.h> | 8 #include <openssl/ssl.h> |
9 | 9 |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "crypto/openssl_util.h" | 12 #include "crypto/openssl_util.h" |
13 #include "crypto/rsa_private_key.h" | 13 #include "crypto/rsa_private_key.h" |
14 #include "crypto/scoped_openssl_types.h" | 14 #include "crypto/scoped_openssl_types.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
16 #include "net/ssl/openssl_ssl_util.h" | 16 #include "net/ssl/openssl_ssl_util.h" |
17 | 17 |
18 #define GotoState(s) next_handshake_state_ = s | 18 #define GotoState(s) next_handshake_state_ = s |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
| 22 void SetSSLServerSessionCacheParameters( |
| 23 int max_session_id_cache_entries, |
| 24 int ssl_session_id_cache_timeout) { |
| 25 NOTIMPLEMENTED(); |
| 26 } |
| 27 |
22 void EnableSSLServerSockets() { | 28 void EnableSSLServerSockets() { |
23 // No-op because CreateSSLServerSocket() calls crypto::EnsureOpenSSLInit(). | 29 // No-op because CreateSSLServerSocket() calls crypto::EnsureOpenSSLInit(). |
24 } | 30 } |
25 | 31 |
26 scoped_ptr<SSLServerSocket> CreateSSLServerSocket( | 32 scoped_ptr<SSLServerSocket> CreateSSLServerSocket( |
27 scoped_ptr<StreamSocket> socket, | 33 scoped_ptr<StreamSocket> socket, |
28 X509Certificate* certificate, | 34 X509Certificate* certificate, |
29 crypto::RSAPrivateKey* key, | 35 crypto::RSAPrivateKey* key, |
30 const SSLConfig& ssl_config) { | 36 const SSLConfig& ssl_config) { |
31 crypto::EnsureOpenSSLInit(); | 37 crypto::EnsureOpenSSLInit(); |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 | 690 |
685 mode.ConfigureFlag(SSL_MODE_RELEASE_BUFFERS, true); | 691 mode.ConfigureFlag(SSL_MODE_RELEASE_BUFFERS, true); |
686 | 692 |
687 SSL_set_mode(ssl_, mode.set_mask); | 693 SSL_set_mode(ssl_, mode.set_mask); |
688 SSL_clear_mode(ssl_, mode.clear_mask); | 694 SSL_clear_mode(ssl_, mode.clear_mask); |
689 | 695 |
690 return OK; | 696 return OK; |
691 } | 697 } |
692 | 698 |
693 } // namespace net | 699 } // namespace net |
OLD | NEW |