aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2019-04-12 12:26:18 +0200
committerErlang/OTP <[email protected]>2019-04-12 12:26:18 +0200
commitaf8aff5cf3f1fdae48e6c7d3b2f4649d973f6d8b (patch)
tree0cd1d1f15d67cd3eb3bf96b15f589cac64496c3b /lib
parent7a804e717a7acc9f3d037ccbb893708452dface4 (diff)
parent9f917db614e5bde271f052c5411e59a51feaa4d3 (diff)
downloadotp-af8aff5cf3f1fdae48e6c7d3b2f4649d973f6d8b.tar.gz
otp-af8aff5cf3f1fdae48e6c7d3b2f4649d973f6d8b.tar.bz2
otp-af8aff5cf3f1fdae48e6c7d3b2f4649d973f6d8b.zip
Merge branch 'sverker/crypto/bcmp-memcmp-fix/OTP-15750' into maint-21
* sverker/crypto/bcmp-memcmp-fix/OTP-15750: crypto: Fix link error on windows
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);