OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_CLIENT_SOCKET_NSS_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 6 #define NET_SOCKET_SSL_CLIENT_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 30 matching lines...) Loading... |
41 // SSLClientSocket methods: | 41 // SSLClientSocket methods: |
42 virtual void GetSSLInfo(SSLInfo* ssl_info); | 42 virtual void GetSSLInfo(SSLInfo* ssl_info); |
43 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); | 43 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); |
44 virtual NextProtoStatus GetNextProto(std::string* proto); | 44 virtual NextProtoStatus GetNextProto(std::string* proto); |
45 | 45 |
46 // ClientSocket methods: | 46 // ClientSocket methods: |
47 virtual int Connect(CompletionCallback* callback, LoadLog* load_log); | 47 virtual int Connect(CompletionCallback* callback, LoadLog* load_log); |
48 virtual void Disconnect(); | 48 virtual void Disconnect(); |
49 virtual bool IsConnected() const; | 49 virtual bool IsConnected() const; |
50 virtual bool IsConnectedAndIdle() const; | 50 virtual bool IsConnectedAndIdle() const; |
51 virtual int GetPeerName(struct sockaddr* name, socklen_t* namelen); | 51 virtual int GetPeerAddress(AddressList* address) const; |
52 | 52 |
53 // Socket methods: | 53 // Socket methods: |
54 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 54 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
55 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 55 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
56 virtual bool SetReceiveBufferSize(int32 size); | 56 virtual bool SetReceiveBufferSize(int32 size); |
57 virtual bool SetSendBufferSize(int32 size); | 57 virtual bool SetSendBufferSize(int32 size); |
58 | 58 |
59 private: | 59 private: |
60 // Initializes NSS SSL options. Returns a net error code. | 60 // Initializes NSS SSL options. Returns a net error code. |
61 int InitializeSSLOptions(); | 61 int InitializeSSLOptions(); |
(...skipping 97 matching lines...) Loading... |
159 // A CryptoAPI in-memory certificate store that we import server | 159 // A CryptoAPI in-memory certificate store that we import server |
160 // certificates into so that we can verify and display the certificates | 160 // certificates into so that we can verify and display the certificates |
161 // using CryptoAPI. | 161 // using CryptoAPI. |
162 static HCERTSTORE cert_store_; | 162 static HCERTSTORE cert_store_; |
163 #endif | 163 #endif |
164 }; | 164 }; |
165 | 165 |
166 } // namespace net | 166 } // namespace net |
167 | 167 |
168 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 168 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
OLD | NEW |