Skip to content

Commit 130e2b8

Browse files
committed
Fix TLS PRF test that should fail if no MD5 or SHA-1.
1 parent 2c536ce commit 130e2b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_tls1_prf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ int test_tls1_prf(ENGINE *e, void *data)
364364
(void)data;
365365

366366
err = test_tls1_prf_md(e, EVP_md5_sha1());
367+
#if defined(NO_MD5) || defined(NO_SHA)
368+
err = (err != 1);
369+
#endif
367370
if (err == 0) {
368371
err = test_tls1_prf_md(e, EVP_sha256());
369372
}

0 commit comments

Comments
 (0)