Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19436
| From | Anssi Saari <as@sci.fi> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Determining version of OpenSSL linked against python? |
| Date | 2012-01-25 23:21 +0200 |
| Message-ID | <vg3liovh40v.fsf@sci.fi> (permalink) |
| References | <mailman.4974.1327348932.27778.python-list@python.org> |
Adam Mercer <ramercer@gmail.com> writes:
> Can anyone offer any suggestions as to what is going wrong with the
> above code or offer an alternative way of determining the OpenSSl
> version using python-2.6?
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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Determining version of OpenSSL linked against python? Adam Mercer <ramercer@gmail.com> - 2012-01-23 14:01 -0600
Re: Determining version of OpenSSL linked against python? Anssi Saari <as@sci.fi> - 2012-01-25 23:21 +0200
Re: Determining version of OpenSSL linked against python? Adam Mercer <ramercer@gmail.com> - 2012-01-25 15:40 -0600
csiph-web