2057
2054
/* This call populates the ex_flags field correctly */
2058
2055
X509_check_purpose(x, -1, 0);
2059
2056
if ((x->sig_alg) && (x->sig_alg->algorithm))
2060
2058
signature_nid = OBJ_obj2nid(x->sig_alg->algorithm);
2061
2061
if (alg_k & SSL_kECDHe || alg_k & SSL_kECDHr)
2063
2063
/* key usage, if present, must allow key agreement */