Fredrik Fornwall
6 years ago
2 changed files with 3 additions and 34 deletions
@ -1,31 +0,0 @@ |
|||||
diff -u -r ../otp-OTP-21.2.1/lib/crypto/c_src/otp_test_engine.c ./lib/crypto/c_src/otp_test_engine.c
|
|
||||
--- ../otp-OTP-21.2.1/lib/crypto/c_src/otp_test_engine.c 2018-12-20 12:27:00.000000000 +0000
|
|
||||
+++ ./lib/crypto/c_src/otp_test_engine.c 2018-12-28 22:18:50.617050960 +0000
|
|
||||
@@ -46,7 +46,8 @@
|
|
||||
#if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION(0,9,8,'o') \ |
|
||||
&& !defined(OPENSSL_NO_EC) \ |
|
||||
&& !defined(OPENSSL_NO_ECDH) \ |
|
||||
- && !defined(OPENSSL_NO_ECDSA)
|
|
||||
+ && !defined(OPENSSL_NO_ECDSA) \
|
|
||||
+ && !defined(OPENSSL_NO_ENGINE)
|
|
||||
# define HAVE_EC |
|
||||
#endif |
|
||||
|
|
||||
@@ -375,7 +376,7 @@
|
|
||||
} */ |
|
||||
|
|
||||
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 +398,7 @@
|
|
||||
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); |
|
Loading…
Reference in new issue