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

Unified Diff: net/base/asn1_util.h

Issue 10821111: Add a new ExtractSubjectPublicKeyFromSPKI method to asn1_utils. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/base/asn1_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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|.
« no previous file with comments | « no previous file | net/base/asn1_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698