Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Delta Between Two Patch Sets: Modules/_ssl.c

Issue 20421: expose SSL socket protocol version
Left Patch Set: Created 5 years, 9 months ago
Right Patch Set: Created 5 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_ssl.py ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 /* SSL socket module 1 /* SSL socket module
2 2
3 SSL support based on patches by Brian E Gallew and Laszlo Kovacs. 3 SSL support based on patches by Brian E Gallew and Laszlo Kovacs.
4 Re-worked a bit by Bill Janssen to add server-side support and 4 Re-worked a bit by Bill Janssen to add server-side support and
5 certificate decoding. Chris Stawarz contributed some non-blocking 5 certificate decoding. Chris Stawarz contributed some non-blocking
6 patches. 6 patches.
7 7
8 This module is imported by ssl.py. It should *not* be used 8 This module is imported by ssl.py. It should *not* be used
9 directly. 9 directly.
10 10
(...skipping 4200 matching lines...) Expand 10 before | Expand all | Expand 10 after
4211 return NULL; 4211 return NULL;
4212 4212
4213 libver = OPENSSL_VERSION_NUMBER; 4213 libver = OPENSSL_VERSION_NUMBER;
4214 parse_openssl_version(libver, &major, &minor, &fix, &patch, &status); 4214 parse_openssl_version(libver, &major, &minor, &fix, &patch, &status);
4215 r = Py_BuildValue("IIIII", major, minor, fix, patch, status); 4215 r = Py_BuildValue("IIIII", major, minor, fix, patch, status);
4216 if (r == NULL || PyModule_AddObject(m, "_OPENSSL_API_VERSION", r)) 4216 if (r == NULL || PyModule_AddObject(m, "_OPENSSL_API_VERSION", r))
4217 return NULL; 4217 return NULL;
4218 4218
4219 return m; 4219 return m;
4220 } 4220 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+