ctx->chain_purpose = purpose;
return X509_set_purpose_and_trust(purpose, &ctx->chain_purpose, &ctx->trust_purpose);
void X509_STORE_CTX_chain_purpose(X509_STORE_CTX *ctx, int purpose)	{	ctx->chain_purpose = purpose;	}