Re: m2crypto-0.13 problem

Ng Pheng Siong <[email protected]>
Newsgroups gmane.comp.python.cryptography
Message-ID <[email protected]>
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 <[email protected]>

http://sandbox.rulemaker.net/ngps -+- M2Crypto, ZServerSSL for Zope, Blog
http://www.sqlcrypt.com -+- Database Engine with Transparent AES Encryption
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.