From: Christopher MacGown Date: Wed, 20 Jul 2016 23:53:14 +0000 (-0700) Subject: CMS_sign expects certstack to be a pointer X-Git-Url: https://www.wagner.pp.ru/gitweb/?p=oss%2Fctypescrypto.git;a=commitdiff_plain;h=4507d5ef438ad37cf587f321e553f43751f70333 CMS_sign expects certstack to be a pointer --- 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)