Lines Matching defs:value

26 static int do_othername(GENERAL_NAME *gen, const char *value, X509V3_CTX *ctx);
27 static int do_dirname(GENERAL_NAME *gen, const char *value, X509V3_CTX *ctx);
90 if (gen->d.otherName->value->type != V_ASN1_UTF8STRING
92 gen->d.otherName->value->value.utf8string->data,
93 gen->d.otherName->value->value.utf8string->length,
98 if (gen->d.otherName->value->type != V_ASN1_UTF8STRING
100 gen->d.otherName->value->value.utf8string->data,
101 gen->d.otherName->value->value.utf8string->length,
106 if (gen->d.otherName->value->type != V_ASN1_IA5STRING
108 gen->d.otherName->value->value.ia5string->data,
109 gen->d.otherName->value->value.ia5string->length,
114 if (gen->d.otherName->value->type != V_ASN1_UTF8STRING
116 gen->d.otherName->value->value.utf8string->data,
117 gen->d.otherName->value->value.utf8string->length,
122 if (gen->d.otherName->value->type != V_ASN1_UTF8STRING
124 gen->d.otherName->value->value.utf8string->data,
125 gen->d.otherName->value->value.utf8string->length,
136 /* check if the value is something printable */
137 if (gen->d.otherName->value->type == V_ASN1_IA5STRING) {
139 gen->d.otherName->value->value.ia5string->data,
140 gen->d.otherName->value->value.ia5string->length,
144 if (gen->d.otherName->value->type == V_ASN1_UTF8STRING) {
146 gen->d.otherName->value->value.utf8string->data,
147 gen->d.otherName->value->value.utf8string->length,
217 && gen->d.otherName->value->type != V_ASN1_IA5STRING)
219 && gen->d.otherName->value->type != V_ASN1_UTF8STRING)) {
227 gen->d.otherName->value->value.utf8string->length,
228 gen->d.otherName->value->value.utf8string->data);
232 gen->d.otherName->value->value.utf8string->length,
233 gen->d.otherName->value->value.utf8string->data);
237 gen->d.otherName->value->value.ia5string->length,
238 gen->d.otherName->value->value.ia5string->data);
242 gen->d.otherName->value->value.utf8string->length,
243 gen->d.otherName->value->value.utf8string->data);
247 gen->d.otherName->value->value.utf8string->length,
248 gen->d.otherName->value->value.utf8string->data);
318 && cnf->value && strcmp(cnf->value, "copy") == 0) {
397 && cnf->value && strcmp(cnf->value, "copy") == 0) {
401 && cnf->value && strcmp(cnf->value, "move") == 0) {
510 X509V3_CTX *ctx, int gen_type, const char *value,
516 if (!value) {
541 if ((obj = OBJ_txt2obj(value, 0)) == NULL) {
543 "value=%s", value);
552 gen->d.ip = a2i_IPADDRESS_NC(value);
554 gen->d.ip = a2i_IPADDRESS(value);
557 "value=%s", value);
563 if (!do_dirname(gen, value, ctx)) {
570 if (!do_othername(gen, value, ctx)) {
582 !ASN1_STRING_set(gen->d.ia5, (unsigned char *)value,
583 strlen(value))) {
607 char *name, *value;
610 value = cnf->value;
612 if (!value) {
637 return a2i_GENERAL_NAME(out, method, ctx, type, value, is_nc);
641 static int do_othername(GENERAL_NAME *gen, const char *value, X509V3_CTX *ctx)
646 if ((p = strchr(value, ';')) == NULL)
654 ASN1_TYPE_free(gen->d.otherName->value);
655 if ((gen->d.otherName->value = ASN1_generate_v3(p + 1, ctx)) == NULL)
657 objlen = p - value;
658 objtmp = OPENSSL_strndup(value, objlen);
673 static int do_dirname(GENERAL_NAME *gen, const char *value, X509V3_CTX *ctx)
681 sk = X509V3_get_section(ctx, value);
684 "section=%s", value);