On Thu, Dec 21, 2000 at 05:14:38PM +0000, Dr S N Henson wrote:
> One of the problems with swig is that it doesn't handle buffers which
> can contain embedded nulls automatically (these occur *everywhere* in
> OpenSSL) and this usually requires some low level stuff in the relevant
> scripting language.

Yes, this. And exception handling in the scripting language of
errors returned by the C library.


Earlier versions of M2Crypto had a "Blob" type that got
munched by Swig into the right Python thingy. It had this because
I had a vain goal of generating bindings for >1 language (originally
Python, Perl and Tcl) from one set of Swig files.

The most recent release of M2Crypto deprecated Blobs and used
Python objects directly in many places, because after writing 
Python I am no longer inclined to write Perl and I've never gotten
around to Tcl. ;-)

This makes the current release of M2Crypto not useful for binding
to other scripting languages.

I've had a change of mind, though, so the next release of M2Crypto
might see some Blobs coming back in. I hope to handle Jython, a 
Java implementation of Python, and I've also been looking at Lua.


Happy hols!

-- 
Ng Pheng Siong <[EMAIL PROTECTED]> * http://www.post1.com/home/ngps

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to