search for: tis_chal

Displaying 1 result from an estimated 1 matches for "tis_chal".

Did you mean: is_char
2001 Mar 13
0
[PATCH] openssh 2.5.1p2 TIS authserv support
...onf.h" +#include "xmalloc.h" + +extern ServerOptions options; + +char * +get_challenge(Authctxt *authctxt, char *devs) +{ + static char challenge[128]; + + if (!authctxt->tis) { + authctxt->tis = tis_connect_multi(options.authserv_addrs); + } + if (authctxt->tis) { + char *tis_chal; + + if (authctxt->pw) { + tis_chal = tis_authenticate(authctxt->tis, authctxt->pw->pw_name); + } + else { + tis_chal = tis_fake_challenge(); + } + strlcpy(challenge, tis_chal, sizeof(challenge)); + xfree(tis_chal); + + return challenge; + } + return NULL; +} + +int +ver...