ENCTYPE_CNT
#define ENCTYPE_NAME_OK(x) ((unsigned int)(x) < ENCTYPE_CNT)
if ((type < ENCTYPE_CNT) &&
if (type < ENCTYPE_CNT)