]> www.wagner.pp.ru Git - oss/ctypescrypto.git/blobdiff - ctypescrypto/cms.py
Added prototypes for CMS_get0_type and OBJ_obj2nid
[oss/ctypescrypto.git] / ctypescrypto / cms.py
index 685d52bd642c1cde132c002f5c1f65b5d87eac2b..f7e5e166325cf4f057e3dc5d3b55addd8e7ea7d1 100644 (file)
@@ -306,6 +306,8 @@ class EncryptedData(CMSBase):
 __all__ = ['CMS', 'CMSError', 'Flags', 'SignedData', 'EnvelopedData',
            'EncryptedData']
 
+libcrypto.CMS_get0_type.restype = c_void_p
+libcrypto.CMS_get0_type.argtypes = (c_void_p,)
 libcrypto.CMS_add1_cert.restype = c_int
 libcrypto.CMS_add1_cert.argtypes = (c_void_p, c_void_p)
 libcrypto.CMS_decrypt.restype = c_int