aboutsummaryrefslogtreecommitdiffstats
path: root/ldid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ldid.cpp')
-rw-r--r--ldid.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ldid.cpp b/ldid.cpp
index c65cb96..c2f7e0a 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -43,6 +43,7 @@
#include <sys/types.h>
#ifndef LDID_NOSMIME
+#include <openssl/provider.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/pkcs7.h>
@@ -3100,6 +3101,8 @@ static void usage(const char *argv0) {
int main(int argc, char *argv[]) {
#ifndef LDID_NOSMIME
OpenSSL_add_all_algorithms();
+ OSSL_PROVIDER *legacy = OSSL_PROVIDER_load(NULL, "legacy");
+ OSSL_PROVIDER *deflt = OSSL_PROVIDER_load(NULL, "default");
#endif
union {
@@ -3574,6 +3577,11 @@ int main(int argc, char *argv[]) {
++filei;
}
+#ifndef LDID_NOSMINE
+ OSSL_PROVIDER_unload(legacy);
+ OSSL_PROVIDER_unload(deflt);
+#endif
+
return filee;
}
#endif