- 16 Eyl, 2007 1 kayıt (commit)
-
-
Bill Janssen yazdı
adding the 'makefile' method to ssl.SSLSocket, and importing the requisite fakefile class from socket.py, and making the appropriate changes to it to make it use the SSL connection. Added sample HTTPS server to test_ssl.py, and test that uses it. Change SSL tests to use https://svn.python.org/, instead of www.sf.net and pop.gmail.com. Added utility function to ssl module, get_server_certificate, to wrap up the several things to be done to pull a certificate from a remote server.
-
- 10 Eyl, 2007 1 kayıt (commit)
-
-
Bill Janssen yazdı
* Much expanded test suite: All protocols tested against all other protocols. All protocols tested with all certificate options. Tests for bad key and bad cert. Test of STARTTLS functionality. Test of RAND_* functions. * Fixes for threading/malloc bug. * Issue 1065 fixed: sslsocket class renamed to SSLSocket. sslerror class renamed to SSLError. Function "wrap_socket" now used to wrap an existing socket. * Issue 1583946 finally fixed: Support for subjectAltName added. Subject name now returned as proper DN list of RDNs. * SSLError exported from socket as "sslerror". * RAND_* functions properly exported from ssl.py. * Documentation improved: Example of how to create a self-signed certificate. Better indexing.
-
- 05 Eyl, 2007 1 kayıt (commit)
-
-
Bill Janssen yazdı
-
- 27 Agu, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
> 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.]
-
- 25 Agu, 2007 3 kayıt (commit)
-
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
declarations to the beginning of a scope.
-
Guido van Rossum yazdı
While cleaning up Bill's C style, I may have cleaned up some code he didn't touch as well (in _ssl.c).
-
- 21 Tem, 2007 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
-
- 19 Eki, 2006 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
PyArg_ParseTuple.
-
- 11 Tem, 2006 1 kayıt (commit)
-
-
Anthony Baxter yazdı
means that select() on sockets > FD_SETSIZE (typically 1024) work again. The patch makes sockets use poll() internally where available.
-
- 11 May, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 10 May, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
longobject.c: also fix an ssize_t problem <a> could have been NULL, so hoist the size calc to not use <a>. _ssl.c: under fail: self is DECREF'd, but it would have been NULL. _elementtree.c: delete self if there was an error. _csv.c: I'm not sure if lineterminator could have been anything other than a string. However, other string method calls are checked, so check this one too.
-
- 17 Nis, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 31 Mar, 2006 1 kayıt (commit)
-
-
Georg Brandl yazdı
-
- 13 Şub, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 11 Şub, 2006 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
Proposed by Tim Peters.
-
- 07 Şub, 2006 2 kayıt (commit)
-
-
Neal Norwitz yazdı
is larger than FD_SETSIZE. This can only be acheived with ulimit -n SOME_NUMBER_BIGGER_THAN_FD_SETSIZE which is typically only available to root. Since this wouldn't normally be run in a test (ie, run as root), it doesn't seem too worthwhile to add a normal test. The bug report has one version of a test. I've written another. Not sure what the best thing to do is. Do the check before calling internal_select() because we can't set an error in between Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS. This seemed the clearest solution, ie handle before calling internal_select() rather than inside. Plus there is at least one place outside of internal_select() that needed to be handled. Will backport.
-
Neal Norwitz yazdı
-
- 19 Ock, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Probably should be backported.
-
- 04 Agu, 2004 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
-
- 10 Tem, 2004 2 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
[Patch #909007] Enable a bunch of safe bug workarounds in OpenSSL, for compatibility with various broken SSL implementations out there.
-
Andrew M. Kuchling yazdı
(It turns out that the Debian unstable packaging of Python 2.3.4 includes this patch.) Patch by Tino Lange.
-
- 23 Mar, 2004 1 kayıt (commit)
-
-
Brett Cannon yazdı
Added socket.error to the socket module's C API.
-
- 27 Eki, 2003 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 20 Eki, 2003 1 kayıt (commit)
-
-
Walter Dörwald yazdı
(From SF patch #810751)
-
- 30 Haz, 2003 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Also fix a memory leak.
-
- 28 Haz, 2003 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 02 Şub, 2003 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 31 Ock, 2003 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Geoff writes: This is yet another patch to _ssl.c that sets the underlying BIO to non-blocking if the socket being wrapped is non-blocking. It also correctly loops when SSL_connect, SSL_write, or SSL_read indicates that it needs to read or write more bytes. This seems to fix bug #673797 which was not fixed by my previous patch.
-
- 27 Ock, 2003 1 kayıt (commit)
-
-
Guido van Rossum yazdı
(SF patch #675750, to fix SF bug #675552.)
-
- 02 Agu, 2002 1 kayıt (commit)
-
-
Mark Hammond yazdı
for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
-
- 28 Tem, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 17 Tem, 2002 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
The staticforward define was needed to support certain broken C compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the static keyword when it was used with a forward declaration of a static initialized structure. Standard C allows the forward declaration with static, and we've decided to stop catering to broken C compilers. (In fact, we expect that the compilers are all fixed eight years later.) I'm leaving staticforward and statichere defined in object.h as static. This is only for backwards compatibility with C extensions that might still use it. XXX I haven't updated the documentation.
-
- 02 Tem, 2002 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
- 13 Haz, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 27 Nis, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
don't understand how this function works, also beefed up the docs. The most common usage error is of this form (often spread out across gotos): if (_PyString_Resize(&s, n) < 0) { Py_DECREF(s); s = NULL; goto outtahere; } The error is that if _PyString_Resize runs out of memory, it automatically decrefs the input string object s (which also deallocates it, since its refcount must be 1 upon entry), and sets s to NULL. So if the "if" branch ever triggers, it's an error to call Py_DECREF(s): s is already NULL! A correct way to write the above is the simpler (and intended) if (_PyString_Resize(&s, n) < 0) goto outtahere; Bugfix candidate.
-
- 20 Nis, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
Fixes #494762.
-
- 16 Şub, 2002 1 kayıt (commit)
-
-
Marc-André Lemburg yazdı
helper module _ssl. The support for the RAND_* APIs in _ssl is now only enabled for OpenSSL 0.9.5 and up since they were added in that release. Note that socketmodule.* should really be renamed to _socket.* -- unfortunately, this seems to lose the CVS history of the file. Please review and test... I was only able to test the header file chaos in socketmodule.c/h on Linux. The test run through fine and compiles don't give errors or warnings. WARNING: This patch does *not* include changes to the various non-Unix build process files.
-