Determining version of OpenSSL linked against python?
ramercer at gmail.com
Wed Jan 25 16:40:06 EST 2012
On Wed, Jan 25, 2012 at 15:21, Anssi Saari <as at 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.
More information about the Python-list