From 0e8bfb51c993c0e2620c98aba13c65797c649e97 Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Tue, 5 Sep 2017 14:10:58 +0100 Subject: [PATCH] rots-util: properly initialise OpenSSL using SSL_init_library() --- source/sign.c | 3 +++ source/verify.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/source/sign.c b/source/sign.c index 6236dea..84586a2 100644 --- a/source/sign.c +++ b/source/sign.c @@ -7,6 +7,7 @@ #include #include +#include #include #include @@ -168,6 +169,8 @@ int do_sign(int argc, char *argv[]) return -1; } + SSL_load_error_strings(); + SSL_library_init(); OpenSSL_add_all_algorithms(); if (!(key = open_priv_key(args.key))) { diff --git a/source/verify.c b/source/verify.c index 0b84e32..75c86f2 100644 --- a/source/verify.c +++ b/source/verify.c @@ -9,6 +9,7 @@ #include #include +#include #include #include @@ -229,6 +230,8 @@ int do_verify(int argc, char *argv[]) return -1; } + SSL_load_error_strings(); + SSL_library_init(); OpenSSL_add_all_algorithms(); if (verify_all(&count, &total, args.certs, args.image) < 0) {