Skip to content

Commit

Permalink
get_cleartext_mtu doesn't exist on decrepit old openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
njsmith committed Oct 27, 2021
1 parent 21f59f7 commit 4428c9b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4274,6 +4274,12 @@ def c_handler():

# Check that the MTU set/query functions are doing *something*
c.set_ciphertext_mtu(1000)
assert 500 < c.get_cleartext_mtu() < 1000
try:
assert 500 < c.get_cleartext_mtu() < 1000
except NotImplementedError: # OpenSSL 1.1.0 and earlier
pass
c.set_ciphertext_mtu(500)
assert 0 < c.get_cleartext_mtu() < 500
try:
assert 0 < c.get_cleartext_mtu() < 500
except NotImplementedError: # OpenSSL 1.1.0 and earlier
pass

0 comments on commit 4428c9b

Please sign in to comment.