Chromium Code Reviews| 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 12 matching lines...) Expand all Loading... | |
| 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, |
| 30 const SSLConfig& ssl_config); | 30 const SSLConfig& ssl_config); |
| 31 virtual ~SSLServerSocketNSS(); | 31 virtual ~SSLServerSocketNSS(); |
| 32 | 32 |
| 33 // SSLServerSocket interface. | 33 // SSLSocket interface. |
| 34 virtual int Handshake(const CompletionCallback& callback) OVERRIDE; | |
| 35 virtual int ExportKeyingMaterial(const base::StringPiece& label, | 34 virtual int ExportKeyingMaterial(const base::StringPiece& label, |
| 36 bool has_context, | 35 bool has_context, |
| 37 const base::StringPiece& context, | 36 const base::StringPiece& context, |
| 38 unsigned char* out, | 37 unsigned char* out, |
| 39 unsigned int outlen) OVERRIDE; | 38 unsigned int outlen) OVERRIDE; |
| 39 virtual int GetTlsUniqueChannelBinding(unsigned char* out, | |
| 40 unsigned int *outlen, | |
| 41 unsigned int outlen_max) OVERRIDE; | |
| 42 | |
| 43 // SSLServerSocket interface. | |
| 44 virtual int Handshake(const CompletionCallback& callback) OVERRIDE; | |
|
wtc
2012/07/30 20:05:08
Nit: to conform to the style guide's requirement t
Ryan Hamilton
2012/07/30 21:37:58
Done. FWIW, the order of declaration vs definitio
| |
| 40 | 45 |
| 41 // Socket interface (via StreamSocket). | 46 // Socket interface (via StreamSocket). |
| 42 virtual int Read(IOBuffer* buf, int buf_len, | 47 virtual int Read(IOBuffer* buf, int buf_len, |
| 43 const CompletionCallback& callback) OVERRIDE; | 48 const CompletionCallback& callback) OVERRIDE; |
| 44 virtual int Write(IOBuffer* buf, int buf_len, | 49 virtual int Write(IOBuffer* buf, int buf_len, |
| 45 const CompletionCallback& callback) OVERRIDE; | 50 const CompletionCallback& callback) OVERRIDE; |
| 46 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 51 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
| 47 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 52 virtual bool SetSendBufferSize(int32 size) OVERRIDE; |
| 48 | 53 |
| 49 // StreamSocket implementation. | 54 // StreamSocket implementation. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 140 | 145 |
| 141 State next_handshake_state_; | 146 State next_handshake_state_; |
| 142 bool completed_handshake_; | 147 bool completed_handshake_; |
| 143 | 148 |
| 144 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); | 149 DISALLOW_COPY_AND_ASSIGN(SSLServerSocketNSS); |
| 145 }; | 150 }; |
| 146 | 151 |
| 147 } // namespace net | 152 } // namespace net |
| 148 | 153 |
| 149 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ | 154 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_ |
| OLD | NEW |