diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2017-10-03 20:31:00 +0300 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-03 18:18:55 +0000 |
commit | c3d5c9746384ccf13617370fbc81397040355c4d (patch) | |
tree | 49e027b7c731d4062eb4179ccfd7a0b188ab91ed /core/fpdfapi/edit | |
parent | b7fe3c6e8c9d332fc6d3ca55ec9f852ce162c5a1 (diff) | |
download | pdfium-c3d5c9746384ccf13617370fbc81397040355c4d.tar.xz |
Use ByteString instead raw string for password in CPDF_SecurityHandler.
Change-Id: I598d42027d033b250134429dfdf92ba043a523a3
Reviewed-on: https://pdfium-review.googlesource.com/15310
Commit-Queue: Art Snake <art-snake@yandex-team.ru>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit')
-rw-r--r-- | core/fpdfapi/edit/cpdf_creator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/fpdfapi/edit/cpdf_creator.cpp b/core/fpdfapi/edit/cpdf_creator.cpp index 3fa6817957..d6384059d1 100644 --- a/core/fpdfapi/edit/cpdf_creator.cpp +++ b/core/fpdfapi/edit/cpdf_creator.cpp @@ -806,8 +806,7 @@ void CPDF_Creator::InitID() { uint32_t flag = PDF_ENCRYPT_CONTENT; m_pSecurityHandler = pdfium::MakeUnique<CPDF_SecurityHandler>(); m_pSecurityHandler->OnCreate(m_pEncryptDict.Get(), m_pIDArray.get(), - user_pass.raw_str(), user_pass.GetLength(), - flag); + user_pass, flag); m_pSecurityHandler->InitCryptoHandler(); m_bSecurityChanged = true; } |