summaryrefslogtreecommitdiff
path: root/crypto/dh/dh_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/dh/dh_test.c')
-rw-r--r--crypto/dh/dh_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/dh/dh_test.c b/crypto/dh/dh_test.c
index 73dbba9..31b3dd9 100644
--- a/crypto/dh/dh_test.c
+++ b/crypto/dh/dh_test.c
@@ -60,6 +60,7 @@
#include <openssl/bio.h>
#include <openssl/bn.h>
+#include <openssl/crypto.h>
#include <openssl/mem.h>
#include "internal.h"
@@ -93,6 +94,8 @@ int main(int argc, char *argv[]) {
int i, alen, blen, aout, bout, ret = 1;
BIO *out;
+ CRYPTO_library_init();
+
out = BIO_new(BIO_s_file());
if (out == NULL) {
return 1;