Replaced function not present in older OpenSSL.
Merge remote-tracking branch 'jimis/tls' into callback-over-tls