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

Unified Diff: net/cert/ct_log_verifier_openssl.cc

Issue 417683003: Remove now unnecessary const_casts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | « content/child/webcrypto/openssl/rsa_ssa_openssl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/ct_log_verifier_openssl.cc
diff --git a/net/cert/ct_log_verifier_openssl.cc b/net/cert/ct_log_verifier_openssl.cc
index b85c0d603d7a35f2bd6bf009562808d832cf7452..884ae8a4a402774832b02d0ee41523544af9b9a1 100644
--- a/net/cert/ct_log_verifier_openssl.cc
+++ b/net/cert/ct_log_verifier_openssl.cc
@@ -112,7 +112,7 @@ bool CTLogVerifier::VerifySignature(const base::StringPiece& data_to_sign,
&ctx, data_to_sign.data(), data_to_sign.size()) &&
1 == EVP_DigestVerifyFinal(
&ctx,
- reinterpret_cast<unsigned char*>(const_cast<char*>(signature.data())),
+ reinterpret_cast<const uint8_t*>(signature.data()),
signature.size()));
EVP_MD_CTX_cleanup(&ctx);
« no previous file with comments | « content/child/webcrypto/openssl/rsa_ssa_openssl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698