diff options
author | Chris Provenzano <proven@mit.edu> | 1995-02-23 13:26:23 +0000 |
---|---|---|
committer | Chris Provenzano <proven@mit.edu> | 1995-02-23 13:26:23 +0000 |
commit | 3a733ba33321031789b54ec93370b1de2c2459d4 (patch) | |
tree | b856cb5f5d19a38ead98c2a9b7bdc1b8768d9d84 /src | |
parent | 9d4d3979b2c8c8743f37cf049ccbcd87b786a177 (diff) | |
download | krb5-3a733ba33321031789b54ec93370b1de2c2459d4.tar.gz krb5-3a733ba33321031789b54ec93370b1de2c2459d4.tar.xz krb5-3a733ba33321031789b54ec93370b1de2c2459d4.zip |
* krb_auth_su.c krb5_auth_check()) Call krb5_get_cred_from_kdc()
with new calling convention.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4988 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/clients/ksu/ChangeLog | 5 | ||||
-rw-r--r-- | src/clients/ksu/krb_auth_su.c | 20 |
2 files changed, 16 insertions, 9 deletions
diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index 93ccbd533..92a17a0a5 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 17 18:10:04 1995 Chris Provenzano (proven@mit.edu) + + * krb_auth_su.c krb5_auth_check()) Call krb5_get_cred_from_kdc() + with new calling convention. + Mon Feb 06 17:19:04 1995 Chris Provenzano (proven@mit.edu) * krb_auth_su.c Removed krb5_keytype, changed krb5_enctype to diff --git a/src/clients/ksu/krb_auth_su.c b/src/clients/ksu/krb_auth_su.c index 9e7e153da..cc413bec8 100644 --- a/src/clients/ksu/krb_auth_su.c +++ b/src/clients/ksu/krb_auth_su.c @@ -62,7 +62,7 @@ krb5_boolean krb5_auth_check(context, client_pname, hostname, options, int *path_passwd; { krb5_principal client, server; -krb5_creds tgt, tgtq, cred; +krb5_creds tgt, tgtq, in_creds, * out_creds; krb5_creds **tgts = NULL; /* list of ticket granting tickets */ krb5_ticket * target_tkt; /* decrypted ticket for server */ @@ -73,7 +73,7 @@ krb5_boolean zero_password; *path_passwd = 0; memset((char *) &tgtq, 0, sizeof(tgtq)); memset((char *) &tgt, 0, sizeof(tgt)); - memset((char *) &cred, 0, sizeof(cred)); + memset((char *) &in_creds, 0, sizeof(krb5_creds)); if (retval= krb5_copy_principal(context, client_pname, &client)){ @@ -162,17 +162,18 @@ krb5_boolean zero_password; } - if (retval= krb5_copy_principal(context, client, &cred.client)){ + if (retval= krb5_copy_principal(context, client, &in_creds.client)){ com_err(prog_name, retval,"while copying client principal"); return (FALSE) ; } - if (retval= krb5_copy_principal(context, server, &cred.server)){ + if (retval= krb5_copy_principal(context, server, &in_creds.server)){ com_err(prog_name, retval,"while copying client principal"); return (FALSE) ; } - if (retval = krb5_get_cred_from_kdc(context, cc, &cred, &tgts)){ + if (retval = krb5_get_cred_from_kdc(context, cc, &in_creds, + &out_creds, &tgts)){ com_err(prog_name, retval, "while geting credentials from kdc"); return (FALSE); } @@ -180,7 +181,7 @@ krb5_boolean zero_password; if (auth_debug){ fprintf(stderr,"krb5_auth_check: got ticket for end server \n"); - dump_principal("cred.server", cred.server ); + dump_principal("out_creds->server", out_creds->server ); } @@ -201,13 +202,14 @@ krb5_boolean zero_password; krb5_free_tgt_creds(context, tgts); } - if (retval = krb5_verify_tkt_def(context, client, server,&cred.keyblock, - &cred.ticket, &target_tkt)){ + if (retval = krb5_verify_tkt_def(context, client, server, + &out_creds->keyblock, + &out_creds->ticket, &target_tkt)){ com_err(prog_name, retval, "while verifing ticket for server"); return (FALSE); } - if (retval = krb5_cc_store_cred(context, cc, &cred)){ + if (retval = krb5_cc_store_cred(context, cc, out_creds)){ com_err(prog_name, retval, "While storing credentials"); return (FALSE); |