From: John Kohl Date: Thu, 18 Oct 1990 10:53:28 +0000 (+0000) Subject: add authorization data stuff (from Bill Sommerfeld) X-Git-Tag: krb5-1.0-alpha2~150 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=94f23566d3bdb0e284d76061e621a99779aaf40e;p=krb5.git add authorization data stuff (from Bill Sommerfeld) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1261 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/gc_via_tgt.c b/src/lib/krb5/krb/gc_via_tgt.c index 6ab036fd5..e848ed8b0 100644 --- a/src/lib/krb5/krb/gc_via_tgt.c +++ b/src/lib/krb5/krb/gc_via_tgt.c @@ -65,7 +65,7 @@ OLDDECLARG(krb5_creds *, cred) if (retval = krb5_send_tgs(kdcoptions, &cred->times, etype, sumtype, cred->server, tgt->addresses, - 0, /* no authorization data */ + cred->authdata, 0, /* no second ticket */ tgt, &tgsrep)) return retval; diff --git a/src/lib/krb5/krb/get_creds.c b/src/lib/krb5/krb/get_creds.c index 51ebc62d2..4bc264660 100644 --- a/src/lib/krb5/krb/get_creds.c +++ b/src/lib/krb5/krb/get_creds.c @@ -50,8 +50,10 @@ krb5_creds *creds; mcreds.client = creds->client; mcreds.times.endtime = creds->times.endtime; mcreds.keyblock = creds->keyblock; - - fields = KRB5_TC_MATCH_TIMES /*XXX |KRB5_TC_MATCH_SKEY_TYPE */ ; + mcreds.authdata = creds->authdata; + + fields = KRB5_TC_MATCH_TIMES /*XXX |KRB5_TC_MATCH_SKEY_TYPE */ + | KRB5_TC_MATCH_AUTHDATA; switch(retval = krb5_cc_retrieve_cred(ccache, fields, &mcreds, creds)) { case KRB5_CC_NOTFOUND: