diff options
author | Hans Nilsson <[email protected]> | 2019-02-04 12:01:16 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2019-02-04 12:01:16 +0100 |
commit | c66d0d2396bb1759b49f4fc383a6df0f6b918699 (patch) | |
tree | 90258923508ddc15c384fbf1d26362c0ef68d8f5 /lib/crypto/c_src/hash.c | |
parent | 4bdbb313f621d54038a9c17c6d9895650d539eab (diff) | |
parent | 0c441ec09fa648af869e6080f671dee802d62e3d (diff) | |
download | otp-c66d0d2396bb1759b49f4fc383a6df0f6b918699.tar.gz otp-c66d0d2396bb1759b49f4fc383a6df0f6b918699.tar.bz2 otp-c66d0d2396bb1759b49f4fc383a6df0f6b918699.zip |
Merge branch 'hans/crypto/fixes/OTP-14732'
* hans/crypto/fixes/OTP-14732:
otp_test_engine.c fixes
crypto: Fix compilation < 1.0.0
Diffstat (limited to 'lib/crypto/c_src/hash.c')
-rw-r--r-- | lib/crypto/c_src/hash.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/crypto/c_src/hash.c b/lib/crypto/c_src/hash.c index d67e68f857..457e9d071a 100644 --- a/lib/crypto/c_src/hash.c +++ b/lib/crypto/c_src/hash.c @@ -54,9 +54,11 @@ int init_hash_ctx(ErlNifEnv* env) { return 1; +#if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION_PLAIN(1,0,0) err: PRINTF_ERR0("CRYPTO: Could not open resource type 'EVP_MD_CTX'"); return 0; +#endif } ERL_NIF_TERM hash_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) |