diff options
author | wtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-21 17:54:28 +0000 |
---|---|---|
committer | wtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-21 17:54:28 +0000 |
commit | 2cd713f04f510f1454a757e870fc61fdd276a826 (patch) | |
tree | 4a9aed0083cec66fd16398fcc3709c69ea0bed2d /net/base/x509_certificate_win.cc | |
parent | e21fa4ac1597dbbf00d566c4bbeb76e547a7d301 (diff) | |
download | chromium_src-2cd713f04f510f1454a757e870fc61fdd276a826.zip chromium_src-2cd713f04f510f1454a757e870fc61fdd276a826.tar.gz chromium_src-2cd713f04f510f1454a757e870fc61fdd276a826.tar.bz2 |
We don't support SSL renegotiation yet. Add the
ERR_SSL_RENEGOTIATION_REQUESTED error code for when we
received a renegotiation request from a server.
Support the completion of an SSL handshake after we write
something. (This happens in a session resumption
handshake.)
Use the SSL configuration settings to turn on or turn off
various versions of the SSL protocol and server certificate
revocation checking.
Report all the errors of a certificate and whether revocation
checking was done in in the server_cert_status_ bitmask.
Create a new scoped_cert_chain_context.h header for the
ScopedCertChainContext class that used to be in
x509_certificate_win.cc, and use it to fix a leak of
chain_context on error paths in
SSLClientSocketWin::VerifyServerCert.
R=rvargas
BUG=3002,3003,3004
Review URL: http://codereview.chromium.org/7505
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3664 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/x509_certificate_win.cc')
-rw-r--r-- | net/base/x509_certificate_win.cc | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/net/base/x509_certificate_win.cc b/net/base/x509_certificate_win.cc index c63b351..138f20d 100644 --- a/net/base/x509_certificate_win.cc +++ b/net/base/x509_certificate_win.cc @@ -11,6 +11,7 @@ #include "base/string_util.h" #include "net/base/cert_status_flags.h" #include "net/base/ev_root_ca_metadata.h" +#include "net/base/scoped_cert_chain_context.h" #pragma comment(lib, "crypt32.lib") @@ -157,18 +158,6 @@ bool ContainsPolicy(const CERT_POLICIES_INFO* policies_info, return false; } -// This class wraps the CertFreeCertificateChain function in a class that can -// be passed as a template argument to scoped_ptr_malloc. -class ScopedPtrMallocFreeCertChain { - public: - void operator()(const CERT_CHAIN_CONTEXT* x) const { - CertFreeCertificateChain(x); - } -}; - -typedef scoped_ptr_malloc<const CERT_CHAIN_CONTEXT, - ScopedPtrMallocFreeCertChain> ScopedCertChainContext; - // Helper function to parse a principal from a WinInet description of that // principal. void ParsePrincipal(const std::string& description, |