check_purpose
return pt->check_purpose(pt, x, non_leaf);
ptmp->check_purpose = ck;
if (purpose >= X509_PURPOSE_MIN && !check_purpose(ctx, x, purpose, i, must_be_ca))
int (*check_purpose)(const struct x509_purpose_st *, const X509 *, int);