From 0776aa758ba8d039df88abed2e371cca1d3fb421 Mon Sep 17 00:00:00 2001 From: Victor Wagner Date: Mon, 20 Jun 2016 17:55:23 +0300 Subject: [PATCH] Fix error message in str --- ctypescrypto/cms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctypescrypto/cms.py b/ctypescrypto/cms.py index f7e5e16..4250cbe 100644 --- a/ctypescrypto/cms.py +++ b/ctypescrypto/cms.py @@ -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): -- 2.39.5