isCACert should be CERT_IsCACert

git-svn-id: svn://10.0.0.236/trunk@96970 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nicolson%netscape.com
2001-06-12 21:25:07 +00:00
parent 92d2fad05c
commit 1431833f7f

View File

@@ -2648,7 +2648,7 @@ pk11ListCertCallback(CERTCertificate *cert, SECItem *derCert, void *arg)
CERTCertTrust *trust;
PRBool isUnique = PR_FALSE;
char *nickname = NULL;
unsigned int certType;
if ((type == PK11CertListUnique) || (type == PK11CertListRootUnique)) {
isUnique = PR_TRUE;
@@ -2692,7 +2692,7 @@ pk11ListCertCallback(CERTCertificate *cert, SECItem *derCert, void *arg)
}
/* if we want CA certs and it ain't one, skip it */
if( type == PK11CertListCA && (!isCACert(newCert)) ) {
if( type == PK11CertListCA && (!CERT_IsCACert(newCert, &certType)) ) {
CERT_DestroyCertificate(newCert);
return SECSuccess;
}