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

Unified Diff: net/cert/cert_verify_proc.h

Issue 2610903003: [refactor] Extract the CertVerifyResult assignment of has_md2, has_md4, (Closed)
Patch Set: address comments 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
« no previous file with comments | « no previous file | net/cert/cert_verify_proc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_verify_proc.h
diff --git a/net/cert/cert_verify_proc.h b/net/cert/cert_verify_proc.h
index 352610f22e54d073a735b790eb568be1fc839bff..5befe2418fe25fdabf233521fb2cbcd7ea9dd5be 100644
--- a/net/cert/cert_verify_proc.h
+++ b/net/cert/cert_verify_proc.h
@@ -14,6 +14,7 @@
#include "base/memory/ref_counted.h"
#include "net/base/net_export.h"
#include "net/cert/x509_cert_types.h"
+#include "net/cert/x509_certificate.h"
namespace net {
@@ -134,6 +135,21 @@ class NET_EXPORT CertVerifyProc
DISALLOW_COPY_AND_ASSIGN(CertVerifyProc);
};
+// Sets the weak signature hash fields of |verify_result| to true if
+// applicable for |cert|, otherwise does not modify them.
+//
+// The fields in question are: |has_md2|, |has_md4|, |has_md5|,|has_sha1| and
+// |has_sha1_leaf|.
+//
+// Returns the hash algorithm that was determined for |cert|.
+//
+// This function is intended to be used as a helper by platform-specific
+// CertVerifyProc implementations.
+X509Certificate::SignatureHashAlgorithm FillCertVerifyResultWeakSignature(
+ X509Certificate::OSCertHandle cert,
+ bool is_leaf,
+ CertVerifyResult* verify_result);
+
} // namespace net
#endif // NET_CERT_CERT_VERIFY_PROC_H_
« no previous file with comments | « no previous file | net/cert/cert_verify_proc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698