Commit cafcf6bd1c9b8bff5259ca6d8c28ac93ad0de3a4

Authored by m-holger
1 parent 2ef866db

Deprecate QPDF::compute_encryption_key

include/qpdf/QPDF.hh
... ... @@ -438,6 +438,9 @@ class QPDF
438 438 // Encryption support
439 439  
440 440 enum encryption_method_e { e_none, e_unknown, e_rc4, e_aes, e_aesv3 };
  441 +
  442 + // To be removed from the public API in qpdf 13. See
  443 + // <https:manual.qpdf.org/release-notes.html#r12-3-0-deprecate>.
441 444 class EncryptionData
442 445 {
443 446 public:
... ... @@ -558,8 +561,10 @@ class QPDF
558 561 bool use_aes,
559 562 int encryption_V,
560 563 int encryption_R);
561   - QPDF_DLL
562   - static std::string
  564 +
  565 + // To be removed in qpdf 13. See <https:manual.qpdf.org/release-notes.html#r12-3-0-deprecate>.
  566 + [[deprecated("to be removed in qpdf 13")]]
  567 + QPDF_DLL static std::string
563 568 compute_encryption_key(std::string const& password, EncryptionData const& data);
564 569  
565 570 QPDF_DLL
... ...
manual/release-notes.rst
... ... @@ -65,6 +65,15 @@ more detail.
65 65  
66 66 - Other changes
67 67  
  68 +.. _r12-3-0-deprecate:
  69 +
  70 + - The following are believed to be not in use and have been deprecated.
  71 + If you are relying on them please open a ticket_.
  72 +
  73 + - QPDF::compute_encryption_key
  74 + - All QPDF::EncryptionData methods. These methods are not exported in the
  75 + shared library and are only useable in statically linked programs.
  76 +
68 77 - Setting :qpdf:ref:`--compress-streams` to ``n`` or
69 78 ``QPDFWriter::setCompressStreams(false)`` no longer automatically
70 79 causes the outputfile to be decrypted. Set :qpdf:ref:`--decrypt` if this
... ...