add authorization data stuff (from Bill Sommerfeld)
authorJohn Kohl <jtkohl@mit.edu>
Thu, 18 Oct 1990 10:53:28 +0000 (10:53 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 18 Oct 1990 10:53:28 +0000 (10:53 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1261 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/gc_via_tgt.c
src/lib/krb5/krb/get_creds.c

index 6ab036fd527a65617b3f3a314d995e71005ed279..e848ed8b037367128cb880a596f9858534b6f81d 100644 (file)
@@ -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;
index 51ebc62d2ad9bf4e5da2d90dca43c028930c80a8..4bc264660065d764f109638dc611429663bce751 100644 (file)
@@ -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: