Re: [Openvpn-devel] [PATCH] auth_token/tls_crypt: fix usage of md_valid()

2022-02-15 Thread Arne Schwabe
Am 15.02.22 um 11:26 schrieb Antonio Quartulli: With b39725cf ("Remove md_kt_t and change crypto API to use const char*") the logic for validating ciphers and md algorithms has been changed. We should now *always* use md_valid() when validating a digest alg. At the same time, add '!' (negation)

[Openvpn-devel] [PATCH] auth_token/tls_crypt: fix usage of md_valid()

2022-02-15 Thread Antonio Quartulli
With b39725cf ("Remove md_kt_t and change crypto API to use const char*") the logic for validating ciphers and md algorithms has been changed. We should now *always* use md_valid() when validating a digest alg. At the same time, add '!' (negation) when validating the digest algorithm in the tls-c