Index: net/base/asn1_util.h |
diff --git a/net/base/asn1_util.h b/net/base/asn1_util.h |
index 0b712985587b8d68424253d0cd8cc4a3c47e4a3d..73f74af4bd8ba79be1b6f6977a4c333b7ae3c50c 100644 |
--- a/net/base/asn1_util.h |
+++ b/net/base/asn1_util.h |
@@ -63,6 +63,13 @@ bool GetElement(base::StringPiece* in, |
NET_EXPORT_PRIVATE bool ExtractSPKIFromDERCert(base::StringPiece cert, |
base::StringPiece* spki_out); |
+// ExtractSubjectPublicKeyFromSPKI parses the DER encoded SubjectPublicKeyInfo |
+// in |spki| and extracts the bytes of the SubjectPublicKey. On successful |
+// return, |spk_out| is set to contain the public key, pointing into |spki|. |
+NET_EXPORT_PRIVATE bool ExtractSubjectPublicKeyFromSPKI( |
+ base::StringPiece spki, |
+ base::StringPiece* spk_out); |
+ |
// ExtractCRLURLsFromDERCert parses the DER encoded certificate in |cert| and |
// extracts the URL of each CRL. On successful return, the elements of |
// |urls_out| point into |cert|. |