Home | History | Annotate | Download | only in x509v3

Lines Matching defs:method

77 static X509_EXTENSION *do_ext_i2d(const X509V3_EXT_METHOD *method, int ext_nid,
120 const X509V3_EXT_METHOD *method;
129 if (!(method = X509V3_EXT_get_nid(ext_nid)))
135 if (method->v2i)
145 ext_struc = method->v2i(method, ctx, nval);
150 else if(method->s2i)
152 if(!(ext_struc = method->s2i(method, ctx, value))) return NULL;
154 else if(method->r2i)
161 if(!(ext_struc = method->r2i(method, ctx, value))) return NULL;
170 ext = do_ext_i2d(method, ext_nid, crit, ext_struc);
171 if(method->it) ASN1_item_free(ext_struc, ASN1_ITEM_ptr(method->it));
172 else method->ext_free(ext_struc);
177 static X509_EXTENSION *do_ext_i2d(const X509V3_EXT_METHOD *method, int ext_nid,
185 if (method->it)
188 ext_len = ASN1_item_i2d(ext_struc, &ext_der, ASN1_ITEM_ptr(method->it));
194 ext_len = method->i2d(ext_struc, NULL);
197 method->i2d(ext_struc, &p);
219 const X509V3_EXT_METHOD *method;
220 if (!(method = X509V3_EXT_get_nid(ext_nid))) {
224 return do_ext_i2d(method, ext_nid, crit, ext_struc);