[issue8321] Give access to openssl version number

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: You were right: make output had an error involving ssl I didn't notice. My bad. -- ___ Python tracker ___ ___

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > So I'm gonna ask: when I modify *.c files, do I have to do something > else other than "./configure; make; make install" in order to see the > changes applied? Oh, sorry, I had overlooked the "make install" bit. Well then I don't know. But you can run the int

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > So I'm gonna ask: when I modify *.c files, do I have to do something > else other than "./configure; make; make install" in order to see the > changes applied? No. If you run the Python binary from the SVN checkout directory (rather than from an installation

[issue8321] Give access to openssl version number

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: The ./configure -> make -> make install process went fine, or at least, I think so, as it completed without reporting errors or exiting. ...But maybe I'm doing something wrong as just a little while ago I was modifying _ssl.c but wasn't able to see those ch

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > >>> import ssl > Traceback (most recent call last): > File "", line 1, in > File "/usr/local/lib/python2.7/ssl.py", line 62, in > from _ssl import OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_INFO, > OPENSSL_VERSION > ImportError: cannot import name OPEN

[issue8321] Give access to openssl version number

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: >>> import ssl Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/ssl.py", line 62, in from _ssl import OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_INFO, OPENSSL_VERSION ImportError: cannot import name OPENSSL_VERSION

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed, with Benjamin's permission, in r79812 (trunk) and r79813 (py3k). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue8321] Give access to openssl version number

2010-04-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I was about to open a request for this. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file16769/sslversion.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16768/sslversion.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch with doc. -- Added file: http://bugs.python.org/file16768/sslversion.patch ___ Python tracker ___

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16767/sslversion.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8321] Give access to openssl version number

2010-04-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you please add documentation as well? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-l

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: (note: tested with OpenSSL 0.9.8k and 1.0.0) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8321] Give access to openssl version number

2010-04-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : This patch gives access to the OpenSSL version the _ssl module is linked against, through three attributes: one gives the raw integer, another the decoded 5-tuple of ints, the last one the version string as returned by OpenSSL. -- components: Librar