[PYTHON-CRYPTO] m2crypto-0.13 problem

G Dang gdang1 at GMAIL.COM
Wed Dec 15 17:00:38 CET 2004


Robert,

This issue is neither a M2Crypto or OpenSSL bug.  It's explained
in this thread:
http://www.mail-archive.com/openssl-dev@openssl.org/msg16733.html

I struggled with this one as well.  When using in memory BIO
(ie. BIO.MemoryBuffer -> BIO_s_mem) with base64 encoded data,
like an enveloped message, you'll need to call
    m2.bio_set_mem_eof_return(bio._ptr(), 0)
after loading the bio.

GD




More information about the python-crypto mailing list