X509_PURPOSE_get_trust
int X509_PURPOSE_get_trust(const X509_PURPOSE *xp);
ctx->param->trust = X509_PURPOSE_get_trust(purpose);