krb5_encrypt_block *,
krb5_pointer));
krb5_error_code (*process_key) PROTOTYPE((krb5_encrypt_block *,
- const krb5_keyblock *));
+ krb5_keyblock *));
krb5_error_code (*finish_key) PROTOTYPE((krb5_encrypt_block *));
krb5_error_code (*string_to_key) PROTOTYPE((const krb5_keytype,
krb5_keyblock *,
const krb5_data *,
- const krb5_principal));
+ krb5_const_principal));
krb5_error_code (*init_random_key) PROTOTYPE((const krb5_keyblock *,
krb5_pointer *));
krb5_error_code (*finish_random_key) PROTOTYPE((krb5_pointer *));
/* enc_dec.c */
extern krb5_error_code mit_des_encrypt_func
- PROTOTYPE(( krb5_pointer, krb5_pointer, size_t, krb5_encrypt_block *,
- krb5_pointer ));
+ PROTOTYPE(( krb5_const_pointer, krb5_pointer, const size_t,
+ krb5_encrypt_block *, krb5_pointer ));
extern krb5_error_code mit_des_decrypt_func
- PROTOTYPE(( krb5_pointer, krb5_pointer, size_t, krb5_encrypt_block *,
- krb5_pointer ));
+ PROTOTYPE(( krb5_const_pointer, krb5_pointer, const size_t,
+ krb5_encrypt_block *, krb5_pointer ));
extern krb5_error_code mit_des_cbc_encrypt
PROTOTYPE((krb5_octet *, krb5_octet *, long, mit_des_key_schedule,
krb5_octet *, int));
/* init_rkey.c */
extern krb5_error_code mit_des_init_random_key
- PROTOTYPE(( krb5_keyblock *, krb5_pointer *));
+ PROTOTYPE(( const krb5_keyblock *, krb5_pointer *));
/* key_parity.c */
extern void mit_des_fixup_key_parity PROTOTYPE((mit_des_cblock ));
/* string2key.c */
extern krb5_error_code mit_des_string_to_key
- PROTOTYPE((krb5_keytype, krb5_keyblock *, krb5_data *, krb5_principal ));
+ PROTOTYPE((const krb5_keytype, krb5_keyblock *, const krb5_data *,
+ krb5_const_principal ));
/* weak_key.c */
extern int mit_des_is_weak_key PROTOTYPE((mit_des_cblock ));
sequence information.
*/
-krb5_error_code mit_des_init_random_key (DECLARG(krb5_keyblock *,seedblock),
+krb5_error_code mit_des_init_random_key (DECLARG(const krb5_keyblock *,seedblock),
DECLARG(krb5_pointer *,seed))
-OLDDECLARG(krb5_keyblock *,seedblock)
+OLDDECLARG(const krb5_keyblock *,seedblock)
OLDDECLARG(krb5_pointer *,seed)
{
mit_des_random_key_seed * p_seed;
returns: errors
*/
-krb5_error_code mit_des_string_to_key (DECLARG(krb5_keytype, keytype),
+krb5_error_code mit_des_string_to_key (DECLARG(const krb5_keytype, keytype),
DECLARG(krb5_keyblock *,keyblock),
- DECLARG(krb5_data *,data),
- DECLARG(krb5_principal, princ))
-OLDDECLARG(krb5_keytype, keytype)
+ DECLARG(const krb5_data *,data),
+ DECLARG(krb5_const_principal, princ))
+OLDDECLARG(const krb5_keytype, keytype)
OLDDECLARG(krb5_keyblock *,keyblock)
-OLDDECLARG(krb5_data *,data)
-OLDDECLARG(krb5_principal, princ)
+OLDDECLARG(const krb5_data *,data)
+OLDDECLARG(krb5_const_principal, princ)
{
char copystr[512];