diff options
author | Sverker Eriksson <[email protected]> | 2019-04-05 14:29:07 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2019-04-05 14:29:07 +0200 |
commit | 9f917db614e5bde271f052c5411e59a51feaa4d3 (patch) | |
tree | 96bc8c521509ed799046cad3dbf717a558c958ad /lib/crypto/c_src/otp_test_engine.c | |
parent | 3825199794da28d79b21052a2e69e2335921d55e (diff) | |
download | otp-9f917db614e5bde271f052c5411e59a51feaa4d3.tar.gz otp-9f917db614e5bde271f052c5411e59a51feaa4d3.tar.bz2 otp-9f917db614e5bde271f052c5411e59a51feaa4d3.zip |
crypto: Fix link error on windows
Replace deprecated 'bcmp' with 'memcmp'.
Diffstat (limited to 'lib/crypto/c_src/otp_test_engine.c')
-rw-r--r-- | lib/crypto/c_src/otp_test_engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto/c_src/otp_test_engine.c b/lib/crypto/c_src/otp_test_engine.c index 2c8cce094e..f452fb2d0c 100644 --- a/lib/crypto/c_src/otp_test_engine.c +++ b/lib/crypto/c_src/otp_test_engine.c @@ -375,7 +375,7 @@ int test_rsa_sign(int dtype, } */ if ((sizeof(fake_flag) == m_len) - && bcmp(m,fake_flag,m_len) == 0) { + && memcmp(m,fake_flag,m_len) == 0) { printf("To be faked\r\n"); /* To be faked */ slen = RSA_size(rsa); @@ -397,7 +397,7 @@ int test_rsa_verify(int dtype, printf("test_rsa_verify (dtype=%i) called m_len=%u siglen=%u\r\n", dtype, m_len, siglen); if ((sizeof(fake_flag) == m_len) - && bcmp(m,fake_flag,m_len) == 0) { + && memcmp(m,fake_flag,m_len) == 0) { printf("To be faked\r\n"); return (siglen == RSA_size(rsa)) && chk_test_data(sigret, siglen); |