KEX_MAX
if (kex->kex_type < KEX_MAX && kex->kex[kex->kex_type] != NULL)
int (*kex[KEX_MAX])(struct ssh *);