Lines Matching defs:cert
24 #include <cert.h>
33 #include "util/cert.h"
46 CERTCertificate *cert = NULL;
68 cert = CERT_NewTempCertificate(handle, &der_item, NULL, PR_FALSE, PR_TRUE);
69 if (cert == NULL) {
74 ascii_crlf = BTOA_DataToAscii(cert->derCert.data, cert->derCert.len);
119 CERT_DestroyCertificate(cert);
134 CERTCertificate *cert = NULL;
194 cert = CERT_NewTempCertificate(handle, &der_item, NULL, PR_FALSE, PR_TRUE);
195 if (cert == NULL) {
202 *_der_blob = talloc_memdup(mem_ctx, cert->derCert.data,
203 cert->derCert.len);
212 *_der_size = cert->derCert.len;
217 CERT_DestroyCertificate(cert);
231 CERTCertificate *cert = NULL;
252 * the trusted issuer cert. Only NSS_InitContext will really open the DB
299 cert = CERT_NewTempCertificate(handle, &der_item, NULL, PR_FALSE, PR_TRUE);
300 if (cert == NULL) {
307 rv_verify = CERT_VerifyCertificateNow(handle, cert, PR_TRUE,
332 cert_pub_key = CERT_ExtractPublicKey(cert);
402 CERT_DestroyCertificate(cert);