summaryrefslogtreecommitdiff
path: root/crypto/hmac/hmac_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/hmac/hmac_test.c')
-rw-r--r--crypto/hmac/hmac_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/hmac/hmac_test.c b/crypto/hmac/hmac_test.c
index e2ae4a6..7b85196 100644
--- a/crypto/hmac/hmac_test.c
+++ b/crypto/hmac/hmac_test.c
@@ -56,6 +56,7 @@
#include <stdio.h>
+#include <openssl/crypto.h>
#include <openssl/digest.h>
#include <openssl/hmac.h>
@@ -124,6 +125,8 @@ int main(int argc, char *argv[]) {
uint8_t out[EVP_MAX_MD_SIZE];
unsigned out_len;
+ CRYPTO_library_init();
+
for (i = 0; i < NUM_TESTS; i++) {
const struct test_st *test = &kTests[i];