[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
inetutils/rshd rshd.c
From: |
shishi-commit |
Subject: |
inetutils/rshd rshd.c |
Date: |
Wed, 17 Sep 2003 09:19:00 -0400 |
CVSROOT: /cvsroot/shishi
Module name: inetutils
Branch:
Changes by: Nicolas Pouvesle <address@hidden> 03/09/17 09:19:00
Modified files:
rshd : rshd.c
Log message:
Add KCMDV0.1 protocol support.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/inetutils/rshd/rshd.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: inetutils/rshd/rshd.c
diff -u inetutils/rshd/rshd.c:1.2 inetutils/rshd/rshd.c:1.3
--- inetutils/rshd/rshd.c:1.2 Sat Sep 13 16:14:47 2003
+++ inetutils/rshd/rshd.c Wed Sep 17 09:19:00 2003
@@ -307,6 +307,8 @@
int pv1[2], pv2[2];
fd_set wready, writeto;
int keytype, keylen;
+ int proto;
+
#endif
signal(SIGINT, SIG_DFL);
@@ -566,7 +568,7 @@
int rc;
char * err_msg = NULL;
- rc = get_auth (STDIN_FILENO, &h, &enckey, &err_msg);
+ rc = get_auth (STDIN_FILENO, &h, &enckey, &err_msg, &proto);
if (rc != SHISHI_OK)
{
error ("Kerberos authentication failure: %s\n", err_msg);
@@ -850,7 +852,7 @@
else
#elif defined(SHISHI)
if (doencrypt)
- readenc (h, s, &sig, &ret, &iv2, enckey);
+ readenc (h, s, &sig, &ret, &iv2, enckey, proto);
else
#endif
#endif
@@ -878,7 +880,7 @@
else
#elif defined(SHISHI)
if (doencrypt)
- writeenc (h, s, buf, cc, &n, &iv4, enckey);
+ writeenc (h, s, buf, cc, &n, &iv4, enckey, proto);
else
#endif
#endif
@@ -898,7 +900,7 @@
}
else
#ifdef SHISHI
- writeenc (h, STDOUT_FILENO, buf, cc, &n, &iv3, enckey);
+ writeenc (h, STDOUT_FILENO, buf, cc, &n, &iv3, enckey,
proto);
#else
des_write (STDOUT_FILENO, buf, cc);
#endif
@@ -908,7 +910,7 @@
{
errno = 0;
#ifdef SHISHI
- readenc (h, STDIN_FILENO, buf, &cc, &iv1, enckey);
+ readenc (h, STDIN_FILENO, buf, &cc, &iv1, enckey, proto);
#else
cc = des_read (STDIN_FILENO, buf, sizeof buf);
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- inetutils/rshd rshd.c,
shishi-commit <=