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

Unified Diff: net/socket/ssl_server_socket_nss.cc

Issue 383593002: Add GetSystemNSSKeySlot, merge GetPrivateNSSKeySlot/GetPublicNSSKeySlot to GetPersistentNSSKeySlot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use GetPersistentNSSKeySlot instead of GetDefaultNSSKeySlot Created 6 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/socket/ssl_server_socket_nss.cc
diff --git a/net/socket/ssl_server_socket_nss.cc b/net/socket/ssl_server_socket_nss.cc
index cfdc5c545ef894b992722d24aedb89c49aa9f0f2..3911f67644039006289cb9accba9b2e424f28fdc 100644
--- a/net/socket/ssl_server_socket_nss.cc
+++ b/net/socket/ssl_server_socket_nss.cc
@@ -446,7 +446,7 @@ int SSLServerSocketNSS::InitializeSSLOptions() {
}
SECKEYPrivateKeyStr* private_key = NULL;
- PK11SlotInfo* slot = crypto::GetPrivateNSSKeySlot();
+ PK11SlotInfo* slot = PK11_GetInternalSlot();
pneubeck (no reviews) 2014/07/10 09:44:11 This changed from PK11_GetInternalKeySlot to PK11_
mattm 2014/07/10 22:20:45 Right. This function only imports a temporary key,
if (!slot) {
CERT_DestroyCertificate(cert);
return ERR_UNEXPECTED;

Powered by Google App Engine
This is Rietveld 408576698