Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0061bf58
Commit
0061bf58
authored
Sep 06, 2016
by
Christian Heimes
Browse files
Options
Browse Files
Download
Plain Diff
Issue #26470: Use short name rather than name for compression name to fix #27958.
parents
7eacdcc3
281e5f88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
Modules/_ssl.c
Modules/_ssl.c
+1
-6
No files found.
Modules/_ssl.c
View file @
0061bf58
...
...
@@ -151,11 +151,6 @@ static int COMP_get_type(const COMP_METHOD *meth)
{
return
meth
->
type
;
}
static
const
char
*
COMP_get_name
(
const
COMP_METHOD
*
meth
)
{
return
meth
->
name
;
}
#endif
static
pem_password_cb
*
SSL_CTX_get_default_passwd_cb
(
SSL_CTX
*
ctx
)
...
...
@@ -1714,7 +1709,7 @@ _ssl__SSLSocket_compression_impl(PySSLSocket *self)
comp_method
=
SSL_get_current_compression
(
self
->
ssl
);
if
(
comp_method
==
NULL
||
COMP_get_type
(
comp_method
)
==
NID_undef
)
Py_RETURN_NONE
;
short_name
=
COMP_get_name
(
comp_method
);
short_name
=
OBJ_nid2sn
(
COMP_get_type
(
comp_method
)
);
if
(
short_name
==
NULL
)
Py_RETURN_NONE
;
return
PyUnicode_DecodeFSDefault
(
short_name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment