JSSE: fix WolfSSLServerSocketTest detection of error string message

pull/100/head
Chris Conlon 2022-04-08 16:39:31 -06:00
parent 14bb27b65e
commit 488d6e7c7c
1 changed files with 4 additions and 2 deletions

View File

@ -525,8 +525,10 @@ public class WolfSSLServerSocketTest {
fail();
} catch (SSLHandshakeException e) {
/* expected */
if (!e.toString().contains("ASN no signer")) {
/* Expected. Different versions of wolfSSL can display
* varying error strings. Check for either here. */
if (!e.toString().contains("ASN no signer") &&
!e.toString().contains("certificate verify failed")) {
System.out.println("\t\t... failed");
fail();
}