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

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

Issue 2289363004: Add error information to VerifySignedData(). (Closed)
Patch Set: rebase onto origin/master Created 4 years, 3 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
« no previous file with comments | « net/cert/internal/verify_certificate_chain.cc ('k') | net/cert/internal/verify_signed_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/verify_signed_data.h
diff --git a/net/cert/internal/verify_signed_data.h b/net/cert/internal/verify_signed_data.h
index 97c150dffba27c887d830f764c69d57d0581e98a..9c749123f3bd5e4250f6baff773fc3aaf5313f20 100644
--- a/net/cert/internal/verify_signed_data.h
+++ b/net/cert/internal/verify_signed_data.h
@@ -15,6 +15,7 @@ class BitString;
class Input;
} // namespace der
+class CertErrors;
class SignatureAlgorithm;
class SignaturePolicy;
@@ -30,14 +31,15 @@ class SignaturePolicy;
// * The parsed RSA key is an adequate size.
// * The parsed EC key is for an allowed curve.
// * The signature algorithm and its parameters are acceptable.
+// |errors| - Non-null destination for errors/warnings information.
//
// Returns true if verification was successful.
NET_EXPORT bool VerifySignedData(const SignatureAlgorithm& signature_algorithm,
const der::Input& signed_data,
const der::BitString& signature_value,
const der::Input& public_key,
- const SignaturePolicy* policy)
- WARN_UNUSED_RESULT;
+ const SignaturePolicy* policy,
+ CertErrors* errors) WARN_UNUSED_RESULT;
} // namespace net
« no previous file with comments | « net/cert/internal/verify_certificate_chain.cc ('k') | net/cert/internal/verify_signed_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698