hc_auth_to_type
if ((type = hc_auth_to_type(auth, NULL)) == HC_AUTH_MAX)
if ((type = hc_auth_to_type(auth, &len)) == HC_AUTH_MAX) {