Lines Matching defs:gens
73 static int copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p);
74 static int copy_issuer(X509V3_CTX *ctx, GENERAL_NAMES *gens);
101 GENERAL_NAMES *gens,
106 for (i = 0; i < sk_GENERAL_NAME_num(gens); i++) {
107 gen = sk_GENERAL_NAME_value(gens, i);
255 GENERAL_NAMES *gens = NULL;
258 if (!(gens = sk_GENERAL_NAME_new_null())) {
266 if (!copy_issuer(ctx, gens))
272 sk_GENERAL_NAME_push(gens, gen);
275 return gens;
277 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
283 static int copy_issuer(X509V3_CTX *ctx, GENERAL_NAMES *gens)
307 if (!sk_GENERAL_NAME_push(gens, gen)) {
325 GENERAL_NAMES *gens = NULL;
328 if (!(gens = sk_GENERAL_NAME_new_null())) {
336 if (!copy_email(ctx, gens, 0))
340 if (!copy_email(ctx, gens, 1))
346 sk_GENERAL_NAME_push(gens, gen);
349 return gens;
351 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
359 static int copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p)
396 if (!sk_GENERAL_NAME_push(gens, gen)) {
416 GENERAL_NAMES *gens = NULL;
419 if (!(gens = sk_GENERAL_NAME_new_null())) {
427 sk_GENERAL_NAME_push(gens, gen);
429 return gens;
431 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);