summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2008-08-22 16:25:27 +0000
committerKen Raeburn <raeburn@mit.edu>2008-08-22 16:25:27 +0000
commitfc5288e557cf2c095901f9aeb288acbcef5b610a (patch)
treeb9871e4baf8c2e939e519517d9acbcbf9546df21 /src/lib/krb5
parenta601b792b81eda6a9d3e4158e147a2e9524c13c7 (diff)
downloadkrb5-fc5288e557cf2c095901f9aeb288acbcef5b610a.tar.gz
krb5-fc5288e557cf2c095901f9aeb288acbcef5b610a.tar.xz
krb5-fc5288e557cf2c095901f9aeb288acbcef5b610a.zip
Use capaths unconditionally. Update copyright
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20686 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5')
-rw-r--r--src/lib/krb5/krb/walk_rtree.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/lib/krb5/krb/walk_rtree.c b/src/lib/krb5/krb/walk_rtree.c
index c4673caa8c..b1b2627c8d 100644
--- a/src/lib/krb5/krb/walk_rtree.c
+++ b/src/lib/krb5/krb/walk_rtree.c
@@ -1,7 +1,7 @@
/*
* lib/krb5/krb/walk_rtree.c
*
- * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991,2008 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
@@ -82,7 +82,6 @@
* will work together.
* DEE - 5/23/95
*/
-#define CONFIGURABLE_AUTHENTICATION_PATH
#include "k5-int.h"
#include "int-proto.h"
@@ -127,12 +126,10 @@ krb5_walk_realm_tree(krb5_context context, const krb5_data *client, const krb5_d
krb5_data tmpcrealm, tmpsrealm;
int nocommon = 1;
-#ifdef CONFIGURABLE_AUTHENTICATION_PATH
const char *cap_names[4];
char *cap_client, *cap_server;
char **cap_nodes;
krb5_error_code cap_code;
-#endif
#ifdef DEBUG_REFERRALS
printf("krb5_walk_realm_tree starting\n");
@@ -142,7 +139,6 @@ krb5_walk_realm_tree(krb5_context context, const krb5_data *client, const krb5_d
if (!(client->data &&server->data))
return KRB5_NO_TKT_IN_RLM;
-#ifdef CONFIGURABLE_AUTHENTICATION_PATH
if ((cap_client = (char *)malloc(client->length + 1)) == NULL)
return ENOMEM;
strncpy(cap_client, client->data, client->length);
@@ -177,7 +173,7 @@ krb5_walk_realm_tree(krb5_context context, const krb5_data *client, const krb5_d
} else { /* no path use hierarchical method */
krb5_xfree(cap_server); /* failed, don't need server string */
cap_names[2] = 0;
-#endif
+
clen = client->length;
slen = server->length;
@@ -250,9 +246,7 @@ krb5_walk_realm_tree(krb5_context context, const krb5_data *client, const krb5_d
if(com_sdot == server->data + server->length -1)
com_sdot = server->data - 1 ;
}
-#ifdef CONFIGURABLE_AUTHENTICATION_PATH
} /* end of if use hierarchical method */
-#endif
if (!(rettree = (krb5_principal *)calloc(links+2,
sizeof(krb5_principal)))) {
@@ -263,7 +257,6 @@ krb5_walk_realm_tree(krb5_context context, const krb5_data *client, const krb5_d
krb5_xfree(rettree);
return retval;
}
-#ifdef CONFIGURABLE_AUTHENTICATION_PATH
links--; /* dont count the null entry on end */
if (cap_code == 0) { /* found a path above */
tmpcrealm.data = client->data;
@@ -299,7 +292,6 @@ krb5_walk_realm_tree(krb5_context context, const krb5_data *client, const krb5_d
}
krb5_xfree((char *)cap_nodes);
} else { /* if not cap then use hierarchical method */
-#endif
for (prevccp = ccp = client->data;
ccp <= com_cdot;
ccp++) {
@@ -386,9 +378,7 @@ krb5_walk_realm_tree(krb5_context context, const krb5_data *client, const krb5_d
return retval;
}
}
-#ifdef CONFIGURABLE_AUTHENTICATION_PATH
}
-#endif
*tree = rettree;
#ifdef DEBUG_REFERRALS