Home | History | Annotate | Download | only in x509v3

Lines Matching defs: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);
94 GENERAL_NAMES *gens, STACK_OF(CONF_VALUE) *ret)
98 for(i = 0; i < sk_GENERAL_NAME_num(gens); i++) {
99 gen = sk_GENERAL_NAME_value(gens, i);
246 GENERAL_NAMES *gens = NULL;
249 if(!(gens = sk_GENERAL_NAME_new_null())) {
257 if(!copy_issuer(ctx, gens)) goto err;
262 sk_GENERAL_NAME_push(gens, gen);
265 return gens;
267 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
273 static int copy_issuer(X509V3_CTX *ctx, GENERAL_NAMES *gens)
294 if(!sk_GENERAL_NAME_push(gens, gen)) {
311 GENERAL_NAMES *gens = NULL;
314 if(!(gens = sk_GENERAL_NAME_new_null())) {
322 if(!copy_email(ctx, gens, 0)) goto err;
325 if(!copy_email(ctx, gens, 1)) goto err;
330 sk_GENERAL_NAME_push(gens, gen);
333 return gens;
335 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
343 static int copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p)
379 if(!sk_GENERAL_NAME_push(gens, gen)) {
400 GENERAL_NAMES *gens = NULL;
403 if(!(gens = sk_GENERAL_NAME_new_null())) {
410 sk_GENERAL_NAME_push(gens, gen);
412 return gens;
414 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);