Return to sshd.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.80, 2000/01/20 15:19:22 | version 1.81, 2000/01/24 20:31:19 | ||
---|---|---|---|
|
|
||
char * | char * | ||
get_authname(int type) | get_authname(int type) | ||
{ | { | ||
static char buf[1024]; | |||
switch (type) { | switch (type) { | ||
case SSH_CMSG_AUTH_PASSWORD: | case SSH_CMSG_AUTH_PASSWORD: | ||
return "password"; | return "password"; | ||
|
|
||
return "s/key"; | return "s/key"; | ||
#endif | #endif | ||
} | } | ||
fatal("get_authname: unknown auth %d: internal error", type); | snprintf(buf, sizeof buf, "bad-auth-msg-%d", type); | ||
return NULL; | return buf; | ||
} | } | ||
/* | /* |