diff options
author | Zdenek Dohnal <zdohnal@redhat.com> | 2021-04-29 11:50:42 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2021-04-29 15:42:38 +0200 |
commit | 16c19e94244a7677890b8d7bd36eed09fe20fb0f (patch) | |
tree | 5e5cabf32c6def6cf5526201813587f46d5e3fdc /libqpdf | |
parent | 36c7c208191a0fd34cf48bdfb4af66b4ab0ec594 (diff) | |
download | qpdf-16c19e94244a7677890b8d7bd36eed09fe20fb0f.tar.zst |
libqpdf/Pl_AES_PDF.cc: remove duplicated if branch
Check for this->encrypt seems to be moved to plugged crypto
implementations, so it can be removed from Pl_AES_PDF.cc.
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/Pl_AES_PDF.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libqpdf/Pl_AES_PDF.cc b/libqpdf/Pl_AES_PDF.cc index 2865f804..f4ba1923 100644 --- a/libqpdf/Pl_AES_PDF.cc +++ b/libqpdf/Pl_AES_PDF.cc @@ -209,14 +209,7 @@ Pl_AES_PDF::flush(bool strip_padding) } } - if (this->encrypt) - { - this->crypto->rijndael_process(this->inbuf, this->outbuf); - } - else - { - this->crypto->rijndael_process(this->inbuf, this->outbuf); - } + this->crypto->rijndael_process(this->inbuf, this->outbuf); unsigned int bytes = this->buf_size; if (strip_padding) { |