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

Unified Diff: net/cert/x509_util_openssl.cc

Issue 21561003: Add a utility method to convert SPKI from DER to JWK, so far implemented only for EC P256v1 (which … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@domain-bound-public-key
Patch Set: Created 7 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
Index: net/cert/x509_util_openssl.cc
diff --git a/net/cert/x509_util_openssl.cc b/net/cert/x509_util_openssl.cc
index e4dec9925751545ceabdeae3de66f386d639d281..23b8de1986145ef305a8d34de6929e52199a679f 100644
--- a/net/cert/x509_util_openssl.cc
+++ b/net/cert/x509_util_openssl.cc
@@ -59,6 +59,13 @@ bool CreateDomainBoundCertEC(
return false;
}
+bool ConvertSPKIFromDERToJWK(
+ base::StringPiece spki,
+ base::DictionaryValue* public_key_jwk) {
+ NOTIMPLEMENTED();
+ return false;
Ryan Sleevi 2013/08/02 23:08:43 Should be fairly similar, right?
+}
+
bool CreateSelfSignedCert(crypto::RSAPrivateKey* key,
const std::string& common_name,
uint32 serial_number,

Powered by Google App Engine
This is Rietveld 408576698