Files
cpython/Modules
Guido van Rossum 780b80dc08 > Some of the code sets the error string in this directly before
> returning NULL, and other pieces of the code call PySSL_SetError,
> which creates the error string.  I think some of the places which set
> the string directly probably shouldn't; instead, they should call
> PySSL_SetError to cons up the error name directly from the err code.
> However, PySSL_SetError only works after the construction of an ssl
> object, which means it can't be used there...  I'll take a longer look
> at it and see if there's a reasonable fix.

Here's a patch which addresses this.  It also fixes the indentation in
PySSL_SetError, bringing it into line with PEP 7, fixes a compile warning
about one of the OpenSSL macros, and makes the namespace a bit more
consistent.  I've tested it on FC 7 and OS X 10.4.

% ./python ./Lib/test/regrtest.py -R :1: -u all test_ssl
test_ssl
beginning 6 repetitions
123456
......
1 test OK.
[29244 refs]
%

[GvR: slightly edited to enforce 79-char line length, even if it required
 violating the style guide.]
2007-08-27 18:42:23 +00:00
..
2006-08-13 18:12:26 +00:00
2006-01-03 06:48:38 +00:00
2006-02-27 17:20:04 +00:00
2007-05-09 18:10:47 +00:00
2006-02-15 17:27:45 +00:00
2007-08-08 13:50:02 +00:00
2006-07-29 15:43:13 +00:00
2006-05-29 13:53:16 +00:00
2007-03-10 07:38:14 +00:00
2007-08-12 17:11:13 +00:00
2006-09-16 17:36:37 +00:00
2006-04-22 01:58:40 +00:00
2006-06-12 03:05:40 +00:00
1996-01-26 21:10:22 +00:00