From b9347597fc986fdc4893f5a752a7045df93088b0 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 3 May 1990 15:45:33 +0000 Subject: [PATCH] change args to use data rather than principal git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@704 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/tgtname.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/krb5/krb/tgtname.c b/src/lib/krb5/krb/tgtname.c index c001ad0b8..cf95caf7f 100644 --- a/src/lib/krb5/krb/tgtname.c +++ b/src/lib/krb5/krb/tgtname.c @@ -26,8 +26,8 @@ static krb5_data tgtdata = {sizeof(TGTNAME), TGTNAME}; /* This is an internal-only function, used by krb5_get_cred_from_kdc() */ krb5_error_code -krb5_tgtname(server, client, tgtprinc) -const krb5_principal server, client; +krb5_tgtname(client, server, tgtprinc) +const krb5_data *client, *server; krb5_principal *tgtprinc; { krb5_principal retprinc; @@ -35,7 +35,7 @@ krb5_principal *tgtprinc; if (!(retprinc = (krb5_data **)calloc(4, sizeof(krb5_data *)))) return ENOMEM; - if (retval = krb5_copy_data(krb5_princ_realm(server), &retprinc[0])) { + if (retval = krb5_copy_data(server, &retprinc[0])) { xfree(retprinc); return retval; } @@ -44,7 +44,7 @@ krb5_principal *tgtprinc; xfree(retprinc); return retval; } - if (retval = krb5_copy_data(krb5_princ_realm(client), &retprinc[2])) { + if (retval = krb5_copy_data(client, &retprinc[2])) { krb5_free_data(retprinc[0]); krb5_free_data(retprinc[1]); xfree(retprinc); -- 2.26.2