From 6e7baf59cd6c03cb75ae292f3e513aaa172f0c14 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 8 Feb 1990 10:14:51 +0000 Subject: [PATCH] add comments; rearrange argument order to be in, then out git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@319 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/decrypt_key.c | 10 ++++++++-- src/lib/kdb/encrypt_key.c | 6 ++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/lib/kdb/decrypt_key.c b/src/lib/kdb/decrypt_key.c index 806cbc0a5..50b963153 100644 --- a/src/lib/kdb/decrypt_key.c +++ b/src/lib/kdb/decrypt_key.c @@ -22,11 +22,17 @@ static char rcsid_decrypt_key_c [] = #include +/* + * 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; diff --git a/src/lib/kdb/encrypt_key.c b/src/lib/kdb/encrypt_key.c index 4d82cc945..e82a87ccb 100644 --- a/src/lib/kdb/encrypt_key.c +++ b/src/lib/kdb/encrypt_key.c @@ -21,6 +21,12 @@ static char rcsid_encrypt_key_c [] = #include #include +/* + * 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; -- 2.26.2