• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/crypto/x509v3/

Lines Matching refs:gen

88 	GENERAL_NAME *gen;
90 gen = sk_GENERAL_NAME_value(gens, i);
91 ret = i2v_GENERAL_NAME(method, gen, ret);
98 GENERAL_NAME *gen, STACK_OF(CONF_VALUE) *ret)
102 switch (gen->type)
117 X509V3_add_value_uchar("email",gen->d.ia5->data, &ret);
121 X509V3_add_value_uchar("DNS",gen->d.ia5->data, &ret);
125 X509V3_add_value_uchar("URI",gen->d.ia5->data, &ret);
129 X509_NAME_oneline(gen->d.dirn, oline, 256);
134 p = gen->d.ip->data;
136 if(gen->d.ip->length != 4) {
146 i2t_ASN1_OBJECT(oline, 256, gen->d.rid);
153 int GENERAL_NAME_print(BIO *out, GENERAL_NAME *gen)
156 switch (gen->type)
172 BIO_printf(out, "email:%s",gen->d.ia5->data);
176 BIO_printf(out, "DNS:%s",gen->d.ia5->data);
180 BIO_printf(out, "URI:%s",gen->d.ia5->data);
185 X509_NAME_print_ex(out, gen->d.dirn, 0, XN_FLAG_ONELINE);
189 p = gen->d.ip->data;
191 if(gen->d.ip->length != 4) {
200 i2a_ASN1_OBJECT(out, gen->d.rid);
222 GENERAL_NAME *gen;
223 if(!(gen = v2i_GENERAL_NAME(method, ctx, cnf)))
225 sk_GENERAL_NAME_push(gens, gen);
239 GENERAL_NAME *gen;
256 gen = sk_GENERAL_NAME_value(ialt, i);
257 if(!sk_GENERAL_NAME_push(gens, gen)) {
290 GENERAL_NAME *gen;
291 if(!(gen = v2i_GENERAL_NAME(method, ctx, cnf)))
293 sk_GENERAL_NAME_push(gens, gen);
311 GENERAL_NAME *gen = NULL;
333 if(!email || !(gen = GENERAL_NAME_new())) {
337 gen->d.ia5 = email;
339 gen->type = GEN_EMAIL;
340 if(!sk_GENERAL_NAME_push(gens, gen)) {
344 gen = NULL;
351 GENERAL_NAME_free(gen);
360 GENERAL_NAME *gen;
370 if(!(gen = v2i_GENERAL_NAME(method, ctx, cnf))) goto err;
371 sk_GENERAL_NAME_push(gens, gen);
384 GENERAL_NAME *gen = NULL;
396 if(!(gen = GENERAL_NAME_new())) {
417 gen->d.rid = obj;
430 if(!(gen->d.ip = M_ASN1_OCTET_STRING_new()) ||
431 !ASN1_STRING_set(gen->d.ip, ip, 4)) {
443 if(!(gen->d.ia5 = M_ASN1_IA5STRING_new()) ||
444 !ASN1_STRING_set(gen->d.ia5, (unsigned char*)value,
451 gen->type = type;
453 return gen;
456 GENERAL_NAME_free(gen);