diff options
-rw-r--r-- | ldid.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |