diff options
author | Lei Zhang <thestig@chromium.org> | 2017-04-03 17:27:11 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-04 13:12:18 +0000 |
commit | e115b2e6a892e0af3b011475c0deed093284e7b4 (patch) | |
tree | 97b9a48fc579803368f1f963b9b7d4553515bac6 /core/fpdfapi | |
parent | bb4a1bc09f92f781deefae5dc187fef21d6957fd (diff) | |
download | pdfium-e115b2e6a892e0af3b011475c0deed093284e7b4.tar.xz |
Remove unneeded void* casts.
Change-Id: Icf6b0ec88dfc8dc707b18ca4ad25dd77610b4c91
Reviewed-on: https://pdfium-review.googlesource.com/3622
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r-- | core/fpdfapi/parser/cpdf_security_handler.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/fpdfapi/parser/cpdf_security_handler.cpp b/core/fpdfapi/parser/cpdf_security_handler.cpp index 44042cb47c..e95715b966 100644 --- a/core/fpdfapi/parser/cpdf_security_handler.cpp +++ b/core/fpdfapi/parser/cpdf_security_handler.cpp @@ -452,11 +452,9 @@ bool CPDF_SecurityHandler::CheckUserPassword(const uint8_t* password, CRYPT_MD5Finish(&md5, ukeybuf); return memcmp(test, ukeybuf, 16) == 0; } - if (memcmp((void*)ukey.c_str(), ukeybuf, 16) == 0) { - return true; - } - return false; + return memcmp(ukey.c_str(), ukeybuf, 16) == 0; } + CFX_ByteString CPDF_SecurityHandler::GetUserPassword(const uint8_t* owner_pass, uint32_t pass_size, int32_t key_len) { |