From d882eaed49fcc52f893f662e12dacb1de0eeba52 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 10 Oct 2008 18:28:22 +0000 Subject: Update to new OpenSSL snapshot. This required code changes to track new type-safety features in the OpenSSL "stack" metatype. svn path=/openssl/Makefile; revision=2012 --- pow/POW-0.7/POW.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pow/POW-0.7/POW.c') diff --git a/pow/POW-0.7/POW.c b/pow/POW-0.7/POW.c index 24974afe..461431b2 100644 --- a/pow/POW-0.7/POW.c +++ b/pow/POW-0.7/POW.c @@ -699,7 +699,7 @@ error: } static PyObject * -stack_to_tuple_helper(STACK *sk, PyObject *(*handler)(void *)) +stack_to_tuple_helper(_STACK *sk, PyObject *(*handler)(void *)) { PyObject *result_list = NULL, *result_tuple = NULL, *obj = NULL; int n, i; @@ -7289,7 +7289,8 @@ CMS_object_certs(cms_object *self, PyObject *args) goto error; if ((certs = CMS_get1_certs(self->cms)) != NULL) - result = stack_to_tuple_helper(certs, cms_object_helper_get_cert); + result = stack_to_tuple_helper(CHECKED_PTR_OF(STACK_OF(X509), certs), + cms_object_helper_get_cert); else if (!ERR_peek_error()) result = Py_BuildValue("()"); else @@ -7338,7 +7339,8 @@ CMS_object_crls(cms_object *self, PyObject *args) goto error; if ((crls = CMS_get1_crls(self->cms)) != NULL) - result = stack_to_tuple_helper(crls, cms_object_helper_get_crl); + result = stack_to_tuple_helper(CHECKED_PTR_OF(STACK_OF(X509_CRL), crls), + cms_object_helper_get_crl); else if (!ERR_peek_error()) result = Py_BuildValue("()"); else -- cgit v1.2.3