COMP_get_type
if (COMP_get_type(method) != NID_undef && comp_methods != NULL) {
int COMP_get_type(const COMP_METHOD *meth);
if (cm == NULL || COMP_get_type(cm) == NID_undef)