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

Unified Diff: net/cert/cert_verify_result.h

Issue 2616343005: Update some documentation for CertVerifyResult::verified_cert (Closed)
Patch Set: typo Created 3 years, 11 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
« net/cert/cert_verify_proc.h ('K') | « net/cert/cert_verify_proc.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_verify_result.h
diff --git a/net/cert/cert_verify_result.h b/net/cert/cert_verify_result.h
index 29c0675af3f3141b79d82f9f16170c4b7cbbca40..7946facfbfbe1e86cedb6e77eb3734f7d6eac6a2 100644
--- a/net/cert/cert_verify_result.h
+++ b/net/cert/cert_verify_result.h
@@ -26,14 +26,17 @@ class NET_EXPORT CertVerifyResult {
void Reset();
+ // Comparing CertVerifyResult with a nullptr |verified_cert| is invalid.
Ryan Sleevi 2017/01/09 23:20:14 Why? Are you documenting implementation details or
eroman 2017/01/09 23:33:12 I was documenting the current behavior, which reli
bool operator==(const CertVerifyResult& other) const;
// The certificate and chain that was constructed during verification.
// Note that the though the verified certificate will match the originally
// supplied certificate, the intermediate certificates stored within may
- // be substantially different. In the event of a verification failure, this
- // will contain the chain as supplied by the server. This may be NULL if
- // running within the sandbox.
+ // be substantially different (both their order and their content).
+ // In the event of a verification failure, |verified_cert| may contain a
+ // partially constructed path, or the original chain.
Ryan Sleevi 2017/01/09 23:20:14 s/, / /
eroman 2017/01/09 23:33:12 Done.
+ // In the case of successful verification the trust anchor is the final
+ // intermediate, or the target certificate if there are no intermediates.
Ryan Sleevi 2017/01/09 23:20:14 Documentation wise, there's also some pre-existing
eroman 2017/01/09 23:33:12 Done.
scoped_refptr<X509Certificate> verified_cert;
// Bitmask of CERT_STATUS_* from net/cert/cert_status_flags.h. Note that
« net/cert/cert_verify_proc.h ('K') | « net/cert/cert_verify_proc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698