mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-07-09 08:40:43 +02:00
evmctl: Define and use an ENGINE field in libimaevm_params
Extend the global libimaevm_params structure with an ENGINE field 'eng' and use it in place of the local ENGINE variable in main(). Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:

committed by
Mimi Zohar

parent
29aa7465d5
commit
1de1e3c8ce
@ -48,6 +48,7 @@
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <openssl/rsa.h>
|
||||
#include <openssl/engine.h>
|
||||
|
||||
#ifdef USE_FPRINTF
|
||||
#define do_log(level, fmt, args...) \
|
||||
@ -197,6 +198,7 @@ struct libimaevm_params {
|
||||
const char *keyfile;
|
||||
const char *keypass;
|
||||
uint32_t keyid; /* keyid overriding value, unless 0. (Host order.) */
|
||||
ENGINE *eng;
|
||||
};
|
||||
|
||||
struct RSA_ASN1_template {
|
||||
|
Reference in New Issue
Block a user