strcasecmp: implement strcasecmp and strncasecmp
authorPauli <pauli@openssl.org>
Thu, 19 May 2022 02:51:07 +0000 (12:51 +1000)
committerPauli <pauli@openssl.org>
Sun, 22 May 2022 23:51:28 +0000 (09:51 +1000)
commitfb4cdca053fb9d3f0e11eeaf31f4b4ff87f69a95
tree696cf14304289e50036166c57647bb1963b7bc00
parent286053fc8f78e34828a576830ef879c021640aee
strcasecmp: implement strcasecmp and strncasecmp

Rather than relying on the locale code working, instead implement these
functions directly.

Fixes #18322

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/18344)
crypto/init.c
crypto/o_str.c
include/internal/cryptlib.h
providers/fips/fipsprov.c