c_rehash: Strip \r from hash filename on msys2

Sample output for c_rehash -v on ucrt64 env:
Doing .
.0nk my.pem -> 472bcb3c
.0nk ca-bundle.crt -> cd8c0d63
WARNING: Skipping duplicate certificate ca-bundle.trust.crt

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28996)

(cherry picked from commit 331c2c71c9)
This commit is contained in:
Orgad Shaneh
2025-10-26 09:00:09 +02:00
committed by Richard Levitte
parent a348411bec
commit 7eb19efbab

View File

@@ -192,6 +192,7 @@ sub compute_hash {
print STDERR "Cannot compute hash on '$fname'\n";
return;
}
binmode($fh, ":crlf");
}
return (<$fh>, <$fh>);
}