]> www.wagner.pp.ru Git - oss/ctypescrypto.git/blobdiff - ctypescrypto/cms.py
style fixes
[oss/ctypescrypto.git] / ctypescrypto / cms.py
index 2c038985aba8ae9488f37083115dc5dd69bb4e6b..5a54bde1441ddb3f68d00c81f8748cb332a906f8 100644 (file)
@@ -68,7 +68,7 @@ def CMS(data,format="PEM"):
        else:
                raise NotImplementedError("cannot handle "+typeoid.shortname())
 
-class CMSBase: 
+class CMSBase(object)
        """
        Common ancessor for all CMS types.
        Implements serializatio/deserialization
@@ -171,7 +171,7 @@ class SignedData(CMSBase):
                res=libcrypto.CMS_verify(self.ptr,certstack,store.store,bio,None,flags)
                return res>0
        @property       
-       def signers(self,store=None):
+       def signers(self):
                """
                Return list of signer's certificates
                """
@@ -279,7 +279,7 @@ class EncryptedData(CMSBase):
                                raise CMSError("decrypt data")
                return str(b)
 
-               
+__all__=['CMS','CMSError','Flags','SignedData','EnvelopedData','EncryptedData']
 
 libcrypto.CMS_verify.restype=c_int
 libcrypto.CMS_verify.argtypes=(c_void_p,c_void_p,c_void_p,c_void_p,c_void_p,c_int)