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

Unified Diff: android_webview/native/token_binding_manager_bridge.cc

Issue 2047763002: Switch AwTokenBindingManager's internals to PKCS#8. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ecprivatekey
Patch Set: fix build Created 4 years, 6 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 | « android_webview/java/src/org/chromium/android_webview/AwTokenBindingManager.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/token_binding_manager_bridge.cc
diff --git a/android_webview/native/token_binding_manager_bridge.cc b/android_webview/native/token_binding_manager_bridge.cc
index cf959f500e53feb994405bb0010095fb17d28d20..6744173a1c148a81794c95c88e4a47b23e80ed27 100644
--- a/android_webview/native/token_binding_manager_bridge.cc
+++ b/android_webview/native/token_binding_manager_bridge.cc
@@ -13,12 +13,10 @@
#include "crypto/ec_private_key.h"
#include "jni/AwTokenBindingManager_jni.h"
#include "net/base/net_errors.h"
-#include "net/ssl/channel_id_service.h"
using base::android::ConvertJavaStringToUTF8;
using base::android::ScopedJavaGlobalRef;
using content::BrowserThread;
-using net::ChannelIDService;
namespace android_webview {
@@ -39,8 +37,7 @@ void OnKeyReady(const ScopedJavaGlobalRef<jobject>& callback,
}
std::vector<uint8_t> private_key;
- key->ExportEncryptedPrivateKey(ChannelIDService::kEPKIPassword, 1,
- &private_key);
+ key->ExportPrivateKey(&private_key);
ScopedJavaLocalRef<jbyteArray> jprivate_key = base::android::ToJavaByteArray(
env, private_key.data(), private_key.size());
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwTokenBindingManager.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698