From cafcf6bd1c9b8bff5259ca6d8c28ac93ad0de3a4 Mon Sep 17 00:00:00 2001 From: m-holger Date: Fri, 11 Jul 2025 20:56:36 +0100 Subject: [PATCH] Deprecate QPDF::compute_encryption_key --- include/qpdf/QPDF.hh | 9 +++++++-- manual/release-notes.rst | 9 +++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index 89fdf81..dba648b 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -438,6 +438,9 @@ class QPDF // Encryption support enum encryption_method_e { e_none, e_unknown, e_rc4, e_aes, e_aesv3 }; + + // To be removed from the public API in qpdf 13. See + // . class EncryptionData { public: @@ -558,8 +561,10 @@ class QPDF bool use_aes, int encryption_V, int encryption_R); - QPDF_DLL - static std::string + + // To be removed in qpdf 13. See . + [[deprecated("to be removed in qpdf 13")]] + QPDF_DLL static std::string compute_encryption_key(std::string const& password, EncryptionData const& data); QPDF_DLL diff --git a/manual/release-notes.rst b/manual/release-notes.rst index a68d42f..72c8e93 100644 --- a/manual/release-notes.rst +++ b/manual/release-notes.rst @@ -65,6 +65,15 @@ more detail. - Other changes +.. _r12-3-0-deprecate: + + - The following are believed to be not in use and have been deprecated. + If you are relying on them please open a ticket_. + + - QPDF::compute_encryption_key + - All QPDF::EncryptionData methods. These methods are not exported in the + shared library and are only useable in statically linked programs. + - Setting :qpdf:ref:`--compress-streams` to ``n`` or ``QPDFWriter::setCompressStreams(false)`` no longer automatically causes the outputfile to be decrypted. Set :qpdf:ref:`--decrypt` if this -- libgit2 0.21.4