Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19437

Re: Determining version of OpenSSL linked against python?

References <mailman.4974.1327348932.27778.python-list@python.org> <vg3liovh40v.fsf@sci.fi>
From Adam Mercer <ramercer@gmail.com>
Date 2012-01-25 15:40 -0600
Subject Re: Determining version of OpenSSL linked against python?
Newsgroups comp.lang.python
Message-ID <mailman.5096.1327527649.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Jan 25, 2012 at 15:21, Anssi Saari <as@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


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