aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2019-04-08 17:03:48 +0200
committerSverker Eriksson <[email protected]>2019-04-08 17:03:48 +0200
commit5dacc0bcaa857f52dd25bb93335f38fd5256e343 (patch)
tree5119e1a19ae9df67aa6e37cc1c45483165b5d159 /lib/crypto/c_src
parent999894da8ace681dc24e7c1f4e74914d1821d4a2 (diff)
parent9f917db614e5bde271f052c5411e59a51feaa4d3 (diff)
downloadotp-5dacc0bcaa857f52dd25bb93335f38fd5256e343.tar.gz
otp-5dacc0bcaa857f52dd25bb93335f38fd5256e343.tar.bz2
otp-5dacc0bcaa857f52dd25bb93335f38fd5256e343.zip
Merge branch 'sverker/crypto/bcmp-memcmp-fix/OTP-15750' into maint
* sverker/crypto/bcmp-memcmp-fix/OTP-15750: crypto: Fix link error on windows
Diffstat (limited to 'lib/crypto/c_src')
-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);