Index: nss/lib/pk11wrap/pk11akey.c |
=================================================================== |
--- nss/lib/pk11wrap/pk11akey.c (revision 257452) |
+++ nss/lib/pk11wrap/pk11akey.c (working copy) |
@@ -1703,7 +1703,13 @@ |
SECKEYPrivateKeyInfo * |
PK11_ExportPrivateKeyInfo(CERTCertificate *cert, void *wincx) |
{ |
- return NULL; |
+ SECKEYPrivateKeyInfo *pki = NULL; |
+ SECKEYPrivateKey *pk = PK11_FindKeyByAnyCert(cert, wincx); |
+ if (pk != NULL) { |
+ pki = PK11_ExportPrivKeyInfo(pk, wincx); |
eroman
2014/03/20 00:12:04
FYI this looks like it is mixing tabs and spaces.
wtc
2014/03/22 01:08:00
You're right. Unfortunately in several directories
|
+ SECKEY_DestroyPrivateKey(pk); |
+ } |
+ return pki; |
} |
SECKEYEncryptedPrivateKeyInfo * |