Roll back the get_openssl_version() type change.

This commit is contained in:
Andrey Rakhmatullin 2023-01-13 20:51:07 +04:00
parent fb52918d23
commit 43ab8bd16a
1 changed files with 3 additions and 1 deletions

View File

@ -47,5 +47,7 @@ def get_temp_key_info(ssl_object):
def get_openssl_version():
system_openssl = OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION)
system_openssl = OpenSSL.SSL.SSLeay_version(
OpenSSL.SSL.SSLEAY_VERSION
).decode('ascii', errors='replace')
return f'{OpenSSL.version.__version__} ({system_openssl})'