add comments; rearrange argument order to be in, then out
authorJohn Kohl <jtkohl@mit.edu>
Thu, 8 Feb 1990 10:14:51 +0000 (10:14 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 8 Feb 1990 10:14:51 +0000 (10:14 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@319 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/decrypt_key.c
src/lib/kdb/encrypt_key.c

index 806cbc0a55c1db1daf8adf16d1ae6f87ee520c3b..50b96315368269aa3db23810b94b1f36190ee0a2 100644 (file)
@@ -22,11 +22,17 @@ static char rcsid_decrypt_key_c [] =
 #include <errno.h>
 
 
+/*
+ * Decrypt a key from storage in the database.  "eblock" is used
+ * to decrypt the key in "in" into "out"; the storage pointed to by "out"
+ * is allocated before use.
+ */
+
 krb5_error_code
-krb5_kdb_decrypt_key(in, out, eblock)
+krb5_kdb_decrypt_key(eblock, in, out)
+krb5_encrypt_block *eblock;
 krb5_keyblock *in;
 krb5_keyblock *out;
-krb5_encrypt_block *eblock;
 {
     krb5_error_code retval;
 
index 4d82cc94561019ad59a4b72b00bbb5a7967effba..e82a87ccbf8bb7c5a685f6d9f213b574c1b8292d 100644 (file)
@@ -21,6 +21,12 @@ static char rcsid_encrypt_key_c [] =
 #include <krb5/ext-proto.h>
 #include <errno.h>
 
+/*
+ * Encrypt a key for storage in the database.  "eblock" is used
+ * to encrypt the key in "in" into "out"; the storage pointed to by "out"
+ * is allocated before use.
+ */
+
 krb5_error_code
 krb5_kdb_encrypt_key(in, out, eblock)
 krb5_keyblock *in;