1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
# PyPy's SSL module
All of the CFFI code is copied from cryptography, wich patches contributed
back to cryptography. PyPy vendors it's own copy of the cffi backend thus
it renames the compiled shared object to _pypy_openssl.so (which means
that cryptography can ship their own cffi backend)
NOTE: currently, we have the following changes:
* ``_cffi_src/openssl/callbacks.py`` to not rely on the CPython C API
(this change is now backported)
* ``_cffi_src/utils.py`` for issue #2575 (29c9a89359e4)
* ``_cffi_src/openssl/x509_vfy.py`` for issue #2605 (ca4d0c90f5a1)
* ``_cffi_src/openssl/pypy_win32_extra.py`` for Win32-only functionality like ssl.enum_certificates()
# Tests?
Currently this module is tested using CPython's standard library test suite.
# Install it into PyPy's source tree
Copy over all the sources into the folder `lib_pypy/_cffi_ssl/*`. Updating the cffi backend can be simply done by the following command::
$ cp -r <cloned cryptography folder>/src/_cffi_src/* .
NOTE: you need to keep our version of ``_cffi_src/openssl/callbacks.py``
for now!
# Crpytography version
Copied over release version `1.7.2`
|