forked from openvswitch/ovs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: Send non-zero flag for a SSL socket
Python std library SSLSocket.send does not allow non-zero value for the optional flag. pyOpenSSL was recently switched for the Python standard library ssl module commit 68543dd (python: Replace pyOpenSSL with ssl). Python SSLsocket.send() does not allow non-zero optional flag and it will explicitly raise an exception for that. pyOpenSSL did not nothing with this flag but kept it to be compatible with socket API. https://github.com/pyca/pyopenssl/blob/main/src/OpenSSL/SSL.py#L1844 In addition, expect for ImportError is not necessary anymore as ssl is part of the Python standard library. This type of exception should not happen. Signed-off-by: Miro Tomaska <mtomaska@redhat.com> Reported-at: https://bugzilla.redhat.com/2115035 Signed-off-by: 0-day Robot <robot@bytheb.org>
- Loading branch information
Showing
3 changed files
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters