Index: net/cert/cert_verify_proc.h |
diff --git a/net/cert/cert_verify_proc.h b/net/cert/cert_verify_proc.h |
index 3cea884bc62b2c67c444033fb93eae2de88ca0fc..fdc1205b8495486952f0e851c187ba91241b8182 100644 |
--- a/net/cert/cert_verify_proc.h |
+++ b/net/cert/cert_verify_proc.h |
@@ -38,6 +38,8 @@ class NET_EXPORT CertVerifyProc |
// |verify_result->cert_status|, and the error code for the most serious |
// error is returned. |
// |
+ // |ocsp_response|, if non-empty, is a stapled OCSP response to use. |
+ // |
// |flags| is bitwise OR'd of VerifyFlags: |
// |
// If VERIFY_REV_CHECKING_ENABLED is set in |flags|, online certificate |
@@ -56,6 +58,7 @@ class NET_EXPORT CertVerifyProc |
// implementation. |
int Verify(X509Certificate* cert, |
const std::string& hostname, |
+ const std::string& ocsp_response, |
int flags, |
CRLSet* crl_set, |
const CertificateList& additional_trust_anchors, |
@@ -66,6 +69,11 @@ class NET_EXPORT CertVerifyProc |
// passed to Verify() is ignored when this returns false. |
virtual bool SupportsAdditionalTrustAnchors() const = 0; |
+ // Returns true if the implementation supports passing a stapled OCSP response |
+ // to the Verify() call. The |ocsp_response| parameter passed to Verify() is |
+ // ignored when this returns false. |
+ virtual bool SupportsOCSPStapling() const = 0; |
+ |
protected: |
CertVerifyProc(); |
virtual ~CertVerifyProc(); |
@@ -81,6 +89,7 @@ class NET_EXPORT CertVerifyProc |
// value must be left untouched. |
virtual int VerifyInternal(X509Certificate* cert, |
const std::string& hostname, |
+ const std::string& ocsp_response, |
int flags, |
CRLSet* crl_set, |
const CertificateList& additional_trust_anchors, |