From 43456e64e24a18d27545ff1ff5524d21498f51da Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 26 Aug 2023 02:59:13 +0000 Subject: [PATCH] Remove two unnecessary local variables --- lib/libcrypto/evp/names.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/libcrypto/evp/names.c b/lib/libcrypto/evp/names.c index 4931c92e266..5242892e9f6 100644 --- a/lib/libcrypto/evp/names.c +++ b/lib/libcrypto/evp/names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: names.c,v 1.20 2023/07/22 18:12:55 tb Exp $ */ +/* $OpenBSD: names.c,v 1.21 2023/08/26 02:59:13 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -116,25 +116,19 @@ EVP_add_digest(const EVP_MD *md) const EVP_CIPHER * EVP_get_cipherbyname(const char *name) { - const EVP_CIPHER *cp; - if (!OPENSSL_init_crypto(0, NULL)) return NULL; - cp = (const EVP_CIPHER *)OBJ_NAME_get(name, OBJ_NAME_TYPE_CIPHER_METH); - return (cp); + return (const EVP_CIPHER *)OBJ_NAME_get(name, OBJ_NAME_TYPE_CIPHER_METH); } const EVP_MD * EVP_get_digestbyname(const char *name) { - const EVP_MD *cp; - if (!OPENSSL_init_crypto(0, NULL)) return NULL; - cp = (const EVP_MD *)OBJ_NAME_get(name, OBJ_NAME_TYPE_MD_METH); - return (cp); + return (const EVP_MD *)OBJ_NAME_get(name, OBJ_NAME_TYPE_MD_METH); } void -- 2.20.1