Fix 1DES/3DES cast bug and build

This commit is contained in:
Nicolas Williams
2016-04-19 11:26:09 -05:00
parent a9887a843f
commit 12c922266b
4 changed files with 5 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ krb5_DES_random_to_key(krb5_context context,
memcpy(k, data, key->keyvalue.length);
DES_set_odd_parity(k);
if(DES_is_weak_key(k))
_krb5_xor(k, (const unsigned char*)"\0\0\0\0\0\0\0\xf0");
_krb5_xor8(*k, (const unsigned char*)"\0\0\0\0\0\0\0\xf0");
}
static struct _krb5_key_type keytype_des_old = {