From: sunflsks <22717474+sunflsks@users.noreply.github.com> Date: Thu, 7 Oct 2021 16:11:42 +0000 (-0500) Subject: ossl3 compat X-Git-Tag: v2.1.5-procursus~3 X-Git-Url: https://git.cameronkatri.com/ldid.git/commitdiff_plain/88de319a622c1d4a6d0ec914321e8d58affe73f6 ossl3 compat --- diff --git a/ldid.cpp b/ldid.cpp index c65cb96..c2f7e0a 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -43,6 +43,7 @@ #include #ifndef LDID_NOSMIME +#include #include #include #include @@ -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