Fix build with OpenSSL 1.1.x
While here:
PR: 232221 Submitted by: Nathan <ndowens@yahoo.com> Sponsored by: Netzkommune GmbH