* 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 <krb5/crc-32.h>.
(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
+Thu Feb 2 02:56:50 1995 John Gilmore <gnu@cygnus.com>
+
+ * forward.c: Remove unused #include <krb5/crc-32.h>.
+ * 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 <krb5/crc-32.h>.
+ (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
#include <krb5/krb5.h>
#include <krb5/asn1.h>
-#include <krb5/crc-32.h>
#include <krb5/los-proto.h>
#include <krb5/ext-proto.h>
#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,
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);
}
#include <stdio.h>
#include <krb5/krb5.h>
#include <krb5/asn1.h>
-#include <krb5/crc-32.h>
#include <krb5/los-proto.h>
#include <krb5/ext-proto.h>
#include <com_err.h>
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 */
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");
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,
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,