diff options
Diffstat (limited to 'crypto/md5/md5_test.c')
-rw-r--r-- | crypto/md5/md5_test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/md5/md5_test.c b/crypto/md5/md5_test.c index eb5984c..fd24341 100644 --- a/crypto/md5/md5_test.c +++ b/crypto/md5/md5_test.c @@ -55,8 +55,9 @@ #include <stdio.h> -#include <openssl/md5.h> +#include <openssl/crypto.h> #include <openssl/digest.h> +#include <openssl/md5.h> static const char *const test[] = { @@ -78,6 +79,8 @@ int main(int argc, char **argv) { char md_hex[sizeof(md) * 2 + 1]; int ok = 1; + CRYPTO_library_init(); + for (i = 0; test[i] != NULL; i++) { EVP_Digest(test[i], strlen(test[i]), md, NULL, EVP_md5(), NULL); for (j = 0; j < sizeof(md); j++) { |