mirror of
https://github.com/openssl/openssl.git
synced 2026-06-06 20:18:09 +00:00
noecho_fgets() is enclosed by
#if defined(OPENSSL_SYS_MSDOS) && !defined(_WIN32)
The inner #if defined(_WIN32) is unreachable
#if defined(_WIN32)
i = _getch();
#else
i = getch();
#endif
Remove it.
Verified by cross compilation under DJGPP which is AFAIK the only
MSDOS/non-WIN32 environment we can use.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
MergeDate: Thu May 7 20:11:18 2026
(Merged from https://github.com/openssl/openssl/pull/31076)