aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2019-04-08 15:28:39 +0200
committerSverker Eriksson <[email protected]>2019-04-08 15:28:39 +0200
commit7adcda6522282ba3e896f0357a0fcf0c55e79986 (patch)
treedcc5ee9a8809b984882e62c4c31e6d80a5fb140a /lib/crypto
parent0291ddd3ffbd7e23d95cc35e081c99f4bac9a2dd (diff)
parentc7617c8ad57eae996c2fc2c3eaa1f3dc332d51f5 (diff)
downloadotp-7adcda6522282ba3e896f0357a0fcf0c55e79986.tar.gz
otp-7adcda6522282ba3e896f0357a0fcf0c55e79986.tar.bz2
otp-7adcda6522282ba3e896f0357a0fcf0c55e79986.zip
Merge branch 'sverker/master/crypto/bcmp-memcmp-fix/OTP-15750'
* sverker/master/crypto/bcmp-memcmp-fix/OTP-15750: crypto: Fix link error on windows
Diffstat (limited to 'lib/crypto')
-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 fd26b7cb5d..4a155becf8 100644
--- a/lib/crypto/c_src/otp_test_engine.c
+++ b/lib/crypto/c_src/otp_test_engine.c
@@ -404,7 +404,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) {
int slen;
printf("To be faked\r\n");
@@ -432,7 +432,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) {
int size;
if ((size = RSA_size(rsa)) < 0)