diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2017-10-03 19:10:04 +0300 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-03 18:16:55 +0000 |
commit | b7fe3c6e8c9d332fc6d3ca55ec9f852ce162c5a1 (patch) | |
tree | ab4bd11602c77223192796230e785873061d8b6b /core/fpdfapi/parser/cpdf_security_handler.cpp | |
parent | e4289f69a28d26d14c94bcc0c0b8368dbc2f7e1c (diff) | |
download | pdfium-b7fe3c6e8c9d332fc6d3ca55ec9f852ce162c5a1.tar.xz |
Move the CryptoHandler into the SecurityHandler
Change-Id: Idb5928e65833641d0443d955e4f2866d0f94cf5f
Reviewed-on: https://pdfium-review.googlesource.com/15291
Commit-Queue: Art Snake <art-snake@yandex-team.ru>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_security_handler.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_security_handler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/cpdf_security_handler.cpp b/core/fpdfapi/parser/cpdf_security_handler.cpp index dce2ac4fdc..03c15458a9 100644 --- a/core/fpdfapi/parser/cpdf_security_handler.cpp +++ b/core/fpdfapi/parser/cpdf_security_handler.cpp @@ -706,3 +706,8 @@ void CPDF_SecurityHandler::AES256_SetPerms(CPDF_Dictionary* pEncryptDict, CRYPT_AESEncrypt(&aes, buf1, buf, 16); pEncryptDict->SetNewFor<CPDF_String>("Perms", ByteString(buf1, 16), false); } + +bool CPDF_SecurityHandler::InitCryptoHandler() { + m_pCryptoHandler = pdfium::MakeUnique<CPDF_CryptoHandler>(); + return m_pCryptoHandler->Init(m_pEncryptDict.Get(), this); +} |