X-Git-Url: https://www.wagner.pp.ru/gitweb/?p=oss%2Fctypescrypto.git;a=blobdiff_plain;f=ctypescrypto%2Fcms.py;h=ede20f5e631bad5d346f90391cde2c97371985f2;hp=c4ee1e9e1e2fbc04c09a9f387ea0ab9deeb4bb0b;hb=4507d5ef438ad37cf587f321e553f43751f70333;hpb=1c45d3f211f72ce19c9e92be868c15afe5e6ec62 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)