[Openvpn-devel] Remove unused function cipher_var_key_size

Message ID 20220217181943.33531-1-arne@rfc2549.org
State Accepted
Headers show
Series [Openvpn-devel] Remove unused function cipher_var_key_size | expand

Commit Message

Arne Schwabe Feb. 17, 2022, 7:19 a.m. UTC
This function has been accidentially not been deleted during the removal
of last bits of variable key size.
---
 src/openvpn/crypto_openssl.c | 9 ---------
 1 file changed, 9 deletions(-)

Comments

Gert Doering Feb. 17, 2022, 7:49 a.m. UTC | #1
Acked-by: Gert Doering <gert@greenie.muc.de>

Easy enough.

Your patch has been applied to the master branch.

commit 9cfe02039f00ea1ff026967497695d4cc35b1706
Author: Arne Schwabe
Date:   Thu Feb 17 19:19:43 2022 +0100

     Remove unused function cipher_var_key_size

     Acked-by: Gert Doering <gert@greenie.muc.de>
     Message-Id: <20220217181943.33531-1-arne@rfc2549.org>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23832.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>


--
kind regards,

Gert Doering

Patch

diff --git a/src/openvpn/crypto_openssl.c b/src/openvpn/crypto_openssl.c
index 8bc41792..1c99db0f 100644
--- a/src/openvpn/crypto_openssl.c
+++ b/src/openvpn/crypto_openssl.c
@@ -612,15 +612,6 @@  out:
     return ret;
 }
 
-bool cipher_var_key_size(const char *ciphername)
-{
-    evp_cipher_type *cipher = cipher_get(ciphername);
-    bool ret = EVP_CIPHER_flags(cipher) & EVP_CIPH_VARIABLE_LENGTH;
-    EVP_CIPHER_free(cipher);
-    return ret;
-}
-
-
 const char *
 cipher_kt_name(const char *ciphername)
 {