} else {
/* from somewhere else */
- krb5_keytype keytype;
+ krb5_octet keytype;
char defkeyfile[MAXPATHLEN+1];
krb5_data *realm = krb5_princ_realm(context, mname);
FILE *kf;
{
FILE *kf;
krb5_error_code retval = 0;
+ krb5_octet keytype;
char defkeyfile[MAXPATHLEN+1];
krb5_data *realm = krb5_princ_realm(context, mname);
#if defined(unix) || defined(__unix__)
#endif
return errno;
}
- if ((fwrite((krb5_pointer) &key->keytype,
+ keytype = key->keytype;
+ if ((fwrite((krb5_pointer) &keytype,
1, 1, kf) != 1) ||
(fwrite((krb5_pointer) &key->length,
sizeof(key->length), 1, kf) != 1) ||