#include extern const char *__progname; #include "bpp.h" #include "algs.h" #include "userauth.h" static int ua_none_canuse(BPP *b __attribute__((__unused__))) { return(1); } static unsigned char *ua_none_start(UASTATE *s) { return((*s->pkthead)(s)); } static int ua_none_partial(UASTATE *s __attribute__((__unused__))) { fprintf(stderr,"%s: protocol error: \"none\" authentication algorithm listed\n",__progname); exit(1); } static int ua_none_run(UASTATE *s) { fprintf(stderr,"%s: protocol error: type %d message for \"none\" algorithm\n",__progname,s->layer->b->ipkt[0]); exit(1); } static int ua_none_retry(UASTATE *s __attribute__((__unused__))) { fprintf(stderr,"%s: protocol error: \"none\" authentication algorithm listed\n",__progname); exit(1); } static void ua_none_done(UASTATE *s __attribute__((__unused__))) { } UAALG uaalg_none = { "none", &ua_none_canuse, &ua_none_start, &ua_none_partial, &ua_none_run, &ua_none_retry, &ua_none_done };