-
Notifications
You must be signed in to change notification settings - Fork 419
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
SSL_CTX_set_ciphersuites for tlsv1.3 context #1292
base: main
Are you sure you want to change the base?
Conversation
38269ba
to
6a15b4d
Compare
src/OpenSSL/SSL.py
Outdated
@@ -1320,6 +1320,26 @@ def set_tmp_ecdh(self, curve): | |||
""" | |||
_lib.SSL_CTX_set_tmp_ecdh(self._context, curve._to_EC_KEY()) | |||
|
|||
def set_ciphersuites(self, cipher_list): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def set_ciphersuites(self, cipher_list: bytes) -> None
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Isn't it a bit unusual to hijack the test of another method, just because the two methods require bytes as input? |
for me it would make more sense if there would be additional test that calls both of these methods simultaneously (as it is intended), so that parametrized ones can test it individually based on bytes input and context that changes (or raises exception due to typerror).. but it also require |
4998df7
to
f84b711
Compare
Linking: #1224
As cffi binding allows to use SSL_CTX_set_ciphersuites - adaptation for setting the ciphers in context of TLSv1.3 can be made.