aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/hash.h
diff options
context:
space:
mode:
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[]);