Re: Determining version of OpenSSL linked against python?

2015-09-19 Thread svalleru
8 Sep 2006 : cheers -- View this message in context: http://python.6.x6.nabble.com/Determining-version-of-OpenSSL-linked-against-python-tp485p5171962.html Sent from the Python - python-list mailing list archive at Nabble.com. -- https://mail.python.org/mailman/listinfo/python-list

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Adam Mercer
On Wed, Jan 25, 2012 at 15:21, Anssi Saari 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() > p

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Anssi Saari
Adam Mercer 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

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Adam Mercer
On Wed, Jan 25, 2012 at 14:56, Nick Dokos 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 "he

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Nick Dokos
Adam Mercer wrote: > On Wed, Jan 25, 2012 at 14:04, Terry Reedy wrote: > > > If you are not willing to tell Debian Squeeze users to install 2.7, or that > > they cannot run your program, ask the bug reporter to tell you what version > > of OpenSSL the system comes with and code it into your pro

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Adam Mercer
On Wed, Jan 25, 2012 at 14:04, Terry Reedy wrote: > If you are not willing to tell Debian Squeeze users to install 2.7, or that > they cannot run your program, ask the bug reporter to tell you what version > of OpenSSL the system comes with and code it into your program. I would like to only sup

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Terry Reedy
On 1/25/2012 11:02 AM, Adam Mercer wrote: Is this possible at all? If you are not willing to tell Debian Squeeze users to install 2.7, or that they cannot run your program, ask the bug reporter to tell you what version of OpenSSL the system comes with and code it into your program. Or poss

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Adam Mercer
Hi Is this possible at all? Cheers Adam On Mon, Jan 23, 2012 at 14:01, Adam Mercer wrote: > Hi > > I'm trying to write a script that determines the version of OpenSSL > that python is linked against, using python-2.7 this is easy as I can > use: > >    import ssl >    ssl.OPENSSL_VERSION > > b

Determining version of OpenSSL linked against python?

2012-01-23 Thread Adam Mercer
Hi I'm trying to write a script that determines the version of OpenSSL that python is linked against, using python-2.7 this is easy as I can use: import ssl ssl.OPENSSL_VERSION but unfortunately I need to support python-2.6, from an older script I used the following: import _ssl

Re: Determining version of OpenSSL

2011-04-04 Thread Adam Mercer
On Mon, Apr 4, 2011 at 16:44, Martin v. Loewis wrote: >> is there a way that this can be done in python2.4? It's annoying but I >> need to support python2.4 for a while yet :-( > > ldd /usr/lib/python2.4/lib-dynload/_ssl.so > [...] >        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x7f6a5

Re: Determining version of OpenSSL

2011-04-04 Thread Martin v. Loewis
> import ssl > ssl.OPENSSL_VERSION > > is there a way that this can be done in python2.4? It's annoying but I > need to support python2.4 for a while yet :-( ldd /usr/lib/python2.4/lib-dynload/_ssl.so [...] libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x7f6a5a9b7000) [...] HTH, Marti

Determining version of OpenSSL

2011-04-04 Thread Adam Mercer
Hi I'm trying to determine the version of OpenSSL that a given python is compiled against, with python2.7 I can do this with: import ssl ssl.OPENSSL_VERSION is there a way that this can be done in python2.4? It's annoying but I need to support python2.4 for a while yet :-( Cheers Adam -- http