processone / fast_tls

TLS / SSL OpenSSL-based native driver for Erlang / Elixir
https://www.ejabberd.im
Other
83 stars 37 forks source link

Deprecate hash functions in favor of crypto:hash/2 #17

Closed lemenkov closed 7 years ago

lemenkov commented 7 years ago

Use crypto:hash/2 function instead of ones from p1_sha.

This function exists since commit erlang/otp@208f9ad3828313f6c659a501d53f5534ec1bdf2e and also implemented as NIF, so I believe it's safe to use it.

See also this PR:

Signed-off-by: Peter Lemenkov lemenkov@gmail.com

zinid commented 7 years ago

That's brutal, dude :smile: Can't we just use -deprecated instruction like we did for jlib?

lemenkov commented 7 years ago

@zinid done.