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

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

Issue 2329593002: Add optional context for certificate errors. (Closed)
Patch Set: Address Matt's comments 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
Index: net/cert/internal/verify_signed_data.cc
diff --git a/net/cert/internal/verify_signed_data.cc b/net/cert/internal/verify_signed_data.cc
index 6c09073c3efe29332526e28deabd0a1745ae1796..eab84e379d3dff048d9c8635a127cb899c1102fe 100644
--- a/net/cert/internal/verify_signed_data.cc
+++ b/net/cert/internal/verify_signed_data.cc
@@ -26,14 +26,14 @@ namespace net {
namespace {
-DEFINE_CERT_ERROR_TYPE(kUnacceptableSignatureAlgorithm,
- "Unacceptable signature algorithm");
-DEFINE_CERT_ERROR_TYPE(kUnacceptableRsaModulusLength,
- "Unacceptable modulus length for RSA key");
-DEFINE_CERT_ERROR_TYPE(kUnacceptableEcdsaCurve,
- "Unacceptable curve for ECDSA key");
-DEFINE_CERT_ERROR_TYPE(kSignatureVerificationFailed,
- "Signature verification failed");
+DEFINE_CERT_ERROR_ID(kUnacceptableSignatureAlgorithm,
+ "Unacceptable signature algorithm");
+DEFINE_CERT_ERROR_ID(kUnacceptableRsaModulusLength,
+ "Unacceptable modulus length for RSA key");
+DEFINE_CERT_ERROR_ID(kUnacceptableEcdsaCurve,
+ "Unacceptable curve for ECDSA key");
+DEFINE_CERT_ERROR_ID(kSignatureVerificationFailed,
+ "Signature verification failed");
// Converts a DigestAlgorithm to an equivalent EVP_MD*.
WARN_UNUSED_RESULT bool GetDigest(DigestAlgorithm digest, const EVP_MD** out) {
« no previous file with comments | « net/cert/internal/verify_certificate_chain.cc ('k') | net/data/verify_certificate_chain_unittest/expired-intermediate.pem » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698