View | Details | Raw Unified | Return to bug 192511 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/ports/lang/python27/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	python27
3
PORTNAME=	python27
4
PORTVERSION=	2.7.8
4
PORTVERSION=	2.7.8
5
PORTREVISION=	2
5
PORTREVISION=	3
6
CATEGORIES=	lang python ipv6
6
CATEGORIES=	lang python ipv6
7
MASTER_SITES=	PYTHON
7
MASTER_SITES=	PYTHON
8
MASTER_SITE_SUBDIR=	ftp/python/${PORTVERSION}
8
MASTER_SITE_SUBDIR=	ftp/python/${PORTVERSION}
(-)/usr/ports/lang/python27/files/patch-Modules___ssl.c (+28 lines)
Line 0 Link Here
1
--- ./Modules/_ssl.c.orig	2014-06-30 04:05:42.000000000 +0200
2
+++ ./Modules/_ssl.c		2014-08-07 11:58:48.000000000 +0200
3
@@ -1604,20 +1604,11 @@
4
 static PyObject *
5
 PySSL_RAND_egd(PyObject *self, PyObject *arg)
6
 {
7
-    int bytes;
8
-
9
-    if (!PyString_Check(arg))
10
-        return PyErr_Format(PyExc_TypeError,
11
-                            "RAND_egd() expected string, found %s",
12
-                            Py_TYPE(arg)->tp_name);
13
-    bytes = RAND_egd(PyString_AS_STRING(arg));
14
-    if (bytes == -1) {
15
-        PyErr_SetString(PySSLErrorObject,
16
-                        "EGD connection failed or EGD did not return "
17
-                        "enough data to seed the PRNG");
18
-        return NULL;
19
-    }
20
-    return PyInt_FromLong(bytes);
21
+ 
22
+  PyErr_SetString(PySSLErrorObject,
23
+		  "EGD connection failed or EGD did not return "
24
+		  "enough data to seed the PRNG");
25
+  return NULL;
26
 }
27
 
28
 PyDoc_STRVAR(PySSL_RAND_egd_doc,

Return to bug 192511