]> www.wagner.pp.ru Git - oss/ctypescrypto.git/blobdiff - ctypescrypto/cms.py
Fix error message in str
[oss/ctypescrypto.git] / ctypescrypto / cms.py
index f7e5e166325cf4f057e3dc5d3b55addd8e7ea7d1..4250cbee3ebd66f125cf38553b7b7ba10c029243 100644 (file)
@@ -84,7 +84,7 @@ class CMSBase(object):
         """
         bio = Membio()
         if not libcrypto.i2d_CMS_bio(bio.bio, self.ptr):
-            raise CMSError("writing CMS to PEM")
+            raise CMSError("writing CMS to DER")
         return str(bio)
 
     def pem(self):