[PYTHON-CRYPTO] m2crypto-0.13 problem

Ng Pheng Siong ngps at NETMEMETIC.COM
Wed Nov 17 13:43:35 CET 2004


On Wed, Nov 17, 2004 at 11:47:48AM +0100, Robert Penz wrote:
> I've following problem with m2crypto-0.13.
>
> p7, data =
> SMIME.smime_load_pkcs7_bio(BIO.MemoryBuffer(open("../daten/testmail.eml",
> "rb").read()))
>
> returns
>
> File "/usr/lib/python2.3/site-packages/M2Crypto/SMIME.py", line 93, in
> smime_load_pkcs7_bio
> p7_ptr, bio_ptr = m2.smime_read_pkcs7(p7_bio._ptr())
> SystemError: error return without exception set
>
> but
>
> p7, data = SMIME.smime_load_pkcs7("../daten/testmail.eml")
>
> works.

Hi,

I've, uh, been unbusy. In fact, I've been enjoying a long holiday weekend.
;-)

> SystemError: error return without exception set

This isn't right. Do I understand correctly that, according to the your
input testmail.eml, this shouldn't throw an error?

Or is it the case that the first chunk of code - smime_load_pkcs7_bio() -
is wrong and the second chunk - smime_load_pkcs7() - is the correct way to
do ... whatever it is that you're doing? (I've been away from the S/MIME
code for quite a while and can't tell off-hand the purpose of the code,
sorry.)

Cheers.

--
Ng Pheng Siong <ngps at netmemetic.com>

http://sandbox.rulemaker.net/ngps -+- M2Crypto, ZServerSSL for Zope, Blog
http://www.sqlcrypt.com -+- Database Engine with Transparent AES Encryption




More information about the python-crypto mailing list