X-Git-Url: https://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=ctypescrypto%2Fcms.py;h=1e533875ded29e44f0604b7b95fffc8dca7a6f87;hb=8a2a5ca1f9fc0036d28807d2a9b8a130e560d85b;hp=bc27e9e34f8d14cd09e63e6343fc8465610ba755;hpb=287e8a5b1d7f5a8129619f733adbfc8b2de3e4c7;p=oss%2Fctypescrypto.git diff --git a/ctypescrypto/cms.py b/ctypescrypto/cms.py index bc27e9e..1e53387 100644 --- a/ctypescrypto/cms.py +++ b/ctypescrypto/cms.py @@ -140,7 +140,7 @@ class SignedData(CMSBase): raise ValueError("Specified keypair has no private part") if cert.pubkey != pkey: raise ValueError("Certificate doesn't match public key") - if libcrypto.CMS_sign_add1_Signer(self.ptr, cert.cert, pkey.ptr, + if libcrypto.CMS_add1_signer(self.ptr, cert.cert, pkey.ptr, digest_type.digest, flags) is None: raise CMSError("adding signer") if flags & Flags.REUSE_DIGEST == 0: @@ -325,8 +325,8 @@ libcrypto.CMS_get1_certs.restype = c_void_p libcrypto.CMS_get1_certs.argtypes = (c_void_p, ) libcrypto.CMS_sign.restype = c_void_p libcrypto.CMS_sign.argtypes = (c_void_p, c_void_p, c_void_p, c_void_p, c_uint) -libcrypto.CMS_sign_add1_Signer.restype = c_void_p -libcrypto.CMS_sign_add1_Signer.argtypes = (c_void_p, c_void_p, c_void_p, +libcrypto.CMS_add1_signer.restype = c_void_p +libcrypto.CMS_add1_signer.argtypes = (c_void_p, c_void_p, c_void_p, c_void_p, c_uint) libcrypto.CMS_verify.restype = c_int libcrypto.CMS_verify.argtypes = (c_void_p, c_void_p, c_void_p, c_void_p,