Lines Matching defs:extns
138 free_extensions(KMF_X509_EXTENSIONS *extns)
143 if (extns && extns->numberOfExtensions > 0) {
144 for (i = 0; i < extns->numberOfExtensions; i++) {
145 exptr = &extns->extensions[i];
148 free(extns->extensions);
149 extns->numberOfExtensions = 0;
150 extns->extensions = NULL;
1106 encode_extension_list(BerElement *asn1, KMF_X509_EXTENSIONS *extns)
1111 for (i = 0; i < extns->numberOfExtensions; i++) {
1113 v.bv_val = (char *)extns->extensions[i].extnId.Data;
1114 v.bv_len = extns->extensions[i].extnId.Length;
1121 if (extns->extensions[i].critical) {
1123 extns->extensions[i].critical) == -1) {
1130 extns->extensions[i].BERvalue.Data,
1131 extns->extensions[i].BERvalue.Length) == -1) {
1141 encode_extensions(BerElement *asn1, KMF_X509_EXTENSIONS *extns)
1156 ret = encode_extension_list(extn, extns);
1296 get_extensions(BerElement *asn1, KMF_X509_EXTENSIONS *extns)
1323 extns->numberOfExtensions++;
1324 extns->extensions = realloc(extns->extensions,
1325 extns->numberOfExtensions *
1327 if (extns->extensions == NULL) {
1332 extns->extensions[extns->numberOfExtensions-1] = *ex;
1338 free_extensions(extns);
1966 decode_csr_extensions(BerElement *asn1, KMF_X509_EXTENSIONS *extns)
1984 ret = get_extensions(asn1, extns);