Home | History | Annotate | Download | only in x509v3

Lines Matching full:value

68 static int do_othername(GENERAL_NAME *gen, char *value, X509V3_CTX *ctx);
69 static int do_dirname(GENERAL_NAME *gen, char *value, X509V3_CTX *ctx);
249 if(!name_cmp(cnf->name, "issuer") && cnf->value &&
250 !strcmp(cnf->value, "copy")) {
314 if(!name_cmp(cnf->name, "email") && cnf->value &&
315 !strcmp(cnf->value, "copy")) {
317 } else if(!name_cmp(cnf->name, "email") && cnf->value &&
318 !strcmp(cnf->value, "move")) {
426 char *name, *value;
429 value = cnf->value;
431 if(!value)
467 if(!(obj = OBJ_txt2obj(value,0)))
470 ERR_add_error_data(2, "value=", value);
479 gen->d.ip = a2i_IPADDRESS_NC(value);
481 gen->d.ip = a2i_IPADDRESS(value);
485 ERR_add_error_data(2, "value=", value);
493 if (!do_dirname(gen, value, ctx))
501 if (!do_othername(gen, value, ctx))
518 !ASN1_STRING_set(gen->d.ia5, (unsigned char*)value,
519 strlen(value)))
536 static int do_othername(GENERAL_NAME *gen, char *value, X509V3_CTX *ctx)
540 if (!(p = strchr(value, ';')))
547 ASN1_TYPE_free(gen->d.otherName->value);
548 if (!(gen->d.otherName->value = ASN1_generate_v3(p + 1, ctx)))
550 objlen = p - value;
552 strncpy(objtmp, value, objlen);
561 static int do_dirname(GENERAL_NAME *gen, char *value, X509V3_CTX *ctx)
568 sk = X509V3_get_section(ctx, value);
572 ERR_add_error_data(2, "section=", value);