Home | History | Annotate | Download | only in x509v3

Lines Matching full:gens

69 static int copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p);
70 static int copy_issuer(X509V3_CTX *ctx, GENERAL_NAMES *gens);
97 GENERAL_NAMES *gens, STACK_OF(CONF_VALUE) *ret)
101 for(i = 0; i < sk_GENERAL_NAME_num(gens); i++) {
102 gen = sk_GENERAL_NAME_value(gens, i);
249 GENERAL_NAMES *gens = NULL;
252 if(!(gens = sk_GENERAL_NAME_new_null())) {
260 if(!copy_issuer(ctx, gens)) goto err;
265 sk_GENERAL_NAME_push(gens, gen);
268 return gens;
270 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
276 static int copy_issuer(X509V3_CTX *ctx, GENERAL_NAMES *gens)
298 if(!sk_GENERAL_NAME_push(gens, gen)) {
315 GENERAL_NAMES *gens = NULL;
318 if(!(gens = sk_GENERAL_NAME_new_null())) {
326 if(!copy_email(ctx, gens, 0)) goto err;
329 if(!copy_email(ctx, gens, 1)) goto err;
334 sk_GENERAL_NAME_push(gens, gen);
337 return gens;
339 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
347 static int copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p)
383 if(!sk_GENERAL_NAME_push(gens, gen)) {
404 GENERAL_NAMES *gens = NULL;
407 if(!(gens = sk_GENERAL_NAME_new_null())) {
414 sk_GENERAL_NAME_push(gens, gen);
416 return gens;
418 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);