+2001-01-23 Ken Raeburn <raeburn@mit.edu>
+
+ * stringtokey.c (kerberos): Now const.
+ (krb5_dk_string_to_key): Cast it to non-const.
+
2000-06-03 Tom Yu <tlyu@mit.edu>
* dk_encrypt.c (krb5_dk_encrypt, krb5_marc_dk_encrypt): Chain
#include "dk.h"
-static unsigned char kerberos[] = "kerberos";
+static const unsigned char kerberos[] = "kerberos";
#define kerberos_len (sizeof(kerberos)-1)
krb5_error_code
/* now derive the key from this one */
indata.length = kerberos_len;
- indata.data = kerberos;
+ indata.data = (unsigned char *) kerberos;
if ((ret = krb5_derive_key(enc, &foldkey, key, &indata)))
memset(key->contents, 0, key->length);