Lines Matching defs:tbscsr
155 free_tbscsr(KMF_TBS_CSR *tbscsr)
157 if (tbscsr) {
158 free_data(&tbscsr->version);
160 free_dn_data(&tbscsr->subject);
162 free_decoded_spki(&tbscsr->subjectPublicKeyInfo);
164 free_extensions(&tbscsr->extensions);
1995 KMF_TBS_CSR *tbscsr = NULL;
2007 tbscsr = malloc(sizeof (KMF_TBS_CSR));
2008 if (!tbscsr) {
2013 (void) memset(tbscsr, 0, sizeof (KMF_TBS_CSR));
2015 if ((ret = set_der_integer(&tbscsr->version, version)) != KMF_OK)
2018 if ((ret = get_rdn(asn1, &tbscsr->subject)) != KMF_OK)
2021 if ((ret = get_spki(asn1, &tbscsr->subjectPublicKeyInfo)) != KMF_OK)
2031 ret = decode_csr_extensions(asn1, &tbscsr->extensions);
2034 *signed_csr_ptr_ptr = tbscsr;
2038 if (tbscsr) {
2039 free_tbscsr(tbscsr);
2040 free(tbscsr);
2049 KMF_TBS_CSR **tbscsr)
2056 if (!tbscsr || !Value || !Value->Data || !Value->Length)
2069 *tbscsr = newcsr;
2075 *tbscsr = NULL;
2093 KMF_TBS_CSR *tbscsr = NULL;
2118 ret = decode_tbscsr_data(asn1, &tbscsr);
2122 csrptr->csr = *tbscsr;
2123 free(tbscsr);
2124 tbscsr = NULL;
2173 encode_csr_extensions(BerElement *asn1, KMF_TBS_CSR *tbscsr)
2181 if (tbscsr->extensions.numberOfExtensions > 0) {
2205 if (tbscsr->extensions.numberOfExtensions > 0) {
2219 &tbscsr->extensions)) != KMF_OK) {
2271 encode_tbs_csr(BerElement *asn1, KMF_TBS_CSR *tbscsr)
2277 (void) memcpy(&version, tbscsr->version.Data,
2278 tbscsr->version.Length);
2286 if ((ret = encode_rdn(asn1, &tbscsr->subject)) != KMF_OK)
2290 if ((ret = encode_spki(asn1, &tbscsr->subjectPublicKeyInfo)) != KMF_OK)
2293 if ((ret = encode_csr_extensions(asn1, tbscsr)) != KMF_OK)
2472 KMF_TBS_CSR *tbscsr = NULL;
2480 tbscsr = &signed_csr_ptr->csr;
2493 ret = encode_tbs_csr(asn1, tbscsr);