VMS: fix collected error strings
authorRichard Levitte <levitte@openssl.org>
Sat, 24 Nov 2018 12:08:56 +0000 (13:08 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 24 Nov 2018 16:43:30 +0000 (17:43 +0100)
commit1119d4e7f4b1f9eeb0e50063081c516708e3ca72
treec274f704293a6b5ac5ffde0932f7df8e32d20bf9
parent6aca8d1a5fb1fa8b359d0ddeab636174c09bf534
VMS: fix collected error strings

It turns out that on VMS, strerror() returns messages with added
spaces at the end.

We wouldn't had noticed if it wasn't for perl trimming those spaces
off for its own sake and thereby having test/recipes/02-test_errstr.t
fail on VMS.

The safe fix is to do the same trimming ourselves.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7701)

(cherry picked from commit 9f15e5b911ba6053e09578f190354568e01c07d7)
crypto/err/err.c