aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2019-04-05 14:29:07 +0200
committerSverker Eriksson <[email protected]>2019-04-05 14:29:07 +0200
commit9f917db614e5bde271f052c5411e59a51feaa4d3 (patch)
tree96bc8c521509ed799046cad3dbf717a558c958ad /lib
parent3825199794da28d79b21052a2e69e2335921d55e (diff)
downloadotp-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')
-rw-r--r--lib/crypto/c_src/otp_test_engine.c4
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);