<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cryptography.git/src/_cffi_src/openssl/callbacks.py, branch 2.0.x</title>
<subtitle>github.com: pyca/cryptography.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/'/>
<entry>
<title>Funcs macros gone (#3695)</title>
<updated>2017-06-27T21:15:37+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2017-06-27T21:15:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=491fd7cc5aefff8064039d073331b41a2f606a63'/>
<id>491fd7cc5aefff8064039d073331b41a2f606a63</id>
<content type='text'>
* No more FUNCS/MACROS distinction

* change the docs to not talk about MACROS since they're gone

* remove out of date comment
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* No more FUNCS/MACROS distinction

* change the docs to not talk about MACROS since they're gone

* remove out of date comment
</pre>
</div>
</content>
</entry>
<entry>
<title>pypy3 compilation fix for locking callback (#3716)</title>
<updated>2017-06-24T21:51:12+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2017-06-24T21:51:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=1b714f7ed673c9a211f3b664e7df39d0f5f21e32'/>
<id>1b714f7ed673c9a211f3b664e7df39d0f5f21e32</id>
<content type='text'>
* pypy3 fix on macos using work from the pypy project

https://bitbucket.org/pypy/pypy/commits/198dc138680f96c391802fa1e77b8b6d2e0134e6?at=py3.5

* change abort error msg and fix wrong type

* oh windows

* remove an unused variable

* rename mutex1_t, use calloc, small style fixes

* calloc correctly

* (call)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* pypy3 fix on macos using work from the pypy project

https://bitbucket.org/pypy/pypy/commits/198dc138680f96c391802fa1e77b8b6d2e0134e6?at=py3.5

* change abort error msg and fix wrong type

* oh windows

* remove an unused variable

* rename mutex1_t, use calloc, small style fixes

* calloc correctly

* (call)
</pre>
</div>
</content>
</entry>
<entry>
<title>switch the PEM password callback to a C implementation (#3382)</title>
<updated>2017-02-14T02:01:23+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2017-02-14T02:01:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=4a90c254278231d7defeac304a3cfd752e96e786'/>
<id>4a90c254278231d7defeac304a3cfd752e96e786</id>
<content type='text'>
* switch the PEM password callback to a C implementation

Calling from C to Python is fraught with edge cases, especially in
subinterpreter land. This commit moves the PEM password callback logic
into a small C function and then removes all the infrastructure for the
cffi callbacks (as we no longer have any)

* review feedback and update tests

* rename the struct

* aaand one more fix
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* switch the PEM password callback to a C implementation

Calling from C to Python is fraught with edge cases, especially in
subinterpreter land. This commit moves the PEM password callback logic
into a small C function and then removes all the infrastructure for the
cffi callbacks (as we no longer have any)

* review feedback and update tests

* rename the struct

* aaand one more fix
</pre>
</div>
</content>
</entry>
<entry>
<title>Use static callbacks with Python 3.x again (#3350)</title>
<updated>2017-01-18T07:02:38+00:00</updated>
<author>
<name>Christian Heimes</name>
<email>christian@python.org</email>
</author>
<published>2017-01-18T07:02:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=d078e546e2ebfaa37ebe92c446ff437183312530'/>
<id>d078e546e2ebfaa37ebe92c446ff437183312530</id>
<content type='text'>
* Use static callbacks with Python 3.x again

Static callbacks were disabled for Python 3.5+ to work around an issue
with subinterpreters, locking callbacks and osrandom engine. Locking
callback and osrandom engine were replaced with a C implementations in
version 1.6 and 1.7.

https://github.com/pyca/cryptography/issues/2970

Closes: #3348
Signed-off-by: Christian Heimes &lt;christian@python.org&gt;

* remove unused import
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Use static callbacks with Python 3.x again

Static callbacks were disabled for Python 3.5+ to work around an issue
with subinterpreters, locking callbacks and osrandom engine. Locking
callback and osrandom engine were replaced with a C implementations in
version 1.6 and 1.7.

https://github.com/pyca/cryptography/issues/2970

Closes: #3348
Signed-off-by: Christian Heimes &lt;christian@python.org&gt;

* remove unused import
</pre>
</div>
</content>
</entry>
<entry>
<title>C locking callback (#3226)</title>
<updated>2016-11-13T20:55:22+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2016-11-13T20:55:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=d862933de5c344fcdf99ab2f43f3bf8da65f3e41'/>
<id>d862933de5c344fcdf99ab2f43f3bf8da65f3e41</id>
<content type='text'>
* Remove Python OpenSSL locking callback and replace it with one in C

The Python OpenSSL locking callback is unsafe; if GC is triggered
during the callback's invocation, it can result in the callback being
invoked reentrantly, which can lead to deadlocks. This patch replaces
it with one in C that gets built at compile time via cffi along with
the rest of the OpenSSL binding.

* fixes for some issues

* unused

* revert these changes

* these two for good measure

* missing param

* sigh, syntax

* delete tests that assumed an ability to mess with locks

* style fixes

* licensing stuff

* utf8

* Unicode. Huh. What it isn't good for, absolutely nothing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Remove Python OpenSSL locking callback and replace it with one in C

The Python OpenSSL locking callback is unsafe; if GC is triggered
during the callback's invocation, it can result in the callback being
invoked reentrantly, which can lead to deadlocks. This patch replaces
it with one in C that gets built at compile time via cffi along with
the rest of the OpenSSL binding.

* fixes for some issues

* unused

* revert these changes

* these two for good measure

* missing param

* sigh, syntax

* delete tests that assumed an ability to mess with locks

* style fixes

* licensing stuff

* utf8

* Unicode. Huh. What it isn't good for, absolutely nothing.
</pre>
</div>
</content>
</entry>
<entry>
<title>disable static callbacks on Python 3.5 (refs #2970) (#3063)</title>
<updated>2016-07-29T06:45:42+00:00</updated>
<author>
<name>Maximilian Hils</name>
<email>git@maximilianhils.com</email>
</author>
<published>2016-07-29T06:45:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=6e9e489fd80424811d1b228d64f3b1b3d23de2a8'/>
<id>6e9e489fd80424811d1b228d64f3b1b3d23de2a8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>remove the callbacks we don't use in cryptography</title>
<updated>2016-01-08T05:08:57+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2016-01-08T05:08:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=90ad38fae043268e3bfe2844f1996707bfd0caf8'/>
<id>90ad38fae043268e3bfe2844f1996707bfd0caf8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Port callbacks to new static callback</title>
<updated>2016-01-07T19:38:34+00:00</updated>
<author>
<name>Christian Heimes</name>
<email>christian@python.org</email>
</author>
<published>2015-11-19T15:18:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=830af271de1c9c3589bcce12cc08573850141f51'/>
<id>830af271de1c9c3589bcce12cc08573850141f51</id>
<content type='text'>
cffi 1.4.0 will introduce a new API to create static callbacks. Contrary
to the old callback API, static callbacks no longer depend on libffi's
dynamic code generation for closures. Static code has some benefits over
dynamic generation. For example the code is faster. Also it doesn't need
writeable and executable memory mappings, which makes it compatible with
SELinux's deny execmem policy.

The branch depends on PR #2488.

https://bitbucket.org/cffi/cffi/issues/232/static-callbacks

Closes: #2477
Signed-off-by: Christian Heimes &lt;cheimes@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
cffi 1.4.0 will introduce a new API to create static callbacks. Contrary
to the old callback API, static callbacks no longer depend on libffi's
dynamic code generation for closures. Static code has some benefits over
dynamic generation. For example the code is faster. Also it doesn't need
writeable and executable memory mappings, which makes it compatible with
SELinux's deny execmem policy.

The branch depends on PR #2488.

https://bitbucket.org/cffi/cffi/issues/232/static-callbacks

Closes: #2477
Signed-off-by: Christian Heimes &lt;cheimes@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
