diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-11-06 03:14:37 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-11-09 15:53:42 +0100 |
commit | 127a957aee7bf7ae242a606d035e9e3d9b300307 (patch) | |
tree | 4a8df19c744ac408a8c19d9d944a551c90aa788b /include | |
parent | fb4c6c150345c76c73de7cdfcb48caab34c5cab6 (diff) | |
download | qpdf-127a957aee7bf7ae242a606d035e9e3d9b300307.tar.zst |
Allow runtime inspection/override of crypto provider
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFCryptoProvider.hh | 9 |
1 files changed, 9 insertions, 0 deletions
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 <qpdf/QPDFCryptoImpl.hh> #include <string> #include <map> +#include <set> #include <memory> #include <functional> @@ -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<std::string> getRegisteredImpls(); + + // Get the name of the default crypto provider + QPDF_DLL + static std::string getDefaultProvider(); + private: QPDFCryptoProvider(); ~QPDFCryptoProvider() = default; |