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


Groups > comp.lang.python > #19430 > unrolled thread

Re: Determining version of OpenSSL linked against python?

Started byAdam Mercer <ramercer@gmail.com>
First post2012-01-25 14:41 -0600
Last post2012-01-25 14:41 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#19430 — Re: Determining version of OpenSSL linked against python?

FromAdam Mercer <ramercer@gmail.com>
Date2012-01-25 14:41 -0600
SubjectRe: Determining version of OpenSSL linked against python?
Message-ID<mailman.5092.1327524153.27778.python-list@python.org>
On Wed, Jan 25, 2012 at 14:04, Terry Reedy <tjreedy@udel.edu> 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 support python-2.7 as that would make a few other
things easier but the powers that be think otherwise, I unfortunately
need to target python-2.6.

> Or possibly, depending on what you do with the version info and what the
> differences are between versions, replace 'if version ...' constructs with
> 'try ... except...' constructs.

My code already has a try... except block that tries the
ssl.OPENSSL_VERSION approach first but I wanted to have a fallback
method that works with python-2.6. Looks like I may need to hardcode
certain things.

Cheers

Adam

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web