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

Unified Diff: net/cert/sha256_legacy_support_win.h

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/sha256_legacy_support_openssl_win.cc ('k') | net/cert/sha256_legacy_support_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/sha256_legacy_support_win.h
diff --git a/net/cert/sha256_legacy_support_win.h b/net/cert/sha256_legacy_support_win.h
index c98414ca94b882d5b060a91fe6c6795a9b327c09..054a3c09a80b866916576296d48682174b8ba6a5 100644
--- a/net/cert/sha256_legacy_support_win.h
+++ b/net/cert/sha256_legacy_support_win.h
@@ -6,8 +6,9 @@
#define NET_CERT_SHA256_LEGACY_SUPPORT_WIN_H_
#include <windows.h>
-#include <wincrypt.h>
+#include "base/strings/string_piece.h"
+#include "crypto/wincrypt_shim.h"
#include "net/base/net_export.h"
namespace net {
@@ -41,6 +42,21 @@ NET_EXPORT BOOL CryptVerifyCertificateSignatureExHook(
DWORD flags,
void* extra);
+// Returns true if |subject_type| a supported subject type for interception.
+bool IsSupportedSubjectType(DWORD subject_type);
+
+// Returns true if |issuer_type| is a supported issuer type for interception.
+bool IsSupportedIssuerType(DWORD issuer_type);
+
+// Returns the encoded form of |subject_data| or an empty StringPiece if not
+// supported.
+base::StringPiece GetSubjectSignature(DWORD subject_type,
+ void* subject_data);
+
+// Returns the public key of |issuer_data| or NULL if not supported.
+PCERT_PUBLIC_KEY_INFO GetIssuerPublicKey(DWORD issuer_type,
+ void* issuer_data);
+
} // namespace sha256_interception
} // namespace net
« no previous file with comments | « net/cert/sha256_legacy_support_openssl_win.cc ('k') | net/cert/sha256_legacy_support_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698