openssl01: Call standard initialization functions

This commit is contained in:
Sebastian Huber 2018-10-25 09:40:18 +02:00
parent a7079138c1
commit afc0c81a5f

View File

@ -43,6 +43,7 @@
#include <openssl/bio.h> #include <openssl/bio.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/ssl.h>
static const unsigned char key[16] = "0123456789abcde"; static const unsigned char key[16] = "0123456789abcde";
@ -106,6 +107,10 @@ static void
test(void) test(void)
{ {
SSL_library_init();
OpenSSL_add_ssl_algorithms();
SSL_load_error_strings();
encrypt(); encrypt();
puts("Ciphertext is:"); puts("Ciphertext is:");