diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-08-29 18:18:53 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-08-29 20:05:34 -0500 |
commit | 89656cd08cf0369677b298f30ba754cb62e5009b (patch) | |
tree | 64b7c97a9ddd324689eb67242a05382ba0729ab2 /docs/fernet.rst | |
parent | b2ecff2447e06c9cd5747228cb5bbf9d44bbcdfe (diff) | |
download | cryptography-89656cd08cf0369677b298f30ba754cb62e5009b.tar.gz cryptography-89656cd08cf0369677b298f30ba754cb62e5009b.tar.bz2 cryptography-89656cd08cf0369677b298f30ba754cb62e5009b.zip |
Resolve an unusual test bug related to initializing the bindings
To make calls against the "SSL" parts of OpenSSL you need to call
SSL_library_init. There are multiple ways this can be called:
* If you're using the same OpenSSL in cryptography as you are in your
Python then Python will call it for you.
* If you import the openssl backend.
These tests need SSL_library_init to be called. When run in our CI
SSL_library_init is called because during the parametrization step
the OpenSSL backend is imported (thus triggering it). However, you
can also run tests directly via py.test and without this change
py.test tests/hazmat/bindings/test_openssl.py
would crash if you had cryptography linked against a different OpenSSL
than your Python used.
Diffstat (limited to 'docs/fernet.rst')
0 files changed, 0 insertions, 0 deletions