Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SSL deprecation warning in session.py #55

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from

Conversation

sbshah97
Copy link

Update create_ssl_context method in _SSLAdapter class to use ssl.PROTOCOL_TLS_CLIENT instead of deprecated options.

  • Replace ssl.OP_NO_SSLv2, ssl.OP_NO_SSLv3, and ssl.OP_NO_TLSv1 with ssl.PROTOCOL_TLS_CLIENT in smartsheet/session.py.
  • Add a new test file tests/integration/test_ssl.py to verify the absence of deprecation warnings.
  • Add a test case in tests/integration/test_ssl.py to check for deprecation warnings when creating an SSL context.

Update `create_ssl_context` method in `_SSLAdapter` class to use `ssl.PROTOCOL_TLS_CLIENT` instead of deprecated options.

* Replace `ssl.OP_NO_SSLv2`, `ssl.OP_NO_SSLv3`, and `ssl.OP_NO_TLSv1` with `ssl.PROTOCOL_TLS_CLIENT` in `smartsheet/session.py`.
* Add a new test file `tests/integration/test_ssl.py` to verify the absence of deprecation warnings.
* Add a test case in `tests/integration/test_ssl.py` to check for deprecation warnings when creating an SSL context.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/sbshah97/smartsheet-python-sdk?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant