Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7eacdcc + 281e5f8 commit 0061bf5Copy full SHA for 0061bf5
1 file changed
Modules/_ssl.c
@@ -151,11 +151,6 @@ static int COMP_get_type(const COMP_METHOD *meth)
151
{
152
return meth->type;
153
}
154
-
155
-static const char *COMP_get_name(const COMP_METHOD *meth)
156
-{
157
- return meth->name;
158
-}
159
#endif
160
161
static pem_password_cb *SSL_CTX_get_default_passwd_cb(SSL_CTX *ctx)
@@ -1714,7 +1709,7 @@ _ssl__SSLSocket_compression_impl(PySSLSocket *self)
1714
1709
comp_method = SSL_get_current_compression(self->ssl);
1715
1710
if (comp_method == NULL || COMP_get_type(comp_method) == NID_undef)
1716
1711
Py_RETURN_NONE;
1717
- short_name = COMP_get_name(comp_method);
1712
+ short_name = OBJ_nid2sn(COMP_get_type(comp_method));
1718
1713
if (short_name == NULL)
1719
1720
return PyUnicode_DecodeFSDefault(short_name);
0 commit comments