fix up declaration of kdc_rdreq_keyproc for prototype confusion w.r.t.
authorJohn Kohl <jtkohl@mit.edu>
Thu, 8 Feb 1990 10:15:58 +0000 (10:15 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 8 Feb 1990 10:15:58 +0000 (10:15 +0000)
ANSI
rearrange argument order to krb5_kdb_encrypt_key, krb5_kdb_decrypt_key

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

src/kdc/kdc_util.c

index bafe40ea8e5fabfe8723f275892d8cdce41cd1b3..ff9e9015ffc2c511f884d71208db88247c06904d 100644 (file)
@@ -150,11 +150,14 @@ struct kparg {
 };
 
 static krb5_error_code
-kdc_rdreq_keyproc(keyprocarg, principal, vno, key)
-krb5_pointer keyprocarg;
-krb5_principal principal;
-krb5_kvno vno;
-krb5_keyblock **key;
+kdc_rdreq_keyproc(DECLARG(krb5_pointer, keyprocarg),
+                 DECLARG(krb5_principal, principal),
+                 DECLARG(krb5_kvno, vno),
+                 DECLARG(krb5_keyblock **, key))
+OLDDECLARG(krb5_pointer, keyprocarg)
+OLDDECLARG(krb5_principal, principal)
+OLDDECLARG(krb5_kvno, vno)
+OLDDECLARG(krb5_keyblock **, key)
 {
     register struct kparg *whoisit = (struct kparg *)keyprocarg;
     register krb5_keyblock *newkey;
@@ -275,9 +278,9 @@ krb5_keyblock *in, *out;
 int direction;
 {
     if (direction == CONVERT_INTO_DB) {
-       return krb5_kdb_encrypt_key(in, out, &master_encblock);
+       return krb5_kdb_encrypt_key(&master_encblock, in, out);
     } else if (direction == CONVERT_OUTOF_DB) {
-       return krb5_kdb_decrypt_key(in, out, &master_encblock);
+       return krb5_kdb_decrypt_key(&master_encblock, in, out);
     } else
        return KRB5_KDB_ILLDIRECTION;
 }