Displaying 2 results from an estimated 2 matches for "tis_fake_challeng".
Did you mean:
tis_fake_challenge
2001 Mar 13
0
[PATCH] openssh 2.5.1p2 TIS authserv support
...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
+verify_response(Authctxt *authctxt, char *response)
+{
+ int res;
+
+ if (!authctxt->tis) {
+ res = 0;
+ }
+ else {
+ res = tis_response(authctxt->tis, r...
2000 Dec 07
1
[PATCH] tis authserv support
...lenge = NULL;
+
+ if (pw) {
+ tis_free(tis);
+ tis = tis_connect_multi(options.authserv_addrs);
+ if (tis) {
+ challenge = tis_authenticate(tis, pw->pw_name);
+ }
+ else {
+ log("Error connecting TIS authserv");
+ }
+ else {
+ challenge = tis_fake_challenge();
+ }
+ if (!challenge) {
+ break;
+ }
+ if (challenge != NULL) {
+ debug("sending challenge '%s'", challenge);
+ packet_start(SSH_SMSG_AUTH_TIS_CHALLENGE);
+ packet_put_string(challenge, strlen(challenge) - 1);
+ packet_send();
+ packet_write...