int ssl_cert_set0_chain(CERT *c, STACK_OF(X509) *chain)
	{
	CERT_PKEY *cpk = c->key;
	if (!cpk)
		return 0;
	if (cpk->chain)
		sk_X509_pop_free(cpk->chain, X509_free);
	cpk->chain = chain;
	return 1;
	}
int ssl_cert_set0_chain(CERT *c, STACK_OF(X509) *chain)
	{
	CERT_PKEY *cpk = c->key;
	if (!cpk)
		return 0;
	if (cpk->chain)
		sk_X509_pop_free(cpk->chain, X509_free);
	cpk->chain = chain;
	return 1;
	}