File tree Expand file tree Collapse file tree
cpp/ql/test/query-tests/Security/CWE/CWE-295 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ bool test2_8(SSL *ssl)
9797{
9898 int cert;
9999
100- cert = SSL_get_peer_certificate (ssl); // GOOD (SSL_get_verify_result is called when there is a cert) [FALSE POSITIVE]
100+ cert = SSL_get_peer_certificate (ssl); // GOOD (SSL_get_verify_result is called when there is a cert)
101101 if (!cert) return false ;
102102 if (!SSL_get_verify_result (ssl)) return false ;
103103
@@ -108,7 +108,7 @@ bool test2_9(SSL *ssl)
108108{
109109 int cert;
110110
111- cert = SSL_get_peer_certificate (ssl); // GOOD (SSL_get_verify_result is called when there is a cert) [FALSE POSITIVE]
111+ cert = SSL_get_peer_certificate (ssl); // GOOD (SSL_get_verify_result is called when there is a cert)
112112 if ((!cert) || (SSL_get_verify_result (ssl) != 0 )) {
113113 return false ;
114114 }
@@ -137,7 +137,7 @@ bool test2_11(SSL *ssl)
137137{
138138 int cert;
139139
140- cert = SSL_get_peer_certificate (ssl); // GOOD (SSL_get_verify_result is called when there is a cert) [FALSE POSITIVE]
140+ cert = SSL_get_peer_certificate (ssl); // GOOD (SSL_get_verify_result is called when there is a cert)
141141
142142 if ((cert) && (SSL_get_verify_result (ssl) == 0 )) {
143143 return true ;
You can’t perform that action at this time.
0 commit comments