File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -151,11 +151,6 @@ static int COMP_get_type(const COMP_METHOD *meth)
151
151
{
152
152
return meth -> type ;
153
153
}
154
-
155
- static const char * COMP_get_name (const COMP_METHOD * meth )
156
- {
157
- return meth -> name ;
158
- }
159
154
#endif
160
155
161
156
static pem_password_cb * SSL_CTX_get_default_passwd_cb (SSL_CTX * ctx )
@@ -1644,7 +1639,7 @@ _ssl__SSLSocket_compression_impl(PySSLSocket *self)
1644
1639
comp_method = SSL_get_current_compression (self -> ssl );
1645
1640
if (comp_method == NULL || COMP_get_type (comp_method ) == NID_undef )
1646
1641
Py_RETURN_NONE ;
1647
- short_name = COMP_get_name ( comp_method );
1642
+ short_name = OBJ_nid2sn ( COMP_get_type ( comp_method ) );
1648
1643
if (short_name == NULL )
1649
1644
Py_RETURN_NONE ;
1650
1645
return PyUnicode_DecodeFSDefault (short_name );
You can’t perform that action at this time.
0 commit comments