Home | History | Annotate | Download | only in x509v3

Lines Matching full:value

69 static int v3_check_critical(char **value);
70 static int v3_check_generic(char **value);
71 static X509_EXTENSION *do_ext_nconf(CONF *conf, X509V3_CTX *ctx, int ext_nid, int crit, char *value);
72 static X509_EXTENSION *v3_generic_extension(const char *ext, char *value, int crit, int type, X509V3_CTX *ctx);
73 static char *conf_lhash_get_string(void *db, char *section, char *value);
77 static unsigned char *generic_asn1(char *value, X509V3_CTX *ctx, long *ext_len);
80 /* char *value: Value */
82 char *value)
87 crit = v3_check_critical(&value);
88 if ((ext_type = v3_check_generic(&value)))
89 return v3_generic_extension(name, value, crit, ext_type, ctx);
90 ret = do_ext_nconf(conf, ctx, OBJ_sn2nid(name), crit, value);
94 ERR_add_error_data(4,"name=", name, ", value=", value);
100 /* char *value: Value */
102 char *value)
106 crit = v3_check_critical(&value);
107 if ((ext_type = v3_check_generic(&value)))
109 value, crit, ext_type, ctx);
110 return do_ext_nconf(conf, ctx, ext_nid, crit, value);
114 /* char *value: Value */
116 int crit, char *value)
135 if(*value == '@') nval = NCONF_get_section(conf, value + 1);
136 else nval = X509V3_parse_list(value);
140 ERR_add_error_data(4, "name=", OBJ_nid2sn(ext_nid), ",section=", value);
144 if(*value != '@') sk_CONF_VALUE_pop_free(nval,
150 if(!(ext_struc = method->s2i(method, ctx, value))) return NULL;
159 if(!(ext_struc = method->r2i(method, ctx, value))) return NULL;
226 static int v3_check_critical(char **value)
228 char *p = *value;
232 *value = p;
237 static int v3_check_generic(char **value)
240 char *p = *value;
255 *value = p;
260 static X509_EXTENSION *v3_generic_extension(const char *ext, char *value,
276 ext_der = string_to_hex(value, &ext_len);
278 ext_der = generic_asn1(value, ctx, &ext_len);
283 ERR_add_error_data(2, "value=", value);
307 static unsigned char *generic_asn1(char *value, X509V3_CTX *ctx, long *ext_len)
311 typ = ASN1_generate_v3(value, ctx);
335 if (!(ext = X509V3_EXT_nconf(conf, ctx, val->name, val->value)))
422 static char *nconf_get_string(void *db, char *section, char *value)
424 return NCONF_get_string(db, section, value);
458 char *value)
462 return X509V3_EXT_nconf(&ctmp, ctx, name, value);
466 /* char *value: Value */
468 char *value)
472 return X509V3_EXT_nconf_nid(&ctmp, ctx, ext_nid, value);
475 static char *conf_lhash_get_string(void *db, char *section, char *value)
477 return CONF_get_string(db, section, value);