From 94f23566d3bdb0e284d76061e621a99779aaf40e Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 18 Oct 1990 10:53:28 +0000 Subject: [PATCH] add authorization data stuff (from Bill Sommerfeld) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1261 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/gc_via_tgt.c | 2 +- src/lib/krb5/krb/get_creds.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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: -- 2.26.2