Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Side by Side Diff: net/socket/ssl_server_socket_openssl.cc

Issue 396803002: Implement TLS client auth in the OS X OpenSSL port. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mark keys as opaque. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/socket/openssl_ssl_util.h"
17 #include "net/socket/ssl_error_params.h" 16 #include "net/socket/ssl_error_params.h"
17 #include "net/ssl/openssl_ssl_util.h"
18 18
19 #define GotoState(s) next_handshake_state_ = s 19 #define GotoState(s) next_handshake_state_ = s
20 20
21 namespace net { 21 namespace net {
22 22
23 void EnableSSLServerSockets() { 23 void EnableSSLServerSockets() {
24 // No-op because CreateSSLServerSocket() calls crypto::EnsureOpenSSLInit(). 24 // No-op because CreateSSLServerSocket() calls crypto::EnsureOpenSSLInit().
25 } 25 }
26 26
27 scoped_ptr<SSLServerSocket> CreateSSLServerSocket( 27 scoped_ptr<SSLServerSocket> CreateSSLServerSocket(
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 677
678 mode.ConfigureFlag(SSL_MODE_RELEASE_BUFFERS, true); 678 mode.ConfigureFlag(SSL_MODE_RELEASE_BUFFERS, true);
679 679
680 SSL_set_mode(ssl_, mode.set_mask); 680 SSL_set_mode(ssl_, mode.set_mask);
681 SSL_clear_mode(ssl_, mode.clear_mask); 681 SSL_clear_mode(ssl_, mode.clear_mask);
682 682
683 return OK; 683 return OK;
684 } 684 }
685 685
686 } // namespace net 686 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698