Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: trunk/src/net/http/des.cc

Issue 405503002: Revert 283813 "Switch to BoringSSL." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/net/cert/x509_certificate_openssl.cc ('k') | trunk/src/net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/net/http/des.cc
===================================================================
--- trunk/src/net/http/des.cc (revision 283844)
+++ trunk/src/net/http/des.cc (working copy)
@@ -93,10 +93,10 @@
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);
}
« no previous file with comments | « trunk/src/net/cert/x509_certificate_openssl.cc ('k') | trunk/src/net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698