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

Side by Side Diff: net/base/ssl_client_socket_nss.h

Issue 118039: Implement SSL client authentication for Windows.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 6 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
« no previous file with comments | « net/base/ssl_client_socket_mac.cc ('k') | net/base/ssl_client_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) 2006-2008 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_BASE_SSL_CLIENT_SOCKET_NSS_H_ 5 #ifndef NET_BASE_SSL_CLIENT_SOCKET_NSS_H_
6 #define NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ 6 #define NET_BASE_SSL_CLIENT_SOCKET_NSS_H_
7 7
8 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424 8 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424
9 // until NSS 3.12.2 comes out and we update to it. 9 // until NSS 3.12.2 comes out and we update to it.
10 #define Lock FOO_NSS_Lock 10 #define Lock FOO_NSS_Lock
11 #include <certt.h> 11 #include <certt.h>
(...skipping 21 matching lines...) Expand all
33 // The given hostname will be compared with the name(s) in the server's 33 // The given hostname will be compared with the name(s) in the server's
34 // certificate during the SSL handshake. ssl_config specifies the SSL 34 // certificate during the SSL handshake. ssl_config specifies the SSL
35 // settings. 35 // settings.
36 SSLClientSocketNSS(ClientSocket* transport_socket, 36 SSLClientSocketNSS(ClientSocket* transport_socket,
37 const std::string& hostname, 37 const std::string& hostname,
38 const SSLConfig& ssl_config); 38 const SSLConfig& ssl_config);
39 ~SSLClientSocketNSS(); 39 ~SSLClientSocketNSS();
40 40
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 44
44 // ClientSocket methods: 45 // ClientSocket methods:
45 virtual int Connect(CompletionCallback* callback); 46 virtual int Connect(CompletionCallback* callback);
46 virtual void Disconnect(); 47 virtual void Disconnect();
47 virtual bool IsConnected() const; 48 virtual bool IsConnected() const;
48 virtual bool IsConnectedAndIdle() const; 49 virtual bool IsConnectedAndIdle() const;
49 50
50 // Socket methods: 51 // Socket methods:
51 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 52 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
52 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 53 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 118
118 // Buffers for the network end of the SSL state machine 119 // Buffers for the network end of the SSL state machine
119 memio_Private* nss_bufs_; 120 memio_Private* nss_bufs_;
120 121
121 static bool nss_options_initialized_; 122 static bool nss_options_initialized_;
122 }; 123 };
123 124
124 } // namespace net 125 } // namespace net
125 126
126 #endif // NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ 127 #endif // NET_BASE_SSL_CLIENT_SOCKET_NSS_H_
OLDNEW
« no previous file with comments | « net/base/ssl_client_socket_mac.cc ('k') | net/base/ssl_client_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698