From 127a957aee7bf7ae242a606d035e9e3d9b300307 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 5 Nov 2019 21:14:37 -0500 Subject: Allow runtime inspection/override of crypto provider --- include/qpdf/QPDFCryptoProvider.hh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/qpdf/QPDFCryptoProvider.hh b/include/qpdf/QPDFCryptoProvider.hh index 4243fcfd..eb5dcf34 100644 --- a/include/qpdf/QPDFCryptoProvider.hh +++ b/include/qpdf/QPDFCryptoProvider.hh @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -64,6 +65,14 @@ class QPDFCryptoProvider QPDF_DLL static void setDefaultProvider(std::string const& name); + // Get the names of registered implementations + QPDF_DLL + static std::set getRegisteredImpls(); + + // Get the name of the default crypto provider + QPDF_DLL + static std::string getDefaultProvider(); + private: QPDFCryptoProvider(); ~QPDFCryptoProvider() = default; -- cgit v1.2.3-54-g00ecf