rots-util: properly initialise OpenSSL using SSL_init_library()
This commit is contained in:
parent
59a532c6f6
commit
0e8bfb51c9
2 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/pem.h>
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/x509.h>
|
||||
#include <openssl/x509v3.h>
|
||||
|
||||
|
@ -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))) {
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/pem.h>
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/x509.h>
|
||||
#include <openssl/x509v3.h>
|
||||
|
||||
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue