Fix for R16B

crypto:md5/1 and crypto:sha/1 deprecated, use crypto:hash/2
Erlang R16B has type ssl:sslsocket(), use it instead of record