aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/main.cpp')
-rw-r--r--src/tests/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/main.cpp b/src/tests/main.cpp
index c90aaec7b..19ddfb40f 100644
--- a/src/tests/main.cpp
+++ b/src/tests/main.cpp
@@ -30,6 +30,10 @@
#include <botan/auto_rng.h>
#endif
+#if defined(BOTAN_HAS_OPENSSL)
+ #include <botan/internal/openssl.h>
+#endif
+
namespace {
class Test_Runner : public Botan_CLI::Command
@@ -153,6 +157,12 @@ class Test_Runner : public Botan_CLI::Command
output() << " provider:" << provider;
pf.set(provider);
}
+#if defined(BOTAN_HAS_OPENSSL)
+ if(provider.empty() || provider == "openssl")
+ {
+ ERR_load_crypto_strings();
+ }
+#endif
std::unique_ptr<Botan::RandomNumberGenerator> rng;