From: John Kohl Date: Thu, 8 Feb 1990 10:15:58 +0000 (+0000) Subject: fix up declaration of kdc_rdreq_keyproc for prototype confusion w.r.t. X-Git-Tag: krb5-1.0-alpha2~1064 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=031be96ded74b2b0fd44f614bba546ce4e50768e;p=krb5.git fix up declaration of kdc_rdreq_keyproc for prototype confusion w.r.t. 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 --- diff --git a/src/kdc/kdc_util.c b/src/kdc/kdc_util.c index bafe40ea8..ff9e9015f 100644 --- a/src/kdc/kdc_util.c +++ b/src/kdc/kdc_util.c @@ -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; }