File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,10 @@ def info():
93
93
"openssl_version" : "" ,
94
94
}
95
95
if OpenSSL :
96
+ openssl_version = OpenSSL .SSL .SSLeay_version (OpenSSL .SSL .SSLEAY_VERSION ).decode ("utf-8" )
96
97
pyopenssl_info = {
97
98
"version" : OpenSSL .__version__ ,
98
- "openssl_version" : f"{ OpenSSL . SSL . OPENSSL_VERSION_NUMBER :x } " ,
99
+ "openssl_version" : f"{ openssl_version } " ,
99
100
}
100
101
cryptography_info = {
101
102
"version" : getattr (cryptography , "__version__" , "" ),
@@ -104,8 +105,8 @@ def info():
104
105
"version" : getattr (idna , "__version__" , "" ),
105
106
}
106
107
107
- system_ssl = ssl .OPENSSL_VERSION_NUMBER
108
- system_ssl_info = {"version" : f"{ system_ssl :x } " if system_ssl is not None else " " }
108
+ system_ssl = ssl .OPENSSL_VERSION
109
+ system_ssl_info = {"version" : f"{ system_ssl } " }
109
110
110
111
return {
111
112
"platform" : platform_info ,
You can’t perform that action at this time.
0 commit comments