int i; STACK_OF(X509_NAME) *ret; X509_NAME *name;
BIO *in; X509 *x=NULL; X509_NAME *xn=NULL; STACK_OF(X509_NAME) *ret,*sk;
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);	}