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

Unified Diff: net/cert/internal/verify_certificate_chain.h

Issue 2078653002: Add an out parameter to VerifyCertificateChain for retrieving the trusted chain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: net/cert/internal/verify_certificate_chain.h
diff --git a/net/cert/internal/verify_certificate_chain.h b/net/cert/internal/verify_certificate_chain.h
index 4d85eb66401420ffabfae705d8ac9a7c3c333c43..db6157d594b1b7fb476822fa5f36ab311a6692b7 100644
--- a/net/cert/internal/verify_certificate_chain.h
+++ b/net/cert/internal/verify_certificate_chain.h
@@ -51,6 +51,12 @@ class TrustStore;
// time:
// The UTC time to use for expiration checks.
//
+// trusted_chain_out:
+// The vector to populate with the verified trusted certificate chain.
+// If a nullptr is passed, this parameter is ignored.
+// If the target certificate can not be verified, this parameter is
+// ignored.
eroman 2016/06/16 22:11:36 Please additionally mention the order of the vecto
ryanchung 2016/06/16 22:47:08 Done.
+//
// ---------
// Outputs
// ---------
@@ -60,7 +66,9 @@ NET_EXPORT bool VerifyCertificateChain(
const std::vector<scoped_refptr<ParsedCertificate>>& cert_chain,
const TrustStore& trust_store,
const SignaturePolicy* signature_policy,
- const der::GeneralizedTime& time) WARN_UNUSED_RESULT;
+ const der::GeneralizedTime& time,
+ std::vector<scoped_refptr<ParsedCertificate>>* trusted_chain_out)
+ WARN_UNUSED_RESULT;
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698