aboutsummaryrefslogtreecommitdiff
path: root/kerberos5/lib/libroken/fbsd_ossl_provider_load.c
diff options
context:
space:
mode:
Diffstat (limited to 'kerberos5/lib/libroken/fbsd_ossl_provider_load.c')
-rw-r--r--kerberos5/lib/libroken/fbsd_ossl_provider_load.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/kerberos5/lib/libroken/fbsd_ossl_provider_load.c b/kerberos5/lib/libroken/fbsd_ossl_provider_load.c
index 2328041bc166..b8812f207af8 100644
--- a/kerberos5/lib/libroken/fbsd_ossl_provider_load.c
+++ b/kerberos5/lib/libroken/fbsd_ossl_provider_load.c
@@ -5,10 +5,9 @@
#include <openssl/provider.h>
#if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
-#define CRYPTO_LIBRARY "/lib/libcrypto.so.30"
+#define CRYPTO_LIBRARY "/lib/libcrypto.so.35"
static void fbsd_ossl_provider_unload(void);
static void print_dlerror(char *);
-static OSSL_PROVIDER *legacy;
static OSSL_PROVIDER *deflt;
static int providers_loaded = 0;
static OSSL_PROVIDER * (*ossl_provider_load)(OSSL_LIB_CTX *, const char*) = NULL;
@@ -25,7 +24,6 @@ fbsd_ossl_provider_unload(void)
}
}
if (providers_loaded == 1) {
- (*ossl_provider_unload)(legacy);
(*ossl_provider_unload)(deflt);
providers_loaded = 0;
}
@@ -61,10 +59,7 @@ fbsd_ossl_provider_load(void)
}
if (providers_loaded == 0) {
- if ((legacy = (*ossl_provider_load)(NULL, "legacy")) == NULL)
- return (EINVAL);
if ((deflt = (*ossl_provider_load)(NULL, "default")) == NULL) {
- (*ossl_provider_unload)(legacy);
return (EINVAL);
}
if (atexit(fbsd_ossl_provider_unload)) {