From 4507d5ef438ad37cf587f321e553f43751f70333 Mon Sep 17 00:00:00 2001 From: Christopher MacGown Date: Wed, 20 Jul 2016 16:53:14 -0700 Subject: [PATCH] CMS_sign expects certstack to be a pointer --- ctypescrypto/cms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctypescrypto/cms.py b/ctypescrypto/cms.py index c4ee1e9..ede20f5 100644 --- a/ctypescrypto/cms.py +++ b/ctypescrypto/cms.py @@ -120,7 +120,7 @@ class SignedData(CMSBase): raise ValueError("Certificate doesn't match public key") bio = Membio(data) if certs is not None and len(certs) > 0: - certstack = StackOfX509(certs) + certstack = StackOfX509(certs).ptr else: certstack = None ptr = libcrypto.CMS_sign(cert.cert, pkey.key, certstack, bio.bio, flags) -- 2.39.2