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


Groups > comp.lang.python > #19434

Re: Determining version of OpenSSL linked against python?

References (1 earlier) <CA+mfgz0JRxjgWQg7SAw80+gKyOFdU+sYo0w2NnCs84-4TD7-mw@mail.gmail.com> <jfpn8h$ihh$1@dough.gmane.org> <ramercer@gmail.com> <CA+mfgz0OyPXDP+Onbs2gfn5A6qB3CzBQTJMNbd32k0gQwR=Eeg@mail.gmail.com> <4032.1327524979@alphaville>
From Adam Mercer <ramercer@gmail.com>
Date 2012-01-25 15:06 -0600
Subject Re: Determining version of OpenSSL linked against python?
Newsgroups comp.lang.python
Message-ID <mailman.5095.1327525649.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Jan 25, 2012 at 14:56, Nick Dokos <nicholas.dokos@hp.com> wrote:

> One other possibility is to parse the output of ssh -V:
>
> ,----
> | $ ssh -V
> | OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
> | $ python
> | Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
> | [GCC 4.5.2] on linux2
> | Type "help", "copyright", "credits" or "license" for more information.
> | >>> import ssl
> | >>> ssl.OPENSSL_VERSION
> | 'OpenSSL 0.9.8o 01 Jun 2010'
> | >>>
> `----
>
> This assumes that ssh and python would use the same version of openssl:
> not guaranteed, but seems like a "reasonable" assumption to me.

Hmm, I like that idea. Thanks for the suggestion.

Cheers

Adam

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


Thread

Re: Determining version of OpenSSL linked against python? Adam Mercer <ramercer@gmail.com> - 2012-01-25 15:06 -0600

csiph-web