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

Side by Side Diff: net/socket/ssl_server_socket_nss.h

Issue 274783002: Implement SSL server socket over OpenSSL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for some comments. Created 6 years, 7 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
« no previous file with comments | « net/socket/ssl_client_socket_openssl.cc ('k') | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void DoHandshakeCallback(int result); 92 void DoHandshakeCallback(int result);
93 void DoReadCallback(int result); 93 void DoReadCallback(int result);
94 void DoWriteCallback(int result); 94 void DoWriteCallback(int result);
95 95
96 static SECStatus OwnAuthCertHandler(void* arg, 96 static SECStatus OwnAuthCertHandler(void* arg,
97 PRFileDesc* socket, 97 PRFileDesc* socket,
98 PRBool checksig, 98 PRBool checksig,
99 PRBool is_server); 99 PRBool is_server);
100 static void HandshakeCallback(PRFileDesc* socket, void* arg); 100 static void HandshakeCallback(PRFileDesc* socket, void* arg);
101 101
102 virtual int Init(); 102 int Init();
103 103
104 // Members used to send and receive buffer. 104 // Members used to send and receive buffer.
105 bool transport_send_busy_; 105 bool transport_send_busy_;
106 bool transport_recv_busy_; 106 bool transport_recv_busy_;
107 107
108 scoped_refptr<IOBuffer> recv_buffer_; 108 scoped_refptr<IOBuffer> recv_buffer_;
109 109
110 BoundNetLog net_log_; 110 BoundNetLog net_log_;
111 111
112 CompletionCallback user_handshake_callback_; 112 CompletionCallback user_handshake_callback_;
(...skipping 28 matching lines...) Expand all
141 141
142 State next_handshake_state_; 142 State next_handshake_state_;
143 bool completed_handshake_; 143 bool completed_handshake_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); 145 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS);
146 }; 146 };
147 147
148 } // namespace net 148 } // namespace net
149 149
150 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ 150 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_openssl.cc ('k') | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698