Home | History | Annotate | Download | only in x509v3

Lines Matching refs:ext

71 static void ext_list_free(X509V3_EXT_METHOD *ext);
73 int X509V3_EXT_add(X509V3_EXT_METHOD *ext)
79 if(!sk_X509V3_EXT_METHOD_push(ext_list, ext)) {
93 ext);
95 const X509V3_EXT_METHOD *, ext);
112 const X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext)
115 if((nid = OBJ_obj2nid(ext->object)) == NID_undef) return NULL;
129 const X509V3_EXT_METHOD *ext;
132 if(!(ext = X509V3_EXT_get_nid(nid_from))) {
140 *tmpext = *ext;
152 static void ext_list_free(X509V3_EXT_METHOD *ext)
154 if(ext->ext_flags & X509V3_EXT_DYNAMIC) OPENSSL_free(ext);
168 void *X509V3_EXT_d2i(X509_EXTENSION *ext)
173 if(!(method = X509V3_EXT_get(ext))) return NULL;
174 p = ext->value->data;
175 if(method->it) return ASN1_item_d2i(NULL, &p, ext->value->length, ASN1_ITEM_ptr(method->it));
176 return method->d2i(NULL, &p, ext->value->length);
244 X509_EXTENSION *ext, *extmp;
283 ext = X509V3_EXT_i2d(nid, crit, value);
285 if(!ext) {
294 if(!sk_X509_EXTENSION_set(*x, extidx, ext)) return -1;
299 if(!sk_X509_EXTENSION_push(*x, ext)) return -1;