Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'subject:version': 0.07; 'python': 0.08; 'ssh': 0.09; 'suggestion.': 0.09; 'subject:python': 0.10; 'output': 0.10; '25,': 0.12; 'cc:addr :python-list': 0.15; '"copyright",': 0.16; '"credits"': 0.16; '"license"': 0.16; '[gcc': 0.16; 'adam': 0.16; 'linux2': 0.16; 'nick': 0.16; 'openssl': 0.16; 'subject:linked': 0.16; 'wrote:': 0.16; 'wed,': 0.17; '>>>': 0.18; 'jan': 0.19; 'seems': 0.19; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'cheers': 0.23; 'assumes': 0.23; 'import': 0.27; 'message- id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.29; 'received:209.85.210.46': 0.30; 'received:mail- pz0-f46.google.com': 0.30; 'subject:?': 0.30; 'version': 0.31; 'thanks': 0.32; 'parse': 0.34; 'ssl': 0.34; 'cc:2**1': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'received:209': 0.39; 'subject:: ': 0.39; 'type': 0.60; 'more': 0.61 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=It2NS+OJPrrn1h2lL29R1vgPI2Sfb0ftEb0UjsafLm8=; b=GHHZdiMhU2TYCPUsbw2DtOrNik6VgNHBk95C4zEzuGKOxeCRFVtHdB2j3p5zpb9bpx CD31VMvSeS6gonsjPr5z0HMef/b/KQsM/nOhptch69nVSG/YZEafisX9BYNULH4bsdvi d/GRvjZCyjeCBhxQl5+iI6W+YMXr+F4bX3AQE= MIME-Version: 1.0 In-Reply-To: <4032.1327524979@alphaville> References: <4032.1327524979@alphaville> From: Adam Mercer Date: Wed, 25 Jan 2012 15:06:39 -0600 Subject: Re: Determining version of OpenSSL linked against python? To: nicholas.dokos@hp.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org, Terry Reedy X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1327525649 news.xs4all.nl 6864 [2001:888:2000:d::a6]:48532 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19434 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 "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