<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/pyopenssl/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/pyopenssl/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 12 Feb 2009 05:46:27 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pyopenssl/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>Merged changes from Dave Cridland's branch</title><link>https://sourceforge.net/p/pyopenssl/patches/21/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This is a fairly significant upgrade to pyOpenSSL functionality in the sense that many additional OpenSSL APIs are exposed.  Dave Cridland appears to have forked pyOpenSSL several years back (relative to the sourceforge branch), adding significant additional functionality including access to the digital signatures API.  I have merged those changes back into the sourceforge.net pyOpenSSL branch (pyOpenSSL-0.8), attempting to retain both Dave Cridland's extended functionality, as well as the extensive stability improvements that have been made to the sourceforge.net pyOpenSSL branch.  We've been using this patch now for several months with no known issues.  Please consider merging.&lt;/p&gt;
&lt;p&gt;* Merged changes from Dave Cridland's branch:&lt;br /&gt;
-r756 &lt;a href="http://svn.dave.cridland.net/svn/projects/pyopenssl/dwd" rel="nofollow"&gt;http://svn.dave.cridland.net/svn/projects/pyopenssl/dwd&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To apply this patch:&lt;/p&gt;
&lt;p&gt;tar xfz pyOpenSSL-0.8.tar.gz&lt;br /&gt;
cd pyOpenSSL-0.8&lt;br /&gt;
patch -p1 &amp;lt;../pyOpenSSL.diff&lt;/p&gt;
&lt;p&gt;Because the patch adds some binary files as well that cannot&lt;br /&gt;
be represented in the diff, I have placed the binary files&lt;br /&gt;
in pyOpenSSL-0.8-binary.  You should manually copy them&lt;br /&gt;
to the destination after running the patch command.&lt;/p&gt;
&lt;p&gt;All files relevant to this patch can be found in the attached file&lt;br /&gt;
pyOpenSSL-diff.tar.gz&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
James Yonan&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Yonan</dc:creator><pubDate>Thu, 12 Feb 2009 05:46:27 -0000</pubDate><guid>https://sourceforge.netd3ab21321f93b33a69701c478ebd773ad7f83d3d</guid></item><item><title>Module crashes "Fatal Python error: ceval: tstate mix-up"</title><link>https://sourceforge.net/p/pyopenssl/patches/20/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In a heavily threaded applicaiton that uses the package from more than one thread at a time, the pyOpenSSL 0.8 often makes Python 2.5 interpreter crash with the following errror message:&lt;/p&gt;
&lt;p&gt;Fatal Python error: ceval: tstate mix-up&lt;br /&gt;
Abort trap: 6 (core dumped)&lt;/p&gt;
&lt;p&gt;We have test program that crashes reliably in no time here.&lt;/p&gt;
&lt;p&gt;There are other reports of the same issue:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/ab1317191a8182e5" rel="nofollow"&gt;http://groups.google.com/group/comp.lang.python/browse_thread/thread/ab1317191a8182e5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Investigation revealed that it is caused by the mis-use of the key to store per-thread context. Instead, it's suggested to save the context in per-instance private data. It is safe to do this, since one object instance cannot be used in separate threads at the very same time due to SSL_CTX and libopenssl API in general not being thread-friendly. Therefore, external locking at python level is required to properly serialize access to methods of the same instance anyway. But this patch makes it safe to use different instances in different threads at the same time.&lt;/p&gt;
&lt;p&gt;Proposed patch is attached. The patch also cleans up some of the old, now unused code.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Maksym Sobolyev</dc:creator><pubDate>Wed, 28 Jan 2009 14:23:48 -0000</pubDate><guid>https://sourceforge.net40654c6a37f1332e30fc03fcfb77c01b4bf5ec86</guid></item><item><title>Remove unused variable definition</title><link>https://sourceforge.net/p/pyopenssl/patches/19/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Removes an unused variable definition.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wilfredo Sanchez</dc:creator><pubDate>Mon, 14 Jul 2008 23:17:39 -0000</pubDate><guid>https://sourceforge.netd4335e956fd5f786cd2d504907ae19fd1dde8447</guid></item><item><title>return PyObject*</title><link>https://sourceforge.net/p/pyopenssl/patches/18/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Silences warnings from gcc about returning an incompatible pointer type from Python wrapper routines.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wilfredo Sanchez</dc:creator><pubDate>Mon, 14 Jul 2008 23:17:07 -0000</pubDate><guid>https://sourceforge.net4bca35619b875546181c84a006664b8dfa1c927c</guid></item><item><title>Silence CVSid warnings</title><link>https://sourceforge.net/p/pyopenssl/patches/17/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Silences "unused variable" warnings from gcc for the static CVSid variable kept in many files.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wilfredo Sanchez</dc:creator><pubDate>Mon, 14 Jul 2008 23:15:50 -0000</pubDate><guid>https://sourceforge.netdbc0008b2ab6e8f5df3481e075ef18ae90263497</guid></item><item><title>shebang usr bin env python</title><link>https://sourceforge.net/p/pyopenssl/patches/16/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This makes it so I can run "./setup.py" on all platforms including cygwin.&lt;/p&gt;
&lt;p&gt;{{{&lt;br /&gt;
diff -rN -u old-pyOpenSSL-0.7a2/pyOpenSSL-0.7a2/setup.py new-pyOpenSSL-0.7a2/pyOpenSSL-0.7a2/setup.py&lt;br /&gt;
--- old-pyOpenSSL-0.7a2/pyOpenSSL-0.7a2/setup.py   2008-04-10 17:50:43.000000000 -0700&lt;br /&gt;
+++ new-pyOpenSSL-0.7a2/pyOpenSSL-0.7a2/setup.py    2008-04-10 17:50:43.000000000 -0700&lt;br /&gt;
@@ -1,3 +1,4 @@&lt;br /&gt;
+#!/usr/bin/env python&lt;br /&gt;
# vim:fileencoding=UTF-8&lt;br /&gt;
#&lt;br /&gt;
# setup.py&lt;/p&gt;
&lt;p&gt;}}}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zooko O'Whielacronx</dc:creator><pubDate>Fri, 11 Apr 2008 00:53:19 -0000</pubDate><guid>https://sourceforge.net5d2196de491aa45cea2fd2f194bc6bde888f20ef</guid></item><item><title>Enable support for building on Solaris</title><link>https://sourceforge.net/p/pyopenssl/patches/15/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The OpenSSL libs and includes that are installed from SunFreeware are in /usr/sfw. This patch adds support for installing on Solaris by including a check for that directory.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Duncan McGreggor</dc:creator><pubDate>Sun, 23 Mar 2008 12:30:25 -0000</pubDate><guid>https://sourceforge.net53281c27d53b12c468d65c72cf848be667b4a1a0</guid></item><item><title>Fix examples/simple</title><link>https://sourceforge.net/p/pyopenssl/patches/14/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The examples in examples/simple were broken for two reasons:&lt;/p&gt;
&lt;p&gt;1) the .py files contained non-ASCII characters, but did not specify a source encoding (see PEP 263),&lt;/p&gt;
&lt;p&gt;2) the CA, client and server certificates had expired in 2007.&lt;/p&gt;
&lt;p&gt;This patch adds source encoding lines and includes new certificates that will expire in approx 10 years.&lt;/p&gt;
&lt;p&gt;The patch has been tested on MacOS X with openssl 0.9.7 and on Windows XP with openssl 0.9.8.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hugh Emberson</dc:creator><pubDate>Fri, 18 Jan 2008 05:46:08 -0000</pubDate><guid>https://sourceforge.nete79463376fc5ff33bca5d4af667b1d7e212a4874</guid></item><item><title>pyOpenSSL doesn't build with OpenSSL 0.9.8 / VC7.1</title><link>https://sourceforge.net/p/pyopenssl/patches/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;pyOpenSSL does build fine with VC6 and OpenSSL 0.9.8. &lt;/p&gt;
&lt;p&gt;However if you try to create a Windows build for Python&lt;br /&gt;
2.4 which requires using VC7.1 (.NET 2003), you get&lt;br /&gt;
lots of errors when compiling connection.c.&lt;/p&gt;
&lt;p&gt;The fix is easy, albeit a hack and not a real solution:&lt;/p&gt;
&lt;p&gt;Edit the file src\ssl\x509name.h:&lt;/p&gt;
&lt;p&gt;"""&lt;br /&gt;
#define crypto_X509Name_Check(v) ((v)-&amp;gt;ob_type ==&lt;br /&gt;
&amp;amp;crypto_X509Name_Type)&lt;/p&gt;
&lt;p&gt;/* Fix needed to compile pyOpenSSL with VC7.1: */&lt;br /&gt;
#ifdef OPENSSL_SYS_WIN32&lt;br /&gt;
/* Under Win32 these are defined in wincrypt.h */&lt;br /&gt;
#undef X509_NAME&lt;br /&gt;
#undef X509_CERT_PAIR&lt;br /&gt;
#endif&lt;/p&gt;
&lt;p&gt;typedef struct {&lt;br /&gt;
"""&lt;/p&gt;
&lt;p&gt;With this fix, pyOpenSSL builds against Py2.4. I'm not&lt;br /&gt;
sure whether this is due to how pyOpenSSL includes the&lt;br /&gt;
OpenSSL header files, but it looks like this is the&lt;br /&gt;
cause of the problem.&lt;/p&gt;
&lt;p&gt;Perhaps including OpenSSL *before* Python.h would help&lt;br /&gt;
- not sure, haven't tested it.&lt;/p&gt;
&lt;p&gt;Another hint: you can easily build Windows installers&lt;br /&gt;
using the following commands:&lt;/p&gt;
&lt;p&gt;set SSL=..\openssl-0.9.8&lt;br /&gt;
python setup.py build_ext -I %SSL%\inc32 -L&lt;br /&gt;
%SSL%\out32dll bdist_wininst -c -o &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">M.-A. Lemburg</dc:creator><pubDate>Wed, 03 Aug 2005 15:56:58 -0000</pubDate><guid>https://sourceforge.net6cf7db1a44a5e17040364f9d0743f51d96376da5</guid></item><item><title>(re)enabling  X509Extensions</title><link>https://sourceforge.net/p/pyopenssl/patches/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;OS: Debian Sarge&lt;br /&gt;
python version 2.3.5&lt;br /&gt;
pyOpenSSL version 0.6&lt;br /&gt;
OpenSSL version 0.9.7e &lt;/p&gt;
&lt;p&gt;crypto.X509Extension() causes segmentation fault when it &lt;br /&gt;
is instanciated.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;This patch seems to work fine on my system.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;The main problem was that the ext_method-&amp;gt;i2d method is &lt;br /&gt;
NULL, I simply put the code used by OpenSSL into the &lt;br /&gt;
binding.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Cyril.&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 18 Mar 2005 17:31:57 -0000</pubDate><guid>https://sourceforge.netad633b8d17287772558fec456944a2c1907877e2</guid></item></channel></rss>