aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/hash.h
diff options
context:
space:
mode:
authorDoug Hogan <[email protected]>2018-12-21 07:53:24 -0800
committerDoug Hogan <[email protected]>2018-12-21 08:23:43 -0800
commitbd3c0fac624c6b31ccbb8d72ae4ced958a40ddee (patch)
treef6c5854ebc91bf6ca8e7e9b97afc8c171af14a76 /lib/crypto/c_src/hash.h
parentda3831bbe75f68626e362fdadd653becf230cf1f (diff)
downloadotp-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.h9
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[]);