[Python-3000-checkins] r57488 - python/branches/py3k/Modules/_ssl.c
neal.norwitz
python-3000-checkins at python.org
Sun Aug 26 04:26:31 CEST 2007
Author: neal.norwitz
Date: Sun Aug 26 04:26:31 2007
New Revision: 57488
Modified:
python/branches/py3k/Modules/_ssl.c
Log:
Return a boolean for status
Modified: python/branches/py3k/Modules/_ssl.c
==============================================================================
--- python/branches/py3k/Modules/_ssl.c (original)
+++ python/branches/py3k/Modules/_ssl.c Sun Aug 26 04:26:31 2007
@@ -616,15 +616,15 @@
static PyObject *
PySSL_RAND_status(PyObject *self)
{
- return PyInt_FromLong(RAND_status());
+ return PyBool_FromLong(RAND_status());
}
PyDoc_STRVAR(PySSL_RAND_status_doc,
"RAND_status() -> 0 or 1\n\
\n\
-Returns 1 if the OpenSSL PRNG has been seeded with enough data and 0 if not.\n\
-It is necessary to seed the PRNG with RAND_add() on some platforms before\n\
-using the ssl() function.");
+Returns True if the OpenSSL PRNG has been seeded with enough data and\n\
+False if not. It is necessary to seed the PRNG with RAND_add()\n\
+on some platforms before using the ssl() function.");
static PyObject *
PySSL_RAND_egd(PyObject *self, PyObject *arg)
More information about the Python-3000-checkins
mailing list