diff options
author | Ken Raeburn <raeburn@mit.edu> | 2001-03-06 02:18:47 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2001-03-06 02:18:47 +0000 |
commit | 73b74582df45303fb0d4818875bcc20e362d1587 (patch) | |
tree | 56fba93089f77b42c14f49e7f3f5dc76c90f50c5 /src/lib/crypto/old | |
parent | dce11d06547b52fa2f4591e9a7d4cbeb77a9f3d0 (diff) | |
download | krb5-73b74582df45303fb0d4818875bcc20e362d1587.tar.gz krb5-73b74582df45303fb0d4818875bcc20e362d1587.tar.xz krb5-73b74582df45303fb0d4818875bcc20e362d1587.zip |
krb5_const -> const
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13058 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto/old')
-rw-r--r-- | src/lib/crypto/old/ChangeLog | 5 | ||||
-rw-r--r-- | src/lib/crypto/old/des_stringtokey.c | 6 | ||||
-rw-r--r-- | src/lib/crypto/old/old.h | 24 | ||||
-rw-r--r-- | src/lib/crypto/old/old_decrypt.c | 10 | ||||
-rw-r--r-- | src/lib/crypto/old/old_encrypt.c | 14 |
5 files changed, 32 insertions, 27 deletions
diff --git a/src/lib/crypto/old/ChangeLog b/src/lib/crypto/old/ChangeLog index 7446daa2c0..b859386af8 100644 --- a/src/lib/crypto/old/ChangeLog +++ b/src/lib/crypto/old/ChangeLog @@ -1,3 +1,8 @@ +2001-03-05 Ken Raeburn <raeburn@mit.edu> + + * des_stringtokey.c, old.h, old_decrypt.c, old_encrypt.c: Use + const instead of krb5_const. + 2000-06-03 Tom Yu <tlyu@mit.edu> * old_encrypt.c (krb5_old_encrypt): Chain ivecs. diff --git a/src/lib/crypto/old/des_stringtokey.c b/src/lib/crypto/old/des_stringtokey.c index 8aaac792e2..3369442bcf 100644 --- a/src/lib/crypto/old/des_stringtokey.c +++ b/src/lib/crypto/old/des_stringtokey.c @@ -35,9 +35,9 @@ KRB5_PROTOTYPE ((krb5_keyblock FAR * keyblock, krb5_error_code krb5_des_string_to_key(enc, string, salt, key) - krb5_const struct krb5_enc_provider *enc; - krb5_const krb5_data *string; - krb5_const krb5_data *salt; + const struct krb5_enc_provider *enc; + const krb5_data *string; + const krb5_data *salt; krb5_keyblock *key; { return(mit_des_string_to_key_int(key, string, salt)); diff --git a/src/lib/crypto/old/old.h b/src/lib/crypto/old/old.h index 9c7abc2fa2..a0523254ec 100644 --- a/src/lib/crypto/old/old.h +++ b/src/lib/crypto/old/old.h @@ -27,25 +27,25 @@ #include "k5-int.h" void krb5_old_encrypt_length -KRB5_PROTOTYPE((krb5_const struct krb5_enc_provider *enc, - krb5_const struct krb5_hash_provider *hash, +KRB5_PROTOTYPE((const struct krb5_enc_provider *enc, + const struct krb5_hash_provider *hash, size_t input, size_t *length)); krb5_error_code krb5_old_encrypt -KRB5_PROTOTYPE((krb5_const struct krb5_enc_provider *enc, - krb5_const struct krb5_hash_provider *hash, - krb5_const krb5_keyblock *key, krb5_keyusage usage, - krb5_const krb5_data *ivec, krb5_const krb5_data *input, +KRB5_PROTOTYPE((const struct krb5_enc_provider *enc, + const struct krb5_hash_provider *hash, + const krb5_keyblock *key, krb5_keyusage usage, + const krb5_data *ivec, const krb5_data *input, krb5_data *output)); krb5_error_code krb5_old_decrypt -KRB5_PROTOTYPE((krb5_const struct krb5_enc_provider *enc, - krb5_const struct krb5_hash_provider *hash, - krb5_const krb5_keyblock *key, krb5_keyusage usage, - krb5_const krb5_data *ivec, krb5_const krb5_data *input, +KRB5_PROTOTYPE((const struct krb5_enc_provider *enc, + const struct krb5_hash_provider *hash, + const krb5_keyblock *key, krb5_keyusage usage, + const krb5_data *ivec, const krb5_data *input, krb5_data *arg_output)); krb5_error_code krb5_des_string_to_key -KRB5_PROTOTYPE((krb5_const struct krb5_enc_provider *enc, - krb5_const krb5_data *string, krb5_const krb5_data *salt, +KRB5_PROTOTYPE((const struct krb5_enc_provider *enc, + const krb5_data *string, const krb5_data *salt, krb5_keyblock *key)); diff --git a/src/lib/crypto/old/old_decrypt.c b/src/lib/crypto/old/old_decrypt.c index bfbe56a109..6606be754f 100644 --- a/src/lib/crypto/old/old_decrypt.c +++ b/src/lib/crypto/old/old_decrypt.c @@ -35,12 +35,12 @@ krb5_error_code krb5_old_decrypt(enc, hash, key, usage, ivec, input, arg_output) - krb5_const struct krb5_enc_provider *enc; - krb5_const struct krb5_hash_provider *hash; - krb5_const krb5_keyblock *key; + const struct krb5_enc_provider *enc; + const struct krb5_hash_provider *hash; + const krb5_keyblock *key; krb5_keyusage usage; - krb5_const krb5_data *ivec; - krb5_const krb5_data *input; + const krb5_data *ivec; + const krb5_data *input; krb5_data *arg_output; { krb5_error_code ret; diff --git a/src/lib/crypto/old/old_encrypt.c b/src/lib/crypto/old/old_encrypt.c index 8860ba5ff9..374bbad082 100644 --- a/src/lib/crypto/old/old_encrypt.c +++ b/src/lib/crypto/old/old_encrypt.c @@ -29,8 +29,8 @@ void krb5_old_encrypt_length(enc, hash, inputlen, length) - krb5_const struct krb5_enc_provider *enc; - krb5_const struct krb5_hash_provider *hash; + const struct krb5_enc_provider *enc; + const struct krb5_hash_provider *hash; size_t inputlen; size_t *length; { @@ -44,12 +44,12 @@ krb5_old_encrypt_length(enc, hash, inputlen, length) krb5_error_code krb5_old_encrypt(enc, hash, key, usage, ivec, input, output) - krb5_const struct krb5_enc_provider *enc; - krb5_const struct krb5_hash_provider *hash; - krb5_const krb5_keyblock *key; + const struct krb5_enc_provider *enc; + const struct krb5_hash_provider *hash; + const krb5_keyblock *key; krb5_keyusage usage; - krb5_const krb5_data *ivec; - krb5_const krb5_data *input; + const krb5_data *ivec; + const krb5_data *input; krb5_data *output; { krb5_error_code ret; |