+Thu Feb 12 21:58:56 1998 Tom Yu <tlyu@mit.edu>
+
+ * sendmsg.c: Explicitly include k5-int.h in order to get proper
+ prototype of krb5_locate_kdc().
+
Mon Feb 2 17:02:29 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in: Define BUILDTOP and thisconfigdir in the Makefile
#include <krb.h>
#include "krb524.h"
-/* Cheat and grab this internal function from lib/krb5/os. */
-krb5_error_code krb5_locate_kdc
- PROTOTYPE((krb5_context, const krb5_data *,
- struct sockaddr **, int *));
+/* For krb5_locate_kdc() */
+#include <k5-int.h>
/*
* krb524_sendto_kdc:
* find KDC location(s) for realm
*/
- if (retval = krb5_locate_kdc (context, realm, &addr, &naddr))
+ if ((retval = krb5_locate_kdc(context, realm, &addr, &naddr, NULL, NULL)))
return retval;
if (naddr == 0)
return KRB5_REALM_UNKNOWN;