Lines Matching refs:cert
13 #include "cert.h"
32 CERTCertificate * cert = NULL;
41 cert = CERT_FindUserCertByUsage(CERT_GetDefaultCertDB(),
44 if ( cert ) {
45 privkey = PK11_FindKeyByAnyCert(cert, proto_win);
49 CERT_DestroyCertificate(cert);
52 } else { /* no name given, automatically find the right cert. */
60 cert = CERT_FindUserCertByUsage(CERT_GetDefaultCertDB(),
63 if ( !cert )
66 if (CERT_CheckCertValidTimes(cert, PR_Now(), PR_TRUE) !=
68 CERT_DestroyCertificate(cert);
71 rv = NSS_CmpCertChainWCANames(cert, caNames);
73 privkey = PK11_FindKeyByAnyCert(cert, proto_win);
78 CERT_DestroyCertificate(cert);
84 *pRetCert = cert;