JSSE: fix WolfSSLServerSocketTest detection of error string message
parent
14bb27b65e
commit
488d6e7c7c
|
@ -525,8 +525,10 @@ public class WolfSSLServerSocketTest {
|
||||||
fail();
|
fail();
|
||||||
|
|
||||||
} catch (SSLHandshakeException e) {
|
} catch (SSLHandshakeException e) {
|
||||||
/* expected */
|
/* Expected. Different versions of wolfSSL can display
|
||||||
if (!e.toString().contains("ASN no signer")) {
|
* 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");
|
System.out.println("\t\t... failed");
|
||||||
fail();
|
fail();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue