+Wed May 24 10:29:54 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * kerberos5.c: Include string.h/strings.h. Include stdlib.h or
+ declare malloc.
+
+Sun May 7 18:45:09 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * kerberos5.c (kerberos5_send): Fix improperly closed comment
+ krb5_get_credentials second argument is not
+ kdc_options....
+
+ * configure.in (LIBOBJS): Removed duplicate WITH_KRB4
+
Fri Apr 28 11:17:16 1995 Mark Eichin <eichin@cygnus.com>
* configure.in: switch to WITH_KRB4 since it suffices in this case.
#include <netdb.h>
#include <ctype.h>
-/* kerberos 5 include files (ext-proto.h) will get an appropriate stdlib.h
- and string.h/strings.h */
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#else
+extern char *malloc();
+#endif
+#ifdef NO_STRING_H
+#include <strings.h>
+#else
+#include <string.h>
+#endif
#include "encrypt.h"
#include "auth.h"
krb5_error_code r;
krb5_ccache ccache;
krb5_creds creds; /* telnet gets session key from here */
- krb5_creds * new_creds;
+ krb5_creds * new_creds = 0;
extern krb5_flags krb5_kdc_default_options;
int ap_opts;
return(0);
}
- if (r = krb5_get_credentials(telnet_context, krb5_kdc_default_options,
+ if (r = krb5_get_credentials(telnet_context, 0,
ccache, &creds, &new_creds)) {
if (auth_debug_mode) {
printf("Kerberos V5: failure on credentials(%s)\r\n",
/*
* keep the key in our private storage, but don't use it yet
* ---see kerberos5_reply() below
- * /
+ */
if (newkey && (newkey->keytype != KEYTYPE_DES)) {
if (new_creds->keyblock.keytype == KEYTYPE_DES)
/* use the session key in credentials instead */