Remove 'make check'compiler warnings
Code cleanup for redirect_output_signal()

Also fixes a compiler warning for 'make check'.
Fix possible authentication problem with turkish locale

The test server now treats authentication schemes case-independent.
Fix warnings from clang-analyzer 3.6
Report load failure of cert files only with --debug

Fixes #41331
Fix memory leak in OpenSSL code
Make 504 Gateway Timeout non fatal
Fix loop check in FTP code

Reported-by: Coverity scanner
Use random() and srandom() if available.

Reported-by: Coverity scanner