---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
---
S504 `ssl.wrap_socket` called without an `ssl_version``
 --> S504.py:4:1
  |
2 | from ssl import wrap_socket
3 |
4 | ssl.wrap_socket()  # S504
  | ^^^^^^^^^^^^^^^^^
5 | wrap_socket()  # S504
6 | ssl.wrap_socket(ssl_version=ssl.PROTOCOL_TLSv1_2)  # OK
  |

S504 `ssl.wrap_socket` called without an `ssl_version``
 --> S504.py:5:1
  |
4 | ssl.wrap_socket()  # S504
5 | wrap_socket()  # S504
  | ^^^^^^^^^^^^^
6 | ssl.wrap_socket(ssl_version=ssl.PROTOCOL_TLSv1_2)  # OK
  |
