Lines Matching refs:gens
72 static int copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p);
73 static int copy_issuer(X509V3_CTX *ctx, GENERAL_NAMES *gens);
129 i2v_GENERAL_NAMES(X509V3_EXT_METHOD *method, GENERAL_NAMES *gens,
141 for (i = 0; i < sk_GENERAL_NAME_num(gens); i++) {
142 if ((gen = sk_GENERAL_NAME_value(gens, i)) == NULL)
321 GENERAL_NAMES *gens = NULL;
325 if ((gens = sk_GENERAL_NAME_new_null()) == NULL) {
333 if (!copy_issuer(ctx, gens))
339 if (sk_GENERAL_NAME_push(gens, gen) == 0) {
345 return gens;
348 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
355 copy_issuer(X509V3_CTX *ctx, GENERAL_NAMES *gens)
383 if (!sk_GENERAL_NAME_push(gens, gen)) {
403 GENERAL_NAMES *gens = NULL;
407 if (!(gens = sk_GENERAL_NAME_new_null())) {
415 if (!copy_email(ctx, gens, 0))
419 if (!copy_email(ctx, gens, 1))
425 if (sk_GENERAL_NAME_push(gens, gen) == 0) {
431 return gens;
434 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
443 copy_email(X509V3_CTX *ctx, GENERAL_NAMES *gens, int move_p)
481 if (!sk_GENERAL_NAME_push(gens, gen)) {
501 GENERAL_NAMES *gens = NULL;
505 if (!(gens = sk_GENERAL_NAME_new_null())) {
513 if (sk_GENERAL_NAME_push(gens, gen) == 0) {
518 return gens;
521 sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);