diff options
author | John Carr <jfc@mit.edu> | 1992-08-21 03:29:21 +0000 |
---|---|---|
committer | John Carr <jfc@mit.edu> | 1992-08-21 03:29:21 +0000 |
commit | 25660ba3ae371bb1d2bd7fe89351dfe206f5a406 (patch) | |
tree | bdf48f2bb812fb253b43a55f2b2b29d3f3231b7c /src/lib/krb425/get_cred.c | |
parent | 1a6dd7e4eb7cebf997d6b910e3d66985c4b0de66 (diff) | |
download | krb5-25660ba3ae371bb1d2bd7fe89351dfe206f5a406.tar.gz krb5-25660ba3ae371bb1d2bd7fe89351dfe206f5a406.tar.xz krb5-25660ba3ae371bb1d2bd7fe89351dfe206f5a406.zip |
Principal type changes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2367 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb425/get_cred.c')
-rw-r--r-- | src/lib/krb425/get_cred.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/krb425/get_cred.c b/src/lib/krb425/get_cred.c index 739be1e7f7..58c13b1ff8 100644 --- a/src/lib/krb425/get_cred.c +++ b/src/lib/krb425/get_cred.c @@ -76,7 +76,7 @@ CREDENTIALS *c; i = 0; if (creds.server) while (creds.server[i]) { - EPRINT "server: %d: ``%.*s''\n", i, + EPRINT("server: %d: ``%.*s''\n", i, creds.server[i]->length, creds.server[i]->data ? creds.server[i]->data : ""); @@ -85,7 +85,7 @@ CREDENTIALS *c; i = 0; if (creds.client) while (creds.client[i]) { - EPRINT "client: %d: ``%.*s''\n", i, + EPRINT("client: %d: ``%.*s''\n", i, creds.client[i]->length, creds.client[i]->data ? creds.client[i]->data : ""); @@ -93,12 +93,12 @@ CREDENTIALS *c; } } #endif - set_string(c->pname, ANAME_SZ, creds.client[1]); - set_string(c->pinst, INST_SZ, creds.client[2]); - - set_string(c->realm, REALM_SZ, creds.server[0]); - set_string(c->service, REALM_SZ, creds.server[1]); - set_string(c->instance, REALM_SZ, creds.server[2]); + set_string(c->pname, ANAME_SZ, krb5_princ_component(creds.client, 1)); + set_string(c->pinst, INST_SZ, krb5_princ_component(creds.client, 2)); + + set_string(c->realm, REALM_SZ, krb5_princ_realm(creds.server)); + set_string(c->service, REALM_SZ, krb5_princ_component(creds.server, 1)); + set_string(c->instance, REALM_SZ, krb5_princ_component(creds.server, 2)); c->ticket_st.length = creds.ticket.length; memcpy((char *)c->ticket_st.dat, |