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

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

Issue 43115: Change the bad-certificate handler for SSL (using NSS) to return an... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_WIN_H_ 5 #ifndef NET_BASE_SSL_CLIENT_SOCKET_WIN_H_
6 #define NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ 6 #define NET_BASE_SSL_CLIENT_SOCKET_WIN_H_
7 7
8 #define SECURITY_WIN32 // Needs to be defined before including security.h 8 #define SECURITY_WIN32 // Needs to be defined before including security.h
9 9
10 #include <windows.h> 10 #include <windows.h>
(...skipping 21 matching lines...) Expand all
32 SSLClientSocketWin(ClientSocket* transport_socket, 32 SSLClientSocketWin(ClientSocket* transport_socket,
33 const std::string& hostname, 33 const std::string& hostname,
34 const SSLConfig& ssl_config); 34 const SSLConfig& ssl_config);
35 ~SSLClientSocketWin(); 35 ~SSLClientSocketWin();
36 36
37 // SSLClientSocket methods: 37 // SSLClientSocket methods:
38 virtual void GetSSLInfo(SSLInfo* ssl_info); 38 virtual void GetSSLInfo(SSLInfo* ssl_info);
39 39
40 // ClientSocket methods: 40 // ClientSocket methods:
41 virtual int Connect(CompletionCallback* callback); 41 virtual int Connect(CompletionCallback* callback);
42 virtual int ReconnectIgnoringLastError(CompletionCallback* callback);
43 virtual void Disconnect(); 42 virtual void Disconnect();
44 virtual bool IsConnected() const; 43 virtual bool IsConnected() const;
45 virtual bool IsConnectedAndIdle() const; 44 virtual bool IsConnectedAndIdle() const;
46 45
47 // Socket methods: 46 // Socket methods:
48 virtual int Read(char* buf, int buf_len, CompletionCallback* callback); 47 virtual int Read(char* buf, int buf_len, CompletionCallback* callback);
49 virtual int Write(const char* buf, int buf_len, CompletionCallback* callback); 48 virtual int Write(const char* buf, int buf_len, CompletionCallback* callback);
50 49
51 private: 50 private:
52 void DoCallback(int result); 51 void DoCallback(int result);
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // True if the user has no client certificate. 150 // True if the user has no client certificate.
152 bool no_client_cert_; 151 bool no_client_cert_;
153 152
154 // Renegotiation is in progress. 153 // Renegotiation is in progress.
155 bool renegotiating_; 154 bool renegotiating_;
156 }; 155 };
157 156
158 } // namespace net 157 } // namespace net
159 158
160 #endif // NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ 159 #endif // NET_BASE_SSL_CLIENT_SOCKET_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698