X509_OBJECT_get_type
X509_LOOKUP_TYPE X509_OBJECT_get_type(const X509_OBJECT *a);
if (!TEST_int_eq(X509_OBJECT_get_type(obj), X509_LU_X509))