change declaration of krb5_decode_kdc_rep for ANSI stuff
authorJohn Kohl <jtkohl@mit.edu>
Thu, 8 Feb 1990 10:18:26 +0000 (10:18 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 8 Feb 1990 10:18:26 +0000 (10:18 +0000)
change argument order for krb5_kdc_rep_decrypt_proc

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

src/lib/krb5/krb/decode_kdc.c

index 8c26e4cc682f15505ded0b244dd5123c7fcf03a0..dd10cd99c1c77b9100dbb70926856a69371d884f 100644 (file)
@@ -40,11 +40,14 @@ static char rcsid_decode_kdc_c[] =
  */
 
 krb5_error_code
-krb5_decode_kdc_rep(enc_rep, key, etype, dec_rep)
-krb5_data *enc_rep;
-krb5_keyblock *key;
-krb5_enctype etype;
-krb5_kdc_rep **dec_rep;
+krb5_decode_kdc_rep(DECLARG(krb5_data *, enc_rep),
+                   DECLARG(krb5_keyblock *, key),
+                   DECLARG(krb5_enctype, etype),
+                   DECLARG(krb5_kdc_rep **, dec_rep))
+OLDDECLARG(krb5_data *, enc_rep)
+OLDDECLARG(krb5_keyblock *, key)
+OLDDECLARG(krb5_enctype, etype)
+OLDDECLARG(krb5_kdc_rep **, dec_rep)
 {
     krb5_error_code retval;
     krb5_kdc_rep *local_dec_rep;
@@ -70,7 +73,7 @@ krb5_kdc_rep **dec_rep;
     if (local_dec_rep->etype != etype) {
        return KRB5KDC_ERR_ETYPE_NOSUPP; /* XXX */
     }
-    if (retval = krb5_kdc_rep_decrypt_proc(local_dec_rep, key, 0)) {
+    if (retval = krb5_kdc_rep_decrypt_proc(key, 0, local_dec_rep)) {
        krb5_free_kdc_rep(local_dec_rep);
        return(retval);
     }