@@ -21,9 +21,9 @@ public void testSSLEngineEndpointIdSetNull() throws Exception {
21
21
SSLParameters sslParameters = sslEngine .getSSLParameters ();
22
22
sslParameters .setEndpointIdentificationAlgorithm (null );
23
23
sslEngine .setSSLParameters (sslParameters );
24
- sslEngine .beginHandshake (); // $hasUnsafeCertTrust
25
- sslEngine .wrap (new ByteBuffer [] {}, null ); // $hasUnsafeCertTrust
26
- sslEngine .unwrap (null , null , 0 , 0 ); // $hasUnsafeCertTrust
24
+ sslEngine .beginHandshake (); // $ Alert
25
+ sslEngine .wrap (new ByteBuffer [] {}, null ); // $ Alert
26
+ sslEngine .unwrap (null , null , 0 , 0 ); // $ Alert
27
27
}
28
28
29
29
public void testSSLEngineEndpointIdSetEmpty () throws Exception {
@@ -32,9 +32,9 @@ public void testSSLEngineEndpointIdSetEmpty() throws Exception {
32
32
SSLParameters sslParameters = sslEngine .getSSLParameters ();
33
33
sslParameters .setEndpointIdentificationAlgorithm ("" );
34
34
sslEngine .setSSLParameters (sslParameters );
35
- sslEngine .beginHandshake (); // $hasUnsafeCertTrust
36
- sslEngine .wrap (new ByteBuffer [] {}, null ); // $hasUnsafeCertTrust
37
- sslEngine .unwrap (null , null , 0 , 0 ); // $hasUnsafeCertTrust
35
+ sslEngine .beginHandshake (); // $ Alert
36
+ sslEngine .wrap (new ByteBuffer [] {}, null ); // $ Alert
37
+ sslEngine .unwrap (null , null , 0 , 0 ); // $ Alert
38
38
}
39
39
40
40
public void testSSLEngineEndpointIdSafe () throws Exception {
@@ -61,7 +61,7 @@ public void testSSLSocketEndpointIdNotSet() throws Exception {
61
61
SSLContext sslContext = SSLContext .getInstance ("TLS" );
62
62
SSLSocketFactory socketFactory = sslContext .getSocketFactory ();
63
63
SSLSocket socket = (SSLSocket ) socketFactory .createSocket ();
64
- socket .getOutputStream (); // $hasUnsafeCertTrust
64
+ socket .getOutputStream (); // $ Alert
65
65
}
66
66
67
67
public void testSSLSocketEndpointIdSetNull () throws Exception {
@@ -71,7 +71,7 @@ public void testSSLSocketEndpointIdSetNull() throws Exception {
71
71
SSLParameters sslParameters = socket .getSSLParameters ();
72
72
sslParameters .setEndpointIdentificationAlgorithm (null );
73
73
socket .setSSLParameters (sslParameters );
74
- socket .getOutputStream (); // $hasUnsafeCertTrust
74
+ socket .getOutputStream (); // $ Alert
75
75
}
76
76
77
77
public void testSSLSocketEndpointIdSetEmpty () throws Exception {
@@ -81,14 +81,14 @@ public void testSSLSocketEndpointIdSetEmpty() throws Exception {
81
81
SSLParameters sslParameters = socket .getSSLParameters ();
82
82
sslParameters .setEndpointIdentificationAlgorithm ("" );
83
83
socket .setSSLParameters (sslParameters );
84
- socket .getOutputStream (); // $hasUnsafeCertTrust
84
+ socket .getOutputStream (); // $ Alert
85
85
}
86
86
87
87
public void testSSLSocketEndpointIdAfterConnecting () throws Exception {
88
88
SSLContext sslContext = SSLContext .getInstance ("TLS" );
89
89
SSLSocketFactory socketFactory = sslContext .getSocketFactory ();
90
90
SSLSocket socket = (SSLSocket ) socketFactory .createSocket ();
91
- socket .getOutputStream (); // $hasUnsafeCertTrust
91
+ socket .getOutputStream (); // $ Alert
92
92
SSLParameters sslParameters = socket .getSSLParameters ();
93
93
sslParameters .setEndpointIdentificationAlgorithm ("HTTPS" );
94
94
socket .setSSLParameters (sslParameters );
@@ -138,7 +138,7 @@ public void testSSLSocketEndpointIdSafeWithSanitizerInCast(boolean safe) throws
138
138
SSLParameters sslParameters = sslSocket .getSSLParameters ();
139
139
sslParameters .setEndpointIdentificationAlgorithm ("HTTPS" );
140
140
sslSocket .setSSLParameters (sslParameters );
141
- socket .getOutputStream (); // $ SPURIOUS: hasUnsafeCertTrust
141
+ socket .getOutputStream (); // $ SPURIOUS: Alert
142
142
}
143
143
144
144
public void testSocketEndpointIdNotSet () throws Exception {
@@ -150,11 +150,11 @@ public void testSocketEndpointIdNotSet() throws Exception {
150
150
public void testRabbitMQFactoryEnableHostnameVerificationNotSet () throws Exception {
151
151
{
152
152
ConnectionFactory connectionFactory = new ConnectionFactory ();
153
- connectionFactory .useSslProtocol (SSLContext .getDefault ()); // $hasUnsafeCertTrust
153
+ connectionFactory .useSslProtocol (SSLContext .getDefault ()); // $ Alert
154
154
}
155
155
{
156
156
ConnectionFactory connectionFactory = new ConnectionFactory ();
157
- connectionFactory .setSslContextFactory (new TestSslContextFactory ()); // $hasUnsafeCertTrust
157
+ connectionFactory .setSslContextFactory (new TestSslContextFactory ()); // $ Alert
158
158
}
159
159
}
160
160
0 commit comments