aboutsummaryrefslogtreecommitdiff
path: root/sys/kgssapi
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2019-08-26 17:25:07 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2019-08-26 17:25:07 +0000
commit87210a0c6d998c355f0fa159cc54875f875db388 (patch)
treed610c4dc9af1536692283ebaef74b79b967028a5 /sys/kgssapi
parent15ddc5e43ffa893e0a9076294f1369bac43086c1 (diff)
Notes
Diffstat (limited to 'sys/kgssapi')
-rw-r--r--sys/kgssapi/krb5/kcrypto_des.c4
-rw-r--r--sys/kgssapi/krb5/kcrypto_des3.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kgssapi/krb5/kcrypto_des.c b/sys/kgssapi/krb5/kcrypto_des.c
index 14ef77361376..65dbed5b66b3 100644
--- a/sys/kgssapi/krb5/kcrypto_des.c
+++ b/sys/kgssapi/krb5/kcrypto_des.c
@@ -135,8 +135,8 @@ des1_random_to_key(struct krb5_key_state *ks, const void *in)
| ((inkey[4] & 1) << 5)
| ((inkey[5] & 1) << 6)
| ((inkey[6] & 1) << 7));
- des_set_odd_parity((des_cblock *) outkey);
- if (des_is_weak_key((des_cblock *) outkey))
+ des_set_odd_parity(outkey);
+ if (des_is_weak_key(outkey))
outkey[7] ^= 0xf0;
des1_set_key(ks, ks->ks_key);
diff --git a/sys/kgssapi/krb5/kcrypto_des3.c b/sys/kgssapi/krb5/kcrypto_des3.c
index 54c28e3e39cb..1038908d6650 100644
--- a/sys/kgssapi/krb5/kcrypto_des3.c
+++ b/sys/kgssapi/krb5/kcrypto_des3.c
@@ -144,8 +144,8 @@ des3_random_to_key(struct krb5_key_state *ks, const void *in)
| ((inkey[4] & 1) << 5)
| ((inkey[5] & 1) << 6)
| ((inkey[6] & 1) << 7));
- des_set_odd_parity((des_cblock *) outkey);
- if (des_is_weak_key((des_cblock *) outkey))
+ des_set_odd_parity(outkey);
+ if (des_is_weak_key(outkey))
outkey[7] ^= 0xf0;
}