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

Unified Diff: net/cert/sha256_legacy_support_win.h

Issue 687833002: Get net_unittests working on Windows BoringSSL port. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wincrypt
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
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 4243a8fa35f62e04f3eac41d5c134a965df8ef5c..401d229b21a96be468f7c0a750304e864ea8d1c6 100644
--- a/net/cert/sha256_legacy_support_win.h
+++ b/net/cert/sha256_legacy_support_win.h
@@ -7,6 +7,7 @@
#include <windows.h>
+#include "base/strings/string_piece.h"
#include "crypto/wincrypt.h"
#include "net/base/net_export.h"
@@ -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

Powered by Google App Engine
This is Rietveld 408576698