Enable OpenSSL ENGINE, so crypto hardware gets used. Thanks to Andreas van Cranenburgh.
This commit is contained in:
parent
64e4c12778
commit
0912260755
3 changed files with 8 additions and 3 deletions
|
@ -35,6 +35,7 @@
|
|||
#include <openssl/rsa.h>
|
||||
#include <openssl/pem.h>
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/engine.h>
|
||||
|
||||
#include <lzo1x.h>
|
||||
|
||||
|
@ -448,6 +449,9 @@ int main(int argc, char **argv)
|
|||
|
||||
RAND_load_file("/dev/urandom", 1024);
|
||||
|
||||
ENGINE_load_builtin_engines();
|
||||
ENGINE_register_all_complete();
|
||||
|
||||
OpenSSL_add_all_algorithms();
|
||||
|
||||
if(generate_keys) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue