name=X509_NAME_dup(sk_X509_NAME_value(sk,i)); if ((name == NULL) || !sk_X509_NAME_push(ret,name))
SSLerr(SSL_F_SSL_LOAD_CLIENT_CA_FILE,ERR_R_MALLOC_FAILURE); goto err; }  if (!BIO_read_filename(in,file)) goto err;  for (;;) { if (PEM_read_bio_X509(in,&x,NULL,NULL) == NULL) break; if ((xn=X509_get_subject_name(x)) == NULL) goto err;  xn=X509_NAME_dup(xn); if (xn == NULL) goto err; if (sk_X509_NAME_find(sk,xn) >= 0) X509_NAME_free(xn); else
STACK_OF(X509_NAME) *SSL_dup_CA_list(STACK_OF(X509_NAME) *sk)	{	int i;	STACK_OF(X509_NAME) *ret;	X509_NAME *name;	ret=sk_X509_NAME_new_null();	for (i=0; i<sk_X509_NAME_num(sk); i++)		{		name=X509_NAME_dup(sk_X509_NAME_value(sk,i));		if ((name == NULL) || !sk_X509_NAME_push(ret,name))			{			sk_X509_NAME_pop_free(ret,X509_NAME_free);			return(NULL);			}		}	return(ret);	}