summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-26 02:26:31 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-26 02:26:31 (GMT)
commit1ccfa90172cd9cd4feebbab25edece2285f123aa (patch)
tree3cc65f750fafa841f7cf76cb98fd0474ad17460e /Modules
parente1188629a6892f59659546bacfb6fd0d8e0c4bcb (diff)
downloadcpython-1ccfa90172cd9cd4feebbab25edece2285f123aa.zip
cpython-1ccfa90172cd9cd4feebbab25edece2285f123aa.tar.gz
cpython-1ccfa90172cd9cd4feebbab25edece2285f123aa.tar.bz2
Return a boolean for status
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index df7d094..177325c 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -616,15 +616,15 @@ bound on the entropy contained in string.");
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)