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

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

Issue 3174004: Pass both hostname and port into SSLClientSocket (Closed)
Patch Set: Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_CERT_REQUEST_INFO_H_ 5 #ifndef NET_BASE_SSL_CERT_REQUEST_INFO_H_
6 #define NET_BASE_SSL_CERT_REQUEST_INFO_H_ 6 #define NET_BASE_SSL_CERT_REQUEST_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/ref_counted.h" 12 #include "base/ref_counted.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 class X509Certificate; 16 class X509Certificate;
17 17
18 // The SSLCertRequestInfo class contains the info that allows a user to 18 // The SSLCertRequestInfo class contains the info that allows a user to
19 // select a certificate to send to the SSL server for client authentication. 19 // select a certificate to send to the SSL server for client authentication.
20 class SSLCertRequestInfo 20 class SSLCertRequestInfo
21 : public base::RefCountedThreadSafe<SSLCertRequestInfo> { 21 : public base::RefCountedThreadSafe<SSLCertRequestInfo> {
22 public: 22 public:
23 // The host and port of the SSL server that requested client authentication. 23 // The host and port of the SSL server that requested client authentication.
24 // TODO(davidben): This should be a net::HostPortPair.
24 std::string host_and_port; 25 std::string host_and_port;
25 26
26 // A list of client certificates that match the server's criteria in the 27 // A list of client certificates that match the server's criteria in the
27 // SSL CertificateRequest message. In TLS 1.0, the CertificateRequest 28 // SSL CertificateRequest message. In TLS 1.0, the CertificateRequest
28 // message is defined as: 29 // message is defined as:
29 // enum { 30 // enum {
30 // rsa_sign(1), dss_sign(2), rsa_fixed_dh(3), dss_fixed_dh(4), 31 // rsa_sign(1), dss_sign(2), rsa_fixed_dh(3), dss_fixed_dh(4),
31 // (255) 32 // (255)
32 // } ClientCertificateType; 33 // } ClientCertificateType;
33 // 34 //
34 // opaque DistinguishedName<1..2^16-1>; 35 // opaque DistinguishedName<1..2^16-1>;
35 // 36 //
36 // struct { 37 // struct {
37 // ClientCertificateType certificate_types<1..2^8-1>; 38 // ClientCertificateType certificate_types<1..2^8-1>;
38 // DistinguishedName certificate_authorities<3..2^16-1>; 39 // DistinguishedName certificate_authorities<3..2^16-1>;
39 // } CertificateRequest; 40 // } CertificateRequest;
40 std::vector<scoped_refptr<X509Certificate> > client_certs; 41 std::vector<scoped_refptr<X509Certificate> > client_certs;
41 42
42 private: 43 private:
43 friend class base::RefCountedThreadSafe<SSLCertRequestInfo>; 44 friend class base::RefCountedThreadSafe<SSLCertRequestInfo>;
44 45
45 ~SSLCertRequestInfo() {} 46 ~SSLCertRequestInfo() {}
46 }; 47 };
47 48
48 } // namespace net 49 } // namespace net
49 50
50 #endif // NET_BASE_SSL_CERT_REQUEST_INFO_H_ 51 #endif // NET_BASE_SSL_CERT_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « jingle/notifier/communicator/ssl_socket_adapter.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698