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


Groups > comp.lang.python > #19430

Re: Determining version of OpenSSL linked against python?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ramercer@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'bug': 0.02; 'versions,': 0.05; 'subject:version': 0.07; 'terry': 0.07; 'subject:python': 0.10; '25,': 0.12; 'things.': 0.12; 'tries': 0.15; 'cc:addr :python-list': 0.15; 'adam': 0.16; 'constructs': 0.16; 'constructs.': 0.16; 'fallback': 0.16; 'openssl': 0.16; 'possibly,': 0.16; 'reedy': 0.16; 'subject:linked': 0.16; 'wrote:': 0.16; 'wed,': 0.17; 'jan': 0.19; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'cheers': 0.23; 'debian': 0.23; 'cc:2**0': 0.25; 'code': 0.25; 'otherwise,': 0.25; 'looks': 0.27; 'message-id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.29; 'subject:?': 0.30; 'version': 0.31; 'certain': 0.34; '...': 0.35; 'things': 0.35; 'received:209.85.160.46': 0.35; 'received :mail-pw0-f46.google.com': 0.35; 'install': 0.35; 'received:209.85.160': 0.35; 'run': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'replace': 0.38; 'received:209.85': 0.38; 'think': 0.38; 'easier': 0.38; 'except': 0.39; 'received:209': 0.39; 'subject:: ': 0.39; 'your': 0.61; 'target': 0.62; "'if": 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ZnBtvSLEG7faQx8C/yixsYV9bCAusv7diXgdiBzL6Ps=; b=xGzqYqfl8Tl5H6nt487Mt+E4dx2YX4nik8QeFksQKgYxSVVNRta9yaD1FiinUPycXp BdU7CvW1MmI34ZLd+PFLUurX9yUsjaFKDFtEfOWKca2hqXEH0oqhphT7MYu2ipKtp22+ CYIIV2ZsHlNm5lpfQEE7xieUy62YxHF31saPc=
MIME-Version 1.0
In-Reply-To <jfpn8h$ihh$1@dough.gmane.org>
References <CA+mfgz1PMHc=REJxCcXVxSNxCJxVLAPiAJO5CN-LiycFSvdsNQ@mail.gmail.com> <CA+mfgz0JRxjgWQg7SAw80+gKyOFdU+sYo0w2NnCs84-4TD7-mw@mail.gmail.com> <jfpn8h$ihh$1@dough.gmane.org>
From Adam Mercer <ramercer@gmail.com>
Date Wed, 25 Jan 2012 14:41:49 -0600
Subject Re: Determining version of OpenSSL linked against python?
To Terry Reedy <tjreedy@udel.edu>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5092.1327524153.27778.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1327524153 news.xs4all.nl 6880 [2001:888:2000:d::a6]:47058
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19430

Show key headers only | View raw


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

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 14:41 -0600

csiph-web