Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed Feb 26, 2024
1 parent 9a2db28 commit 459fc02
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions rules/java/lang/ssl_hostname_verifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ patterns:
- pattern: $<CALLER>.$<METHOD>($<ALLOW_ALL_HOSTNAME_VERIFIER>);
filters:
- either:
- variable: CALLER
detection: ssl_hostname_verifier_socket_factory
- variable: CALLER
detection: ssl_hostname_verifier_https_url_connection
- variable: CALLER
detection: ssl_hostname_verifier_socket_factory
- variable: CALLER
detection: ssl_hostname_verifier_https_url_connection
- variable: METHOD
values:
- setHostnameVerifier
- setDefaultHostnameVerifier
- setSSLHostnameVerifier
- either:
- variable: ALLOW_ALL_HOSTNAME_VERIFIER
detection: ssl_hostname_verifier_allow_all_hostname_verifier
- variable: ALLOW_ALL_HOSTNAME_VERIFIER
detection: ssl_hostname_verifier_allow_all_hostname_verifier_instance
- variable: ALLOW_ALL_HOSTNAME_VERIFIER
detection: ssl_hostname_verifier_allow_all_hostname_verifier
- variable: ALLOW_ALL_HOSTNAME_VERIFIER
detection: ssl_hostname_verifier_allow_all_hostname_verifier_instance
- pattern: $<SSL_CONTEXT_GET_INSTANCE>.init($<NULL>, $<_>, $<_>)
filters:
- variable: SSL_CONTEXT_GET_INSTANCE
Expand Down Expand Up @@ -148,10 +148,10 @@ auxiliary:
- pattern: $<CALLER>.getSocketFactory();
filters:
- either:
- variable: CALLER
regex: \A(javax\.net\.ssl\.)?SSLContext\z
- variable: CALLER
regex: \A(org\.apache\.http\.conn\.ssl\.)?SSLSocketFactory\z
- variable: CALLER
regex: \A(javax\.net\.ssl\.)?SSLContext\z
- variable: CALLER
regex: \A(org\.apache\.http\.conn\.ssl\.)?SSLSocketFactory\z
- id: ssl_hostname_verifier_https_url_connection
patterns:
- pattern: $<HTTPS_URL_CONNECTION>;
Expand Down

0 comments on commit 459fc02

Please sign in to comment.