Changes to support new calling sequence for get_in_tkt (preauthentication
authorTheodore Tso <tytso@mit.edu>
Tue, 29 Sep 1992 13:45:39 +0000 (13:45 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 29 Sep 1992 13:45:39 +0000 (13:45 +0000)
and KDC reply changes)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2416 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/in_tkt_pwd.c
src/lib/krb5/krb/in_tkt_sky.c

index 38e32ed7699f95ae4231615426a692a6cc0d0052..03e3d9d0d99700707d49096a0e6fdf90c6b7ad67 100644 (file)
@@ -142,18 +142,22 @@ OLDDECLARG(krb5_pa_data **,padata)
 krb5_error_code
 krb5_get_in_tkt_with_password(DECLARG(const krb5_flags, options),
                              DECLARG(krb5_address * const *, addrs),
+                             DECLARG(const krb5_preauthtype, pre_auth_type),
                              DECLARG(const krb5_enctype, etype),
                              DECLARG(const krb5_keytype, keytype),
                              DECLARG(const char *, password),
                              DECLARG(krb5_ccache, ccache),
-                             DECLARG(krb5_creds *, creds))
+                             DECLARG(krb5_creds *, creds), 
+                             DECLARG(krb5_kdc_rep **, ret_as_reply))
 OLDDECLARG(const krb5_flags, options)
 OLDDECLARG(krb5_address * const *, addrs)
+OLDDECLARG(const krb5_preauthtype, pre_auth_type)
 OLDDECLARG(const krb5_enctype, etype)
 OLDDECLARG(const krb5_keytype, keytype)
 OLDDECLARG(const char *, password)
 OLDDECLARG(krb5_ccache, ccache)
 OLDDECLARG(krb5_creds *, creds)
+OLDDECLARG(krb5_kdc_rep **, ret_as_reply)
 {
     krb5_error_code retval;
     struct pwd_keyproc_arg keyseed;
@@ -166,10 +170,10 @@ OLDDECLARG(krb5_creds *, creds)
        keyseed.password.length = 0;
     keyseed.who = creds->client;
 
-    retval = krb5_get_in_tkt(options, addrs, etype, keytype, pwd_keyproc,
-                            (krb5_pointer) &keyseed,
+    retval = krb5_get_in_tkt(options, addrs, pre_auth_type, etype,
+                            keytype, pwd_keyproc, (krb5_pointer) &keyseed,
                             krb5_kdc_rep_decrypt_proc, 0,
-                            creds, ccache);
+                            creds, ccache, ret_as_reply);
     return retval;
 }
 
index cfd4cde0299835d9a1b75cb4413a015ae3396531..573235d9e33ebf529679df83ebaab5f6a5822856 100644 (file)
@@ -124,16 +124,21 @@ OLDDECLARG(krb5_pa_data **,padata)
 krb5_error_code
 krb5_get_in_tkt_with_skey(DECLARG(const krb5_flags, options),
                          DECLARG(krb5_address * const *, addrs),
+                         DECLARG(const krb5_preauthtype, pre_auth_type),
                          DECLARG(const krb5_enctype, etype),
                          DECLARG(const krb5_keyblock *,key),
                          DECLARG(krb5_ccache, ccache),
-                         DECLARG(krb5_creds *,creds))
+                         DECLARG(krb5_creds *,creds),
+                         DECLARG(krb5_kdc_rep **, ret_as_reply))
 OLDDECLARG(const krb5_flags, options)
 OLDDECLARG(krb5_address * const *, addrs)
+OLDDECLARG(const krb5_preauthtype, pre_auth_type)
 OLDDECLARG(const krb5_enctype, etype)
 OLDDECLARG(const krb5_keyblock *,key)
 OLDDECLARG(krb5_ccache, ccache)
 OLDDECLARG(krb5_creds *, creds)
+OLDDECLARG(krb5_kdc_rep **, ret_as_reply)
+
 {
     struct skey_keyproc_arg arg;
     krb5_keytype keytype;
@@ -150,10 +155,8 @@ OLDDECLARG(krb5_creds *, creds)
 
        keytype = krb5_csarray[etype]->system->proto_keytype;
     }
-    return (krb5_get_in_tkt(options, addrs, etype, keytype, skey_keyproc,
-                           (krb5_pointer) &arg,
-                           krb5_kdc_rep_decrypt_proc,
-                           0,
-                           creds,
-                           ccache));
+    return (krb5_get_in_tkt(options, addrs, pre_auth_type, etype, keytype,
+                           skey_keyproc, (krb5_pointer) &arg,
+                           krb5_kdc_rep_decrypt_proc, 0, creds,
+                           ccache, ret_as_reply));
 }