mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-27 22:32:31 +02:00
ima-evm-utils: reading public keys
Not being able to read the public key is not necessarily an error. Emit a message based on log level. Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
0911c60fb5
commit
229e9e3cee
@ -323,7 +323,8 @@ EVP_PKEY *read_pub_pkey(const char *keyfile, int x509)
|
||||
|
||||
fp = fopen(keyfile, "r");
|
||||
if (!fp) {
|
||||
log_err("Failed to open keyfile: %s\n", keyfile);
|
||||
if (imaevm_params.verbose > LOG_INFO)
|
||||
log_info("Failed to open keyfile: %s\n", keyfile);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user