diff --git a/lib/krb5/crypto.c b/lib/krb5/crypto.c index 7743f191d..c00ad25f6 100644 --- a/lib/krb5/crypto.c +++ b/lib/krb5/crypto.c @@ -1174,7 +1174,7 @@ krb5_string_to_key (krb5_context context, krb5_keyblock *key) { krb5_data pw; - pw.data = (void*)password; + pw.data = rk_UNCONST(password); pw.length = strlen(password); return krb5_string_to_key_data(context, enctype, pw, principal, key); }