aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/build_openssl.py
Commit message (Collapse)AuthorAgeFilesLines
* New osrandom_engine in C (#3229)Christian Heimes2016-12-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New osrandom_engine in C Inspired by Python/random.c and the old implementation. Signed-off-by: Christian Heimes <christian@python.org> * osrandom_engine * Fix naming bug caused by search 'n replace mistake * Make it easier to override osrandom auto-detection * Add engine ctrl and backend API to get implementation from ENGINE Signed-off-by: Christian Heimes <christian@python.org> * Better test coverage, documentation, LICENSE Signed-off-by: Christian Heimes <christian@python.org> * Coverage is hard. Signed-off-by: Christian Heimes <christian@python.org> * * enable win32 check * read() returns size_t Signed-off-by: Christian Heimes <christian@python.org> * Add macOS to spelling list. Remove dead code from header file. Signed-off-by: Christian Heimes <christian@python.org> * remove CCRandomGenerateBytes path and update getentropy to work on macOS This change allows us to test all the engines in our CI: * getentropy (tested by macOS sierra) * getrandom (tested on several linux builders) * /dev/urandom (tested on FreeBSD, OS X 10.11 and below, & older linux) * CryptGenRandom (tested on windows builders) I also fixed bugs preventing compilation in the getentropy code * getentropy() returns int and is restricted to 256 bytes on macOS, too. Signed-off-by: Christian Heimes <christian@python.org> * add versionadded * Re-add import of os module * Fixes related to Alex's recent review. Signed-off-by: Christian Heimes <christian@python.org> * Add error reporting and fail for EAGAIN Add error reporting strings for various error cases. This gives us much nicer and understandable error messages. SYS_getrandom() EAGAIN is now an error. Cryptography refuses to initialize its osrandom engine when the Kernel's CPRNG hasn't been seeded yet. Signed-off-by: Christian Heimes <christian@python.org>
* Fix compilation with MinGW (#3191)Saúl Ibarra Corretgé2016-10-101-2/+5
|
* Add OPENSSL_config binding (#2972) (#2974)Anton2016-07-131-0/+1
| | | | | | | >>> lib.EVP_get_digestbyname(b'md_gost94') <cdata 'EVP_MD *' NULL> >>> lib.OPENSSL_config(ffi.NULL) >>> lib.EVP_get_digestbyname(b'md_gost94') <cdata 'EVP_MD *' 0x10adc7440>
* Use a series of constants for OpenSSL version checks (#3037)Alex Gaynor2016-07-111-16/+3
| | | | | | | | | | | | | | | | | | | | | | | | * Use a series of constants for OpenSSL version checks. N.B. I removed several qualifiers that were being used to express beta vs. release in OpenSSL version numbers. Reviewers please look closely! * Convert some python as well, also add the file * flake8 * Simplify code, remove functionality that can be expressed more simply * clean up the tests as well * more constants * wrap long lines * reflect feedback * unused * add this back?
* simplify the macro def checkPaul Kehrer2016-03-281-1/+1
|
* fix libressl breakage reported in #2858Paul Kehrer2016-03-281-1/+8
|
* config header changes for 1.1.0Paul Kehrer2016-03-081-1/+0
| | | | | | OPENSSL_config is deprecated in 1.1.0 and OPENSSL_no_config is a macro provided solely for compatibility. We don't use either of these and the only thing we actually need is an opaque typedef for CONF.
* Removed code to silence OpenSSL deprecation warnings on OS XAlex Gaynor2016-03-071-16/+0
| | | | We dont' officially support compiling against platform OpenSSL on OS X
* add initial OCSP bindingsPaul Kehrer2016-01-181-0/+1
|
* consolidate the windows specific header trickery we need to doPaul Kehrer2016-01-181-4/+8
|
* Port callbacks to new static callbackChristian Heimes2016-01-071-0/+1
| | | | | | | | | | | | | | | | 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 <cheimes@redhat.com>
* don't add the NXCOMPAT and DYNAMICBASE flags if the compiler isn't msvcPaul Kehrer2016-01-011-2/+4
|
* extend pkcs7 openssl bindingsDominic Chen2015-10-131-2/+2
|
* rename env var to CRYPTOGRAPHY_OSX_NO_LINK_FLAGSPaul Kehrer2015-08-311-1/+1
|
* no need for NonePaul Kehrer2015-08-291-1/+1
|
* add support for static linking of the openssl backend on OS XPaul Kehrer2015-08-291-3/+16
|
* remove windows link type, update docsPaul Kehrer2015-07-241-14/+1
|
* remove remaining vestiges, make adding twice workGlyph2015-06-261-1/+0
|
* enable ASLR and NX on windows builds (affects 2.x only)Paul Kehrer2015-06-201-4/+3
|
* convert to cffi 1.0 precompile systemPaul Kehrer2015-06-071-0/+98