Lines Matching refs:gens
71 static int copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p);
72 static int copy_issuer(X509V3_CTX *ctx, GENERAL_NAMES *gens);
99 GENERAL_NAMES *gens,
104 for (i = 0; i < sk_GENERAL_NAME_num(gens); i++) {
105 gen = sk_GENERAL_NAME_value(gens, i);
243 GENERAL_NAMES *gens = NULL;
246 if (!(gens = sk_GENERAL_NAME_new_null())) {
254 if (!copy_issuer(ctx, gens))
260 sk_GENERAL_NAME_push(gens, gen);
263 return gens;
265 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
271 static int copy_issuer(X509V3_CTX *ctx, GENERAL_NAMES *gens)
294 if (!sk_GENERAL_NAME_push(gens, gen)) {
312 GENERAL_NAMES *gens = NULL;
315 if (!(gens = sk_GENERAL_NAME_new_null())) {
323 if (!copy_email(ctx, gens, 0))
327 if (!copy_email(ctx, gens, 1))
333 sk_GENERAL_NAME_push(gens, gen);
336 return gens;
338 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
346 static int copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p)
383 if (!sk_GENERAL_NAME_push(gens, gen)) {
403 GENERAL_NAMES *gens = NULL;
406 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);