Home | History | Annotate | Download | only in x509v3

Lines Matching full:gens

66 static int copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p);
67 static int copy_issuer(X509V3_CTX *ctx, GENERAL_NAMES *gens);
88 GENERAL_NAMES *gens, STACK_OF(CONF_VALUE) *ret)
92 for(i = 0; i < sk_GENERAL_NAME_num(gens); i++) {
93 gen = sk_GENERAL_NAME_value(gens, i);
240 GENERAL_NAMES *gens = NULL;
243 if(!(gens = sk_GENERAL_NAME_new_null())) {
251 if(!copy_issuer(ctx, gens)) goto err;
256 sk_GENERAL_NAME_push(gens, gen);
259 return gens;
261 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
267 static int copy_issuer(X509V3_CTX *ctx, GENERAL_NAMES *gens)
288 if(!sk_GENERAL_NAME_push(gens, gen)) {
305 GENERAL_NAMES *gens = NULL;
308 if(!(gens = sk_GENERAL_NAME_new_null())) {
316 if(!copy_email(ctx, gens, 0)) goto err;
319 if(!copy_email(ctx, gens, 1)) goto err;
324 sk_GENERAL_NAME_push(gens, gen);
327 return gens;
329 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
337 static int copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p)
373 if(!sk_GENERAL_NAME_push(gens, gen)) {
394 GENERAL_NAMES *gens = NULL;
397 if(!(gens = sk_GENERAL_NAME_new_null())) {
404 sk_GENERAL_NAME_push(gens, gen);
406 return gens;
408 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);