git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3695 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-10-29 01:28:03 +00:00
parent 770632d951
commit 545297c6e4
7 changed files with 15 additions and 12 deletions

View File

@@ -94,7 +94,8 @@ int main(int argc, char **argv)
f = fopen(keyfile, "w");
if(f == NULL)
krb5_err(context, 1, errno, "fopen(%s)", keyfile);
encode_EncryptionKey(buf + sizeof(buf) - 1, sizeof(buf), &key, &len);
encode_EncryptionKey((unsigned char *)buf + sizeof(buf) - 1,
sizeof(buf), &key, &len);
fwrite(buf + sizeof(buf) - len, len, 1, f);
fclose(f);
exit(0);