Previously this would error out with a M_FATAL message about cipher
not known. Align the mbed TLS version to OpenSSL version and also remove
unreachable code. This manifested in key_print2() running into this
M_FATAL message when used with an AEAD cipher and verb 7.
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <
20221109115208.
1248948-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25494.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
unsigned char
md_kt_size(const char *mdname)
{
- const mbedtls_md_info_t *kt = md_get(mdname);
- if (NULL == kt)
+ if (!strcmp("none", mdname))
{
return 0;
}
+ const mbedtls_md_info_t *kt = md_get(mdname);
return mbedtls_md_get_size(kt);
}