From: Arne Schwabe References: <20211019183127.614175-1-arne@...1227...> <20211019183127.614175-11-arne@...1227...> Message-ID: Date: Mon, 1 Nov 2021 23:18:22 +0100 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB Subject: Re: [Openvpn-devel] [PATCH v3 10/21] [OSSL 3.0] Replace EVP_get_cipherbyname with EVP_CIPHER_fetch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Selva Nair , "openvpn-devel@lists.sourceforge.net" >> >> One option is to continue using get_cipherbyname() but add a helper call >> for OpenSSL 3.0 to check algorithm availability. Say, >> EVP_CIPHER_available() that fetches, checks the result and frees ---  >> to be used on top of the existing code. > > That is an option but will break as soon as we have the first cipher > that is no longer defined with EVP_ORIG_GLOBAL compatibility definition. > I need to check how much work it is to teach OpenVPN to free the cipher > and md. I looked at this and I think the best option is to change API to use strings rather than EVP_CIPHER in the "public" API of the ssl library implementation. That will simplify the code rather than to complicate it. Arne