diff options
Diffstat (limited to 'net/base/x509_certificate.h')
-rw-r--r-- | net/base/x509_certificate.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h index 215489b..b9a3995 100644 --- a/net/base/x509_certificate.h +++ b/net/base/x509_certificate.h @@ -224,6 +224,18 @@ class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> { } #endif +#if defined(OS_MACOSX) + // Creates a security policy for SSL client certificates. + static OSStatus CreateSSLClientPolicy(SecPolicyRef* outPolicy); + + // Adds all available SSL client identity certs to the given vector. + static bool GetSSLClientCertificates( + std::vector<scoped_refptr<X509Certificate> >* certs); + + // Creates the chain of certs to use for this client identity cert. + CFArrayRef CreateClientCertificateChain(); +#endif + // Verifies the certificate against the given hostname. Returns OK if // successful or an error code upon failure. // |