ima-evm-utils: Remove ERR_load_crypto_strings from read_priv_pkey
diff mbox series

Message ID 20190718213752.11194-1-vt@altlinux.org
State New
Headers show
Series
  • ima-evm-utils: Remove ERR_load_crypto_strings from read_priv_pkey
Related show

Commit Message

Vitaly Chikunov July 18, 2019, 9:37 p.m. UTC
ERR_load_crypto_strings() is already called in other place.

Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
---
 src/libimaevm.c | 1 -
 1 file changed, 1 deletion(-)

Patch
diff mbox series

diff --git a/src/libimaevm.c b/src/libimaevm.c
index 2a0486f..6f7a704 100644
--- a/src/libimaevm.c
+++ b/src/libimaevm.c
@@ -736,7 +736,6 @@  static EVP_PKEY *read_priv_pkey(const char *keyfile, const char *keypass)
 		log_err("Failed to open keyfile: %s\n", keyfile);
 		return NULL;
 	}
-	ERR_load_crypto_strings();
 	pkey = PEM_read_PrivateKey(fp, NULL, NULL, (void *)keypass);
 	if (!pkey) {
 		log_err("Failed to PEM_read_PrivateKey key file: %s\n",