summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-11-06 03:14:37 +0100
committerJay Berkenbilt <ejb@ql.org>2019-11-09 15:53:42 +0100
commit127a957aee7bf7ae242a606d035e9e3d9b300307 (patch)
tree4a8df19c744ac408a8c19d9d944a551c90aa788b /include
parentfb4c6c150345c76c73de7cdfcb48caab34c5cab6 (diff)
downloadqpdf-127a957aee7bf7ae242a606d035e9e3d9b300307.tar.zst
Allow runtime inspection/override of crypto provider
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFCryptoProvider.hh9
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;