From: John Gilmore Date: Thu, 2 Feb 1995 13:13:29 +0000 (+0000) Subject: * forward.c: Remove unused #include . X-Git-Tag: krb5-1.0-beta5~777 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8b324b6769768e28c44a90915fa2b35cf6d68464;p=krb5.git * forward.c: Remove unused #include . * kerberos5.c (kerberos5_send): Remove code for sending a checksum of a zero-byte string; we can just send no checksum at all. This eliminates dependency on . (kerberos5_forward): Remove extra parameter to krb5_get_for_creds, probably accidentally inserted during context changes -- which don't seem to be here in the ChangeLog. * kerberos.c: Remove prototypes for krb4 functions, since some of them are wrong with CNS (u_long vs. KRB_INT32 conflicts). These changes BUILD but have not been RUN yet. But at least they build. My apologies. -- John git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4878 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/libtelnet/ChangeLog b/src/appl/telnet/libtelnet/ChangeLog index 9c19cb5fb..b3ff8064c 100644 --- a/src/appl/telnet/libtelnet/ChangeLog +++ b/src/appl/telnet/libtelnet/ChangeLog @@ -1,3 +1,15 @@ +Thu Feb 2 02:56:50 1995 John Gilmore + + * forward.c: Remove unused #include . + * kerberos5.c (kerberos5_send): Remove code for sending a checksum + of a zero-byte string; we can just send no checksum at all. This + eliminates dependency on . + (kerberos5_forward): Remove extra parameter to krb5_get_for_creds, + probably accidentally inserted during context changes -- which don't + seem to be here in the ChangeLog. + * kerberos.c: Remove prototypes for krb4 functions, since + some of them are wrong with CNS (u_long vs. KRB_INT32 conflicts). + Fri Nov 18 15:19:26 1994 Theodore Y. Ts'o (tytso@dcl) * kerberos5.c (kerberos5_init): Initialize magic variable and diff --git a/src/appl/telnet/libtelnet/forward.c b/src/appl/telnet/libtelnet/forward.c index 1e3907ca2..069c957e2 100644 --- a/src/appl/telnet/libtelnet/forward.c +++ b/src/appl/telnet/libtelnet/forward.c @@ -30,7 +30,6 @@ #include #include -#include #include #include diff --git a/src/appl/telnet/libtelnet/kerberos.c b/src/appl/telnet/libtelnet/kerberos.c index b2d56a25a..92ba2cf4a 100644 --- a/src/appl/telnet/libtelnet/kerberos.c +++ b/src/appl/telnet/libtelnet/kerberos.c @@ -72,14 +72,6 @@ #include "auth.h" #include "misc.h" -int kerberos4_cksum P((unsigned char *, int)); -int krb_mk_req P((KTEXT, char *, char *, char *, u_long)); -int krb_rd_req P((KTEXT, char *, char *, u_long, AUTH_DAT *, char *)); -int krb_kntoln P((AUTH_DAT *, char *)); -int krb_get_cred P((char *, char *, char *, CREDENTIALS *)); -int krb_get_lrealm P((char *, int)); -int kuserok P((AUTH_DAT *, char *)); - extern auth_debug_mode; static unsigned char str_data[1024] = { IAC, SB, TELOPT_AUTHENTICATION, 0, @@ -196,7 +188,7 @@ kerberos4_send(ap) printf("Kerberos V4: no realm for %s\r\n", RemoteHostName); return(0); } - if (r = krb_mk_req(&auth, KRB_SERVICE_NAME, instance, realm, 0L)) { + if (r = krb_mk_req(&auth, KRB_SERVICE_NAME, instance, realm, 0)) { printf("mk_req failed: %s\r\n", krb_err_txt[r]); return(0); } diff --git a/src/appl/telnet/libtelnet/kerberos5.c b/src/appl/telnet/libtelnet/kerberos5.c index 9e7724023..510e89d24 100644 --- a/src/appl/telnet/libtelnet/kerberos5.c +++ b/src/appl/telnet/libtelnet/kerberos5.c @@ -63,7 +63,6 @@ #include #include #include -#include #include #include #include @@ -177,8 +176,6 @@ kerberos5_init(ap, server) kerberos5_send(ap) Authenticator *ap; { - krb5_checksum ksum; - krb5_octet sum[CRC32_CKSUM_LENGTH]; krb5_error_code r; krb5_ccache ccache; krb5_creds creds; /* telnet gets session key from here */ @@ -189,11 +186,6 @@ kerberos5_send(ap) krb5_keyblock *newkey = 0; #endif /* ENCRYPTION */ - ksum.checksum_type = CKSUMTYPE_CRC32; - ksum.contents = sum; - ksum.length = sizeof(sum); - memset((Voidptr )sum, 0, sizeof(sum)); - if (!UserNameRequested) { if (auth_debug_mode) { printf("Kerberos V5: no user name supplied\r\n"); @@ -240,7 +232,8 @@ kerberos5_send(ap) else ap_opts = 0; - r = krb5_mk_req_extended(telnet_context, ap_opts, &ksum, + r = krb5_mk_req_extended(telnet_context, ap_opts, + (krb5_checksum *) NULL, krb5_kdc_default_options, 0, #ifdef ENCRYPTION &newkey, @@ -662,7 +655,7 @@ kerberos5_forward(ap) return; } - if (r = krb5_get_for_creds(telnet_context, ETYPE_DES_CBC_CRC, + if (r = krb5_get_for_creds(telnet_context, krb5_kdc_req_sumtype, RemoteHostName, local_creds->client,