| 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> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |