char *str;
{
STRING data;
- char host[BUFSIZ], realm[REALM_SZ];
+ char realm[REALM_SZ];
char aname[ANAME_SZ], ainst[INST_SZ], arealm[REALM_SZ];
AUTH_DAT ad;
char *p, *first, *config_lookup();
KTEXT_ST ticket_st;
-#ifdef POSIX
struct utsname name;
-#endif
des_key_schedule sched;
C_Block nonce, nonce2;
code = connection_errno(conn);
lose("awaiting Kerberos authenticators");
}
-#ifdef POSIX
(void) uname(&name);
- strncpy(host, name.nodename, sizeof(host));
-#else
- gethostname(host, sizeof(host));
-#endif
ticket_st.mbz = 0;
ticket_st.length = MAX_STRING_SIZE(data);
memcpy(ticket_st.dat, STRING_DATA(data), MAX_STRING_SIZE(data));
code = krb_rd_req(&ticket_st, service,
- krb_get_phost(host), 0,
+ krb_get_phost(name.nodename), 0,
&ad, KEYFILE);
if (code) {
code += ERROR_TABLE_BASE_krb;
#include <mit-copyright.h>
#include <stdio.h>
#include <sys/file.h>
+#include <fcntl.h>
#include <des.h>
int debug=0; /* goddamn des library breakage */
char string[] = "sms\0\0Athena\0\1";