Displaying 2 results from an estimated 2 matches for "tis_authent".
2000 Dec 07
1
[PATCH] tis authserv support
...struct tis_context *tis = NULL;
+#endif
/* Indicate that authentication is needed. */
packet_start(SSH_SMSG_FAILURE);
@@ -267,7 +282,54 @@
xfree(password);
break;
-#ifdef SKEY
+#ifdef TIS_AUTH
+ case SSH_CMSG_AUTH_TIS:
+ debug("rcvd SSH_CMSG_AUTH_TIS");
+ if (options.tis_authentication == 1) {
+ char *challenge = 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");
+ }...
2001 Mar 13
0
[PATCH] openssh 2.5.1p2 TIS authserv support
...erverOptions 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
+verify_response(Authctxt *authctxt, char *response)
+{
+ int...