Fix for Bug 83700. r=mcgreer, sr=blizard, a=asa

We need to pass a nsIInterfaceRequestor to PK11_ListCerts
  so that the user will get prompted for a password and see
  his/her certs on any installed smart cards.
This commit is contained in:
javi%netscape.com 2001-06-14 23:22:54 +00:00
Родитель 68e3e4fb7d
Коммит dfba5d00b7
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -32,7 +32,7 @@
* may use your version of this file under either the MPL or the
* GPL.
*
* $Id: nsNSSCertificate.cpp,v 1.30 2001/05/25 16:50:03 javi%netscape.com Exp $
* $Id: nsNSSCertificate.cpp,v 1.31 2001/06/14 23:22:54 javi%netscape.com Exp $
*/
#include "prmem.h"
@ -716,7 +716,6 @@ NS_IMETHODIMP
nsNSSCertificate::GetChain(nsISupportsArray **_rvChain)
{
nsresult rv;
CERTCertListNode *node;
/* Get the cert chain from NSS */
CERTCertList *nssChain = NULL;
PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("Getting chain for \"%s\"\n", mCert->nickname));
@ -2269,7 +2268,8 @@ nsNSSCertificateDB::GetCertsByType(PRUint32 aType,
nsCOMPtr<nsISupportsArray> certarray;
nsresult rv = NS_NewISupportsArray(getter_AddRefs(certarray));
if (NS_FAILED(rv)) return PR_FALSE;
certList = PK11_ListCerts(PK11CertListUnique, NULL);
nsCOMPtr<nsIInterfaceRequestor> cxt = new PipUIContext();
certList = PK11_ListCerts(PK11CertListUnique, cxt);
CERTCertListNode *node;
int i, count = 0;
for (node = CERT_LIST_HEAD(certList);