From 2213ed0c3dd1bcc5a62725190cca4a6ad8eb9d7f Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 30 Apr 2022 16:10:29 -0400 Subject: Remove deprecated (pre-8.4.0) encryption APIs --- include/qpdf/QPDFWriter.hh | 38 -------------------------------------- include/qpdf/qpdf-c.h | 45 --------------------------------------------- 2 files changed, 83 deletions(-) (limited to 'include') diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh index 5d3ad5df..f30a9986 100644 --- a/include/qpdf/QPDFWriter.hh +++ b/include/qpdf/QPDFWriter.hh @@ -432,44 +432,6 @@ class QPDFWriter qpdf_r3_print_e print, bool encrypt_metadata_aes); - // Pre qpdf 8.4.0 API - [[deprecated("see newer API above")]] QPDF_DLL void - setR3EncryptionParameters( - char const* user_password, - char const* owner_password, - bool allow_accessibility, - bool allow_extract, - qpdf_r3_print_e print, - qpdf_r3_modify_e modify); - [[deprecated("see newer API above")]] QPDF_DLL void - setR4EncryptionParameters( - char const* user_password, - char const* owner_password, - bool allow_accessibility, - bool allow_extract, - qpdf_r3_print_e print, - qpdf_r3_modify_e modify, - bool encrypt_metadata, - bool use_aes); - [[deprecated("see newer API above")]] QPDF_DLL void - setR5EncryptionParameters( - char const* user_password, - char const* owner_password, - bool allow_accessibility, - bool allow_extract, - qpdf_r3_print_e print, - qpdf_r3_modify_e modify, - bool encrypt_metadata); - [[deprecated("see newer API above")]] QPDF_DLL void - setR6EncryptionParameters( - char const* user_password, - char const* owner_password, - bool allow_accessibility, - bool allow_extract, - qpdf_r3_print_e print, - qpdf_r3_modify_e modify, - bool encrypt_metadata_aes); - // Create linearized output. Disables qdf mode, content // normalization, and stream prefiltering. QPDF_DLL diff --git a/include/qpdf/qpdf-c.h b/include/qpdf/qpdf-c.h index 9c7557ab..1a81b899 100644 --- a/include/qpdf/qpdf-c.h +++ b/include/qpdf/qpdf-c.h @@ -524,51 +524,6 @@ extern "C" { enum qpdf_r3_print_e print, QPDF_BOOL encrypt_metadata); - /* Pre 8.4.0 encryption API */ - QPDF_DLL - void qpdf_set_r3_encryption_parameters( - qpdf_data qpdf, - char const* user_password, - char const* owner_password, - QPDF_BOOL allow_accessibility, - QPDF_BOOL allow_extract, - enum qpdf_r3_print_e print, - enum qpdf_r3_modify_e modify); - - QPDF_DLL - void qpdf_set_r4_encryption_parameters( - qpdf_data qpdf, - char const* user_password, - char const* owner_password, - QPDF_BOOL allow_accessibility, - QPDF_BOOL allow_extract, - enum qpdf_r3_print_e print, - enum qpdf_r3_modify_e modify, - QPDF_BOOL encrypt_metadata, - QPDF_BOOL use_aes); - - QPDF_DLL - void qpdf_set_r5_encryption_parameters( - qpdf_data qpdf, - char const* user_password, - char const* owner_password, - QPDF_BOOL allow_accessibility, - QPDF_BOOL allow_extract, - enum qpdf_r3_print_e print, - enum qpdf_r3_modify_e modify, - QPDF_BOOL encrypt_metadata); - - QPDF_DLL - void qpdf_set_r6_encryption_parameters( - qpdf_data qpdf, - char const* user_password, - char const* owner_password, - QPDF_BOOL allow_accessibility, - QPDF_BOOL allow_extract, - enum qpdf_r3_print_e print, - enum qpdf_r3_modify_e modify, - QPDF_BOOL encrypt_metadata); - QPDF_DLL void qpdf_set_linearization(qpdf_data qpdf, QPDF_BOOL value); -- cgit v1.2.3-54-g00ecf