summaryrefslogtreecommitdiff
path: root/crypto/cipher/aead_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/cipher/aead_test.c')
-rw-r--r--crypto/cipher/aead_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/cipher/aead_test.c b/crypto/cipher/aead_test.c
index f0f3cf4..ff2244c 100644
--- a/crypto/cipher/aead_test.c
+++ b/crypto/cipher/aead_test.c
@@ -18,6 +18,7 @@
#include <string.h>
#include <openssl/aead.h>
+#include <openssl/crypto.h>
/* This program tests an AEAD against a series of test vectors from a file. The
* test vector file consists of key-value lines where the key and value are
@@ -155,6 +156,8 @@ int main(int argc, char **argv) {
unsigned char bufs[NUM_TYPES][BUF_MAX];
unsigned int lengths[NUM_TYPES];
+ CRYPTO_library_init();
+
if (argc != 3) {
fprintf(stderr, "%s <aead> <test file.txt>\n", argv[0]);
return 1;