| Index: net/http/des.cc
|
| diff --git a/net/http/des.cc b/net/http/des.cc
|
| index 79240cff72a6f2f0897879743fa774040e5483f2..daac8a474d2fa4728ab22bf5d090e797f627018f 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_unchecked(
|
| - reinterpret_cast<const_DES_cblock*>(const_cast<uint8*>(key)), &ks);
|
| + DES_set_key(
|
| + reinterpret_cast<const DES_cblock*>(key), &ks);
|
|
|
| - DES_ecb_encrypt(reinterpret_cast<const_DES_cblock*>(const_cast<uint8*>(src)),
|
| + DES_ecb_encrypt(reinterpret_cast<const DES_cblock*>(src),
|
| reinterpret_cast<DES_cblock*>(hash), &ks, DES_ENCRYPT);
|
| }
|
|
|
|
|