diff options
author | Doug Hogan <[email protected]> | 2018-12-21 07:53:24 -0800 |
---|---|---|
committer | Doug Hogan <[email protected]> | 2018-12-21 08:23:43 -0800 |
commit | bd3c0fac624c6b31ccbb8d72ae4ced958a40ddee (patch) | |
tree | f6c5854ebc91bf6ca8e7e9b97afc8c171af14a76 /lib/crypto/c_src/hash.h | |
parent | da3831bbe75f68626e362fdadd653becf230cf1f (diff) | |
download | otp-bd3c0fac624c6b31ccbb8d72ae4ced958a40ddee.tar.gz otp-bd3c0fac624c6b31ccbb8d72ae4ced958a40ddee.tar.bz2 otp-bd3c0fac624c6b31ccbb8d72ae4ced958a40ddee.zip |
Make hash ctx init internal to hash.c per PR feedback
Diffstat (limited to 'lib/crypto/c_src/hash.h')
-rw-r--r-- | lib/crypto/c_src/hash.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/crypto/c_src/hash.h b/lib/crypto/c_src/hash.h index 9b82d9356c..8bae07f39a 100644 --- a/lib/crypto/c_src/hash.h +++ b/lib/crypto/c_src/hash.h @@ -23,14 +23,7 @@ #include "common.h" -#if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION_PLAIN(1,0,0) -struct evp_md_ctx { - EVP_MD_CTX* ctx; -}; -extern ErlNifResourceType* evp_md_ctx_rtype; - -void evp_md_ctx_dtor(ErlNifEnv* env, struct evp_md_ctx *ctx); -#endif +int init_hash_ctx(ErlNifEnv *env); ERL_NIF_TERM hash_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); ERL_NIF_TERM hash_init_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); |