summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-04-18 17:05:48 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-04-18 17:05:48 +0000
commit96a66e06b9af97c9a63fc5f8a8028f90e6aed7a2 (patch)
treecd4616956c83d24470d73cd146d5c21e122b822e /src/include
parent4ba78d6917717a533469ade2b06a4196fcbc07ec (diff)
downloadkrb5-96a66e06b9af97c9a63fc5f8a8028f90e6aed7a2.tar.gz
krb5-96a66e06b9af97c9a63fc5f8a8028f90e6aed7a2.tar.xz
krb5-96a66e06b9af97c9a63fc5f8a8028f90e6aed7a2.zip
add const's where appropriate on encryption routiens
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@485 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/krb5/encryption.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/include/krb5/encryption.h b/src/include/krb5/encryption.h
index 6cf3e9807..aee9c2181 100644
--- a/src/include/krb5/encryption.h
+++ b/src/include/krb5/encryption.h
@@ -37,21 +37,22 @@ typedef struct _krb5_encrypt_block {
/* could be used in a table to find an etype and initialize a block */
typedef struct _krb5_cryptosystem_entry {
- krb5_error_code (*encrypt_func) PROTOTYPE((krb5_pointer /* in */,
+ krb5_error_code (*encrypt_func) PROTOTYPE((const krb5_pointer /* in */,
krb5_pointer /* out */,
- size_t,
+ const size_t,
krb5_encrypt_block *));
- krb5_error_code (*decrypt_func) PROTOTYPE((krb5_pointer /* in */,
+ krb5_error_code (*decrypt_func) PROTOTYPE((const krb5_pointer /* in */,
krb5_pointer /* out */,
- size_t,
+ const size_t,
krb5_encrypt_block *));
krb5_error_code (*process_key) PROTOTYPE((krb5_encrypt_block *,
- krb5_keyblock *));
+ const krb5_keyblock *));
krb5_error_code (*finish_key) PROTOTYPE((krb5_encrypt_block *));
- krb5_error_code (*string_to_key) PROTOTYPE((krb5_keytype, krb5_keyblock *,
- krb5_data *,
- krb5_principal));
- krb5_error_code (*init_random_key) PROTOTYPE((krb5_keyblock *,
+ krb5_error_code (*string_to_key) PROTOTYPE((const krb5_keytype,
+ krb5_keyblock *,
+ const krb5_data *,
+ const krb5_principal));
+ krb5_error_code (*init_random_key) PROTOTYPE((const krb5_keyblock *,
krb5_pointer *));
krb5_error_code (*finish_random_key) PROTOTYPE((krb5_pointer *));
krb5_error_code (*random_key) PROTOTYPE((krb5_pointer,