int ssl_cert_add0_chain_cert(CERT *c, X509 *x)
	{
	CERT_PKEY *cpk = c->key;
	if (!cpk)
		return 0;
	if (!cpk->chain)
		cpk->chain = sk_X509_new_null();
	if (!cpk->chain || !sk_X509_push(cpk->chain, x))
		return 0;
	return 1;
	}
int ssl_cert_add0_chain_cert(CERT *c, X509 *x)
	{
	CERT_PKEY *cpk = c->key;
	if (!cpk)
		return 0;
	if (!cpk->chain)
		cpk->chain = sk_X509_new_null();
	if (!cpk->chain || !sk_X509_push(cpk->chain, x))
		return 0;
	return 1;
	}