Lines Matching refs:tmpl
260 OSSL_CRMF_CERTTEMPLATE *tmpl = OSSL_CRMF_MSG_get0_tmpl(crm); in OSSL_CRMF_MSG_set0_validity() local
262 if (tmpl == NULL) { /* also crm == NULL implies this */ in OSSL_CRMF_MSG_set0_validity()
271 tmpl->validity = vld; in OSSL_CRMF_MSG_set0_validity()
317 OSSL_CRMF_CERTTEMPLATE *tmpl = OSSL_CRMF_MSG_get0_tmpl(crm); in OSSL_CRMF_MSG_set0_extensions() local
319 if (tmpl == NULL) { /* also crm == NULL implies this */ in OSSL_CRMF_MSG_set0_extensions()
329 sk_X509_EXTENSION_pop_free(tmpl->extensions, X509_EXTENSION_free); in OSSL_CRMF_MSG_set0_extensions()
330 tmpl->extensions = exts; in OSSL_CRMF_MSG_set0_extensions()
338 OSSL_CRMF_CERTTEMPLATE *tmpl = OSSL_CRMF_MSG_get0_tmpl(crm); in OSSL_CRMF_MSG_push0_extension() local
340 if (tmpl == NULL || ext == NULL) { /* also crm == NULL implies this */ in OSSL_CRMF_MSG_push0_extension()
345 if (tmpl->extensions == NULL) { in OSSL_CRMF_MSG_push0_extension()
346 if ((tmpl->extensions = sk_X509_EXTENSION_new_null()) == NULL) in OSSL_CRMF_MSG_push0_extension()
351 if (!sk_X509_EXTENSION_push(tmpl->extensions, ext)) in OSSL_CRMF_MSG_push0_extension()
356 sk_X509_EXTENSION_free(tmpl->extensions); in OSSL_CRMF_MSG_push0_extension()
357 tmpl->extensions = NULL; in OSSL_CRMF_MSG_push0_extension()
546 *OSSL_CRMF_CERTTEMPLATE_get0_publicKey(const OSSL_CRMF_CERTTEMPLATE *tmpl) in OSSL_CRMF_CERTTEMPLATE_get0_publicKey() argument
548 return tmpl != NULL ? tmpl->publicKey : NULL; in OSSL_CRMF_CERTTEMPLATE_get0_publicKey()
552 *OSSL_CRMF_CERTTEMPLATE_get0_serialNumber(const OSSL_CRMF_CERTTEMPLATE *tmpl) in OSSL_CRMF_CERTTEMPLATE_get0_serialNumber() argument
554 return tmpl != NULL ? tmpl->serialNumber : NULL; in OSSL_CRMF_CERTTEMPLATE_get0_serialNumber()
558 *OSSL_CRMF_CERTTEMPLATE_get0_subject(const OSSL_CRMF_CERTTEMPLATE *tmpl) in OSSL_CRMF_CERTTEMPLATE_get0_subject() argument
560 return tmpl != NULL ? tmpl->subject : NULL; in OSSL_CRMF_CERTTEMPLATE_get0_subject()
564 *OSSL_CRMF_CERTTEMPLATE_get0_issuer(const OSSL_CRMF_CERTTEMPLATE *tmpl) in OSSL_CRMF_CERTTEMPLATE_get0_issuer() argument
566 return tmpl != NULL ? tmpl->issuer : NULL; in OSSL_CRMF_CERTTEMPLATE_get0_issuer()
570 *OSSL_CRMF_CERTTEMPLATE_get0_extensions(const OSSL_CRMF_CERTTEMPLATE *tmpl) in OSSL_CRMF_CERTTEMPLATE_get0_extensions() argument
572 return tmpl != NULL ? tmpl->extensions : NULL; in OSSL_CRMF_CERTTEMPLATE_get0_extensions()
591 int OSSL_CRMF_CERTTEMPLATE_fill(OSSL_CRMF_CERTTEMPLATE *tmpl, in OSSL_CRMF_CERTTEMPLATE_fill() argument
597 if (tmpl == NULL) { in OSSL_CRMF_CERTTEMPLATE_fill()
601 if (subject != NULL && !X509_NAME_set((X509_NAME **)&tmpl->subject, subject)) in OSSL_CRMF_CERTTEMPLATE_fill()
603 if (issuer != NULL && !X509_NAME_set((X509_NAME **)&tmpl->issuer, issuer)) in OSSL_CRMF_CERTTEMPLATE_fill()
606 ASN1_INTEGER_free(tmpl->serialNumber); in OSSL_CRMF_CERTTEMPLATE_fill()
607 if ((tmpl->serialNumber = ASN1_INTEGER_dup(serial)) == NULL) in OSSL_CRMF_CERTTEMPLATE_fill()
610 if (pubkey != NULL && !X509_PUBKEY_set(&tmpl->publicKey, pubkey)) in OSSL_CRMF_CERTTEMPLATE_fill()