summaryrefslogtreecommitdiffstats
path: root/src/kdc/kerberos_v4.c
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-10-06 03:02:40 +0000
committerTheodore Tso <tytso@mit.edu>1995-10-06 03:02:40 +0000
commitf46fce77959a3f52ec54b79753496644ab68fb47 (patch)
tree7c3dfa461abd1705a297bd62a61ea4ed5aceb2a8 /src/kdc/kerberos_v4.c
parent140deb8f7e227e2ce86055df375e499462d5642a (diff)
downloadkrb5-f46fce77959a3f52ec54b79753496644ab68fb47.tar.gz
krb5-f46fce77959a3f52ec54b79753496644ab68fb47.tar.xz
krb5-f46fce77959a3f52ec54b79753496644ab68fb47.zip
network.c (setup_network):
main.c (initialize_realms): Massive revamp of how the network ports are setup. The default port list for a realm is read from [kdcdefaults]/kdc_ports from the kdc.conf file. For each realm, a list of ports can be specified in [realms]/<realm>/kdc_ports. extern.h (kdc_realm_t): Remove realm_pport and realm_sport, and added realm_ports. do_tgs_req.c (process_tgs_req): do_as_req.c (process_as_req): dispatch.c (dispatch): Pass the portnumber of the incoming request down to process_as_req and process_tgs_req, instead of the boolean "is_secondary". kerberos_v4.c (kerb_get_principal, kerberos_v4): Fix gcc -Wall flames, by fixing signed vs. unsigned types. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6937 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kdc/kerberos_v4.c')
-rw-r--r--src/kdc/kerberos_v4.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kdc/kerberos_v4.c b/src/kdc/kerberos_v4.c
index b724c976ed..6af4906690 100644
--- a/src/kdc/kerberos_v4.c
+++ b/src/kdc/kerberos_v4.c
@@ -73,7 +73,7 @@
extern int errno;
int compat_decrypt_key PROTOTYPE((krb5_key_data *, C_Block));
-int kerb_get_principal PROTOTYPE((char *, char *, Principal *, unsigned int,
+int kerb_get_principal PROTOTYPE((char *, char *, Principal *, int,
int *));
int check_princ PROTOTYPE((char *, char *, unsigned, Principal *));
@@ -334,7 +334,7 @@ kerb_get_principal(name, inst, principal, maxn, more)
char *name; /* could have wild card */
char *inst; /* could have wild card */
Principal *principal;
- unsigned int maxn; /* max number of name structs to return */
+ int maxn; /* max number of name structs to return */
int *more; /* more tuples than room for */
{
/* Note that this structure should not be passed to the
@@ -499,7 +499,7 @@ kerberos_v4(client, pkt)
#ifdef notdef
u_long time_ws; /* Workstation time */
#endif
- KRB4_32 req_life; /* Requested liftime */
+ u_long req_life; /* Requested liftime */
char *service; /* Service name */
char *instance; /* Service instance */
#ifdef notdef
@@ -521,7 +521,7 @@ kerberos_v4(client, pkt)
}
ptr = (char *) pkt_time_ws(pkt) + 4;
- req_life = (KRB4_32) (*ptr++);
+ req_life = (u_long) (*ptr++);
service = ptr;
instance = ptr + strlen(service) + 1;
@@ -614,7 +614,7 @@ kerberos_v4(client, pkt)
case AUTH_MSG_APPL_REQUEST:
{
KRB4_32 time_ws; /* Workstation time */
- KRB4_32 req_life; /* Requested liftime */
+ u_long req_life; /* Requested liftime */
char *service; /* Service name */
char *instance; /* Service instance */
int kerno = 0; /* Kerberos error number */
@@ -653,7 +653,7 @@ kerberos_v4(client, pkt)
memcpy(&time_ws, ptr, 4);
ptr += 4;
- req_life = (KRB4_32) (*ptr++);
+ req_life = (u_long) (*ptr++);
service = ptr;
instance = ptr + strlen(service) + 1;