[PYTHON-CRYPTO] m2crypto-0.13 problem

Ng Pheng Siong ngps at NETMEMETIC.COM
Wed Nov 17 14:54:52 CET 2004


On Wed, Nov 17, 2004 at 02:20:45PM +0100, Robert Penz wrote:
> the testmail.eml works if I use the smime_load_pkcs7() function. it loads
> it directly from the given file. But I don't want to save my smime content
> to a file and check it than. so I looked at a way to use a stream. I found
> the  smime_load_pkcs7_bio() function. This means I normally get a stream,
> and don't need to use open("../daten/testmail.eml","rb".read())) and than
> call the smime_load_pkcs7_bio(BIO.MemoryBuffer(..)) stuff.
> [...]
> ps: both code examples are used in following howto
> http://sandbox.rulemaker.net/ngps/m2/howto.smime.html. so I assume it
> worked at some point.

Ah, now I understand. Yes, the code in the howto worked when I wrote it.

> I hat a look at both functions. the smime_load_pkcs7() uses an c function
> to create an BIO object and the smime_load_pkcs7_bio uses the given one.
> but than the code is the same.

So something has changed that breaks this... What OS, Python, and OpenSSL
versions are you using?

Thanks. 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