]> www.infradead.org Git - mtd-utils.git/commitdiff
mkfs.ubifs: remove OPENSSL_no_config()
authorTorben Hohn <torben.hohn@linutronix.de>
Fri, 24 Jul 2020 07:47:05 +0000 (09:47 +0200)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Sun, 18 Oct 2020 20:33:56 +0000 (22:33 +0200)
Especially for the pkcs11 engine, a configuration is required
because the provider has to be configured.

Its not clear why OPENSSL_no_config() is called.

Remove OPENSSL_no_config() and call OPENSSL_config(NULL)
instead.

Signed-off-by: Torben Hohn <torben.hohn@linutronix.de>
Signed-off-by: Bastian Germann <bage@linutronix.de>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubifs-utils/mkfs.ubifs/sign.c

index b7ad7ef8363e5f7ac3b35c2a385cdcf61258e15d..7f284f8e2c3aaac2b8d4e3c585977f6acfd5d72a 100644 (file)
@@ -388,7 +388,8 @@ int init_authentication(void)
        if (!c->hash_algo_name)
                return err_msg("Hash algorithm not given (--hash-algo)");
 
-       OPENSSL_no_config();
+       OPENSSL_config(NULL);
+
        OpenSSL_add_all_algorithms();
        ERR_load_crypto_strings();