os-proto.h.
* init_os_ctx.c: Include os-proto.h
* changepw.c, locate_kdc.c: Do not shadow sin() with local
variable name.
* os-proto.h: Add prototypes for krb5_try_realm_txt_rr() and the
obsolete krb5_secure_config_files().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13074
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-03-10 Ezra Peisach <epeisach@mit.edu>
+
+ * def_realm.c: Move prototype for krb5_try_realm_txt_rr() to
+ os-proto.h.
+
+ * init_os_ctx.c: Include os-proto.h
+
+ * changepw.c, locate_kdc.c: Do not shadow sin() with local
+ variable name.
+
+ * os-proto.h: Add prototypes for krb5_try_realm_txt_rr() and the
+ obsolete krb5_secure_config_files().
+
2001-03-05 Ken Raeburn <raeburn@mit.edu>
* localaddr.c (krb5_os_localaddr): Don't look for -1 return value
/* success with admin_server but now we need to change the port */
/* number to use DEFAULT_KPASSWD_PORT. */
for ( i=0;i<*naddrs;i++ ) {
- struct sockaddr_in *sin = (struct sockaddr_in *) addr_pp[i];
- sin->sin_port = htons(DEFAULT_KPASSWD_PORT);
+ struct sockaddr_in *sockin = (struct sockaddr_in *) addr_pp[i];
+ sockin->sin_port = htons(DEFAULT_KPASSWD_PORT);
}
}
}
/* success with admin_server but now we need to change the port */
/* number to use DEFAULT_KPASSWD_PORT. */
for ( i=0;i<*naddrs;i++ ) {
- struct sockaddr_in *sin = (struct sockaddr_in *) addr_pp[i];
- sin->sin_port = htons(DEFAULT_KPASSWD_PORT);
+ struct sockaddr_in *sockin = (struct sockaddr_in *) addr_pp[i];
+ sockin->sin_port = htons(DEFAULT_KPASSWD_PORT);
}
}
}
#define MAX_DNS_NAMELEN (15*(MAXHOSTNAMELEN + 1)+1)
-extern int krb5_try_realm_txt_rr(char *,char *, char **);
#endif /* KRB5_DNS_LOOKUP */
/*
#define NEED_WINDOWS
#include "k5-int.h"
+#include "os-proto.h"
#ifdef macintosh
#include <PreferencesLib.h>
unsigned char *p=NULL;
char host[MAX_DNS_NAMELEN], *h;
struct sockaddr *addr = NULL;
- struct sockaddr_in *sin = NULL;
+ struct sockaddr_in *sin_p = NULL;
struct hostent *hp = NULL;
int type, class;
int priority, weight, size, len, numanswers, numqueries, rdlen;
#ifdef HAVE_NETINET_IN_H
case AF_INET:
for (j=0; hp->h_addr_list[j]; j++) {
- sin = (struct sockaddr_in *) &addr[out++];
- memset ((char *) sin, 0, sizeof (struct sockaddr));
- sin->sin_family = hp->h_addrtype;
- sin->sin_port = htons(entry->port);
- memcpy((char *) &sin->sin_addr,
+ sin_p = (struct sockaddr_in *) &addr[out++];
+ memset ((char *) sin_p, 0, sizeof (struct sockaddr));
+ sin_p->sin_family = hp->h_addrtype;
+ sin_p->sin_port = htons(entry->port);
+ memcpy((char *) &sin_p->sin_addr,
(char *) hp->h_addr_list[j],
sizeof(struct in_addr));
if (out + 1 >= count) {
#endif /* HAVE_NETINET_IN_H */
+krb5_error_code krb5_try_realm_txt_rr(const char *, const char *,
+ char **realm);
+
+/* Obsolete interface - leave prototype here until code removed */
+krb5_error_code krb5_secure_config_files(krb5_context ctx);
+
int _krb5_use_dns_realm KRB5_PROTOTYPE((krb5_context));
int _krb5_use_dns_kdc KRB5_PROTOTYPE((krb5_context));
int _krb5_conf_boolean KRB5_PROTOTYPE((const char *));