[rtems-libbsd commit] openssl01: Call standard initialization functions

Sebastian Huber sebh at rtems.org
Thu Oct 25 07:41:09 UTC 2018


Module:    rtems-libbsd
Branch:    master
Commit:    afc0c81a5fb8ac7fd36b478f3775f2e58334778b
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=afc0c81a5fb8ac7fd36b478f3775f2e58334778b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Oct 25 09:40:18 2018 +0200

openssl01: Call standard initialization functions

---

 testsuite/openssl01/test_main.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testsuite/openssl01/test_main.c b/testsuite/openssl01/test_main.c
index 3fd611b..4359b5f 100644
--- a/testsuite/openssl01/test_main.c
+++ b/testsuite/openssl01/test_main.c
@@ -43,6 +43,7 @@
 
 #include <openssl/bio.h>
 #include <openssl/evp.h>
+#include <openssl/ssl.h>
 
 static const unsigned char key[16] = "0123456789abcde";
 
@@ -106,6 +107,10 @@ static void
 test(void)
 {
 
+	SSL_library_init();
+	OpenSSL_add_ssl_algorithms();
+	SSL_load_error_strings();
+
 	encrypt();
 
 	puts("Ciphertext is:");




More information about the vc mailing list