summaryrefslogtreecommitdiffstats
path: root/net/http/des.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/des.cc')
-rw-r--r--net/http/des.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/http/des.cc b/net/http/des.cc
index daac8a4..79240cf 100644
--- a/net/http/des.cc
+++ b/net/http/des.cc
@@ -93,10 +93,10 @@ void DESEncrypt(const uint8* key, const uint8* src, uint8* hash) {
crypto::EnsureOpenSSLInit();
DES_key_schedule ks;
- DES_set_key(
- reinterpret_cast<const DES_cblock*>(key), &ks);
+ DES_set_key_unchecked(
+ reinterpret_cast<const_DES_cblock*>(const_cast<uint8*>(key)), &ks);
- DES_ecb_encrypt(reinterpret_cast<const DES_cblock*>(src),
+ DES_ecb_encrypt(reinterpret_cast<const_DES_cblock*>(const_cast<uint8*>(src)),
reinterpret_cast<DES_cblock*>(hash), &ks, DES_ENCRYPT);
}