diff options
author | tb <> | 2023-08-26 02:59:13 +0000 |
---|---|---|
committer | tb <> | 2023-08-26 02:59:13 +0000 |
commit | e004e11d4303ece82993878e12afd7e170274c8e (patch) | |
tree | 490ea8d67061f2f23ab88d0073eec8351c5824d9 | |
parent | 6bad1d61e3e9e68c418f77a7443067102db546a2 (diff) | |
download | openbsd-e004e11d4303ece82993878e12afd7e170274c8e.tar.gz openbsd-e004e11d4303ece82993878e12afd7e170274c8e.tar.bz2 openbsd-e004e11d4303ece82993878e12afd7e170274c8e.zip |
Remove two unnecessary local variables
-rw-r--r-- | src/lib/libcrypto/evp/names.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/lib/libcrypto/evp/names.c b/src/lib/libcrypto/evp/names.c index 4931c92e26..5242892e9f 100644 --- a/src/lib/libcrypto/evp/names.c +++ b/src/lib/libcrypto/evp/names.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: names.c,v 1.20 2023/07/22 18:12:55 tb Exp $ */ | 1 | /* $OpenBSD: names.c,v 1.21 2023/08/26 02:59:13 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -116,25 +116,19 @@ EVP_add_digest(const EVP_MD *md) | |||
116 | const EVP_CIPHER * | 116 | const EVP_CIPHER * |
117 | EVP_get_cipherbyname(const char *name) | 117 | EVP_get_cipherbyname(const char *name) |
118 | { | 118 | { |
119 | const EVP_CIPHER *cp; | ||
120 | |||
121 | if (!OPENSSL_init_crypto(0, NULL)) | 119 | if (!OPENSSL_init_crypto(0, NULL)) |
122 | return NULL; | 120 | return NULL; |
123 | 121 | ||
124 | cp = (const EVP_CIPHER *)OBJ_NAME_get(name, OBJ_NAME_TYPE_CIPHER_METH); | 122 | return (const EVP_CIPHER *)OBJ_NAME_get(name, OBJ_NAME_TYPE_CIPHER_METH); |
125 | return (cp); | ||
126 | } | 123 | } |
127 | 124 | ||
128 | const EVP_MD * | 125 | const EVP_MD * |
129 | EVP_get_digestbyname(const char *name) | 126 | EVP_get_digestbyname(const char *name) |
130 | { | 127 | { |
131 | const EVP_MD *cp; | ||
132 | |||
133 | if (!OPENSSL_init_crypto(0, NULL)) | 128 | if (!OPENSSL_init_crypto(0, NULL)) |
134 | return NULL; | 129 | return NULL; |
135 | 130 | ||
136 | cp = (const EVP_MD *)OBJ_NAME_get(name, OBJ_NAME_TYPE_MD_METH); | 131 | return (const EVP_MD *)OBJ_NAME_get(name, OBJ_NAME_TYPE_MD_METH); |
137 | return (cp); | ||
138 | } | 132 | } |
139 | 133 | ||
140 | void | 134 | void |