Blame SOURCES/python-nss-set_certificate_db.patch

4f8d33
# HG changeset patch
4f8d33
# User John Dennis <jdennis@redhat.com>
4f8d33
# Date 1434146562 14400
4f8d33
#      Fri Jun 12 18:02:42 2015 -0400
4f8d33
# Node ID 932c56dbe8dbf74ca90461770f40c4ae2c79fe62
4f8d33
# Parent  6096d0660e2abefcee12e502fed029663d435c54
4f8d33
SSLSocket.set_certificate_db() fails with TypeError
4f8d33
4f8d33
Resolves bug
4f8d33
https://bugzilla.redhat.com/show_bug.cgi?id=1230584
4f8d33
4f8d33
The PyArg_ParseTuple parameters were incorrectly specified,
4f8d33
it passed a type instead of a pointer to type.
4f8d33
4f8d33
diff --git a/src/py_ssl.c b/src/py_ssl.c
4f8d33
--- a/src/py_ssl.c
4f8d33
+++ b/src/py_ssl.c
4f8d33
@@ -1638,7 +1638,7 @@
4f8d33
 {
4f8d33
     CertDB *py_certdb = NULL;
4f8d33
 
4f8d33
-    if (!PyArg_ParseTuple(args, "O!:set_certificate_db", CertDBType, &py_certdb))
4f8d33
+    if (!PyArg_ParseTuple(args, "O!:set_certificate_db", &CertDBType, &py_certdb))
4f8d33
         return NULL;
4f8d33
 
4f8d33
     if (SSL_CertDBHandleSet(self->pr_socket, py_certdb->handle) != SECSuccess) {