On Wed, Jan 25, 2012 at 15:21, Anssi Saari <a...@sci.fi> wrote: > I suppose you could use ctypes to load the library and call SSLeay() > which returns the OpenSSL version number as a C long. > > Like this: > > from ctypes import * > libssl = cdll.LoadLibrary("libssl.so") > openssl_version = libssl.SSLeay() > print "%.9X" % openssl_version > > This gives me 0009080FF which corresponds to 0.9.8o release which is > what I have installed in Debian Squeeze.
Thanks, that looks useful. Cheers Adam -- http://mail.python.org/mailman/listinfo/python-list