summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Removed the deprecated md5 default on CRL.export() (#652)Alex Gaynor2017-06-303-26/+22
| | | | | | | | | | | | | | * Removed the deprecated md5 default on CRL.export() * Doh * unused import * fixed tests * last one * py3k!!!!!
* Bend CHANGELOG.rst to our shape (#651)Hynek Schlawack2017-06-301-9/+13
| | | Add semantic newlines and parens that make functions and methods more obvious.
* Kill some commented out code and other cleanups (#649)Alex Gaynor2017-06-302-26/+5
|
* remove gibberish comment (#648)Alex Gaynor2017-06-301-2/+0
|
* Kill dead code (#647)Alex Gaynor2017-06-292-11/+5
| | | | | | | | | | * Simplify code * dead code * unused... * write imports normally
* Fixed #461 -- make the tests pass when SSLv3 isn't supported (#644)Alex Gaynor2017-06-291-3/+5
| | | | | | | | | | | | | | * Fixed #461 -- make the tests pass when SSLv3 isn't supported We no longer support OpenSSL 1.0.0, so TLSv1.2 should always be available and this code can be simplified. * Try the opposite direction? * Another shot at getting this passing * uhhh * grump
* try loading trusted certs from a list of fallbacks (#633)Paul Kehrer2017-06-294-1/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * try loading trusted certs from a list of fallbacks pyca/cryptography will shortly begin shipping a wheel. Since SSL_CTX_set_default_verify_paths uses a hardcoded path compiled into the library, this will start failing to load the proper certificates for users on many linux distributions. To avoid this we can use the Go solution of iterating over a list of potential candidates and loading it when found. * capath is lazy loaded so we need to do a lot more checks This now checks to see if env vars are set as well as seeing if the dir exists and has valid certs in it. If either of those are true (or the number of certs is > 0) it won't load the fallback. If it does do the fallback it will also attempt to load certs from a dir as a final fallback * remove an early return * this shouldn't be commented out * oops * very limited testing * sigh, can't use these py3 exceptions of course * expand the tests a bit * coverage! * don't need this now * change the approach to use a pyca/cryptography guard value * test fix * older python sometimes calls itself linux2 * flake8 * add changelog * coverage * slash opt
* dump_privatekey with FILETYPE_TEXT only supports RSA keys (#646)Paul Kehrer2017-06-292-0/+20
| | | | | | | | * dump_privatekey with FILETYPE_TEXT only supports RSA keys FILETYPE_TEXT is terrible but everyone hold their nose * also verify it's a pkey
* add to_cryptography/from_cryptography on CRL and X509Req (#645)Paul Kehrer2017-06-293-0/+99
| | | | | | * add to_cryptography/from_cryptography on CRL and X509Req * add changelog entry
* Fixed #486 -- deprecate the backwards compat names (#643)Alex Gaynor2017-06-294-43/+64
| | | | | | | | * Fixed #486 -- deprecate the backwards compat names * remove the docs for these, pretend they don't exist * CHANGELOG
* Added an API for converting X509 to/from cryptography (#640)Alex Gaynor2017-06-253-0/+54
| | | | | | * Added an API for converting X509 to/from cryptography * changelog
* Drop some dead code, cryptography has _never_ bound RAND_screen (#641)Alex Gaynor2017-06-251-16/+0
|
* update docs and and changelog for #612 (#639)Paul Kehrer2017-06-212-20/+13
| | | | | | | | * update docs and and changelog for #612 * update changelog * more detail
* Fix invalid cast from ASN1_TIME to ASN1_GENERALIZEDTIME (#612)Moriyoshi Koizumi2017-06-213-13/+5
| | | | | | * Fix invalid cast from ASN1_TIME to ASN1_GENERALIZEDTIME, which ends up with an error with LibreSSL. * Require cryptography >= 1.9
* the root cert expired, make a new one (using the same values) (#637)Paul Kehrer2017-06-111-43/+63
| | | | | | | | | | | | | * the root cert expired, make a new one (using the same values) The new one lasts 20 years. If this project is still in use in 20 years we have failed. * this is the same cert. wtf * replace the other certs we need to replace... * this too
* use a newer xcode image (which means testing on sierra) (#635)Paul Kehrer2017-06-091-2/+2
| | | | This also gets us a more up-to-date homebrew so it doesn't have to do a massive migration.
* urllib3 uses pytest now, various upgrades to the travis env (#634)Paul Kehrer2017-06-092-9/+7
| | | | | | | | | | | | | | * urllib3 uses pytest now, also use trusty * more improvements * keep modernizing * try trusty later. * revert * still try for trusty, back to the right pypy
* Drop the deprecated rand.egd function (#630)Alex Gaynor2017-05-314-60/+3
| | | | | | | | | | | | | | * Drop the deprecated rand.egd function * Removed egd tests * Removed egd docs * Document the removal * unused imports * Update CHANGELOG.rst
* Use the normal OpenSSL function instead of the crypto wrapper (#629)Alex Gaynor2017-05-311-1/+1
| | | We don’t support 0.9.8 anymore.
* Add an informative __main__.py (#620)Hynek Schlawack2017-05-136-5/+60
| | | | | | | | | | | | | | | | | | | | | | * Add an informative __main__.py Give users an easy way to figure out what versions they're running. * Why not more info! * Add test * No empty last line * Make @alex happy * DIAF Python 2.6 * Add cffi's version * Make debug a module * Add cryptography's compile-time OpenSSL
* Start new release cycle (#618)Hynek Schlawack2017-04-202-1/+26
|
* Prepare 17.0.0 (#617)Hynek Schlawack2017-04-202-2/+2
|
* Remove code for checking if EC support is present (#616)Alex Chan2017-04-201-11/+9
|
* Prepare for 17.0.0 (#615)Hynek Schlawack2017-04-205-8/+8
| | | | | | | | * Prepare for 17.0.0 Fix a bunch URLs and account for the non-existance of 16.3. * Fix codecov link
* Assorted cheap coverage wins (#602)Alex Chan2017-04-202-24/+96
|
* Fix broken links in the documentation (#611)Alex Chan2017-03-212-3/+3
| | | | | | * Fix broken link described in #610 * Fix two other broken links
* Fix up some pytest-related stuff (#601)Hynek Schlawack2017-02-183-9/+5
|
* Limit SSL_write bufsize to avoid OverflowErrors (#603)Maximilian Hils2017-02-102-1/+33
| | | | | | * limit SSL_write bufsize to avoid OverflowErrors * fix .send() truncation, add test
* Rip out the last vestages of unittest from the test suite (#599)Alex Chan2017-01-302-648/+282
|
* Python 3.6 (#600)Hynek Schlawack2017-01-304-6/+15
|
* Convert the remaining tests in test_crypto.py to be pytest-style (#593)Alex Chan2017-01-301-617/+461
|
* Convert the rest of TestConnection to be pytest-style (#594)Alex Chan2017-01-301-377/+286
|
* Patch up easy TypeError-based coverage gaps (#598)lymanZerga112017-01-301-4/+16
|
* Convert more classes in test_crypto.py to pytest-style (#591)Alex Chan2017-01-251-216/+193
|
* Prevent _PassphraseHelper.raise_if_problem() from eating exceptions (#581)Greg Bowser2017-01-254-13/+18
| | | | | | | | | | | | | | | | | | | | | | | * Modify tests to detect empty crypto.Errors from load_privatekey This reproduces #119 and #456. * Prevent _PassphraseHelper.raise_if_problem() from eating exceptions. This resolves #119, resolves #456. `_PassphraseHelper.raise_if_problem()` always flushes the OpenSSL exception queue, but does not always raise an exception. In some cases, other code attempts to raise an error from OpenSSL after `raise_if_problem()` has flushed the queue, thus causing an empty exception to be raised (i.e. `raise Error([])`). This commit modifies `_PassphraseHelper.raise_if_problem` to flush the OpenSSL error queue only if it has en exception to raise. Subsequent code that detects an error should now be able to raise an non-empty exception. * Add CHANGELOG entry for #581.
* Convert another couple of test classes to pytest-style (#586)Alex Chan2017-01-241-174/+120
|
* Convert TestContext to be pytest-style (#589)Alex Chan2017-01-241-395/+284
|
* Link to PR #580 in changelog. (#590)Cory Benfield2017-01-241-0/+1
|
* Add support for OCSP stapling. (#580)Cory Benfield2017-01-245-2/+456
| | | | | | | | | | | | | | | | | | | | | | | | * Define the OCSPCallbackHelper. * Define set_ocsp_status_callback function. * Reframe this as the "server" helper. * Add OCSP helper. * Allow clients to request OCSP * Some tests for OCSP. * Don't forget to throw callback errors. * Add changelog entry for OCSP stapling. * Require at least cryptography 1.7 * Sorry Flake8, won't happen again. * How does spelling work?
* Convert a few more small test classes to be pytest-style (#585)Alex Chan2016-12-193-80/+47
| | | | | | | | * Rewrite test_tsafe to be pytest-style * Rewrite TestRevoked to be pytest-style * Convert TestConnection to be pytest-style
* automatically set SSL_CTX_set_ecdh_auto when available (#575)Paul Kehrer2016-12-192-0/+11
|
* Convert the elliptic curve tests to be pytest-style (#576)Alex Chan2016-12-192-68/+45
|
* Document supported OpenSSL versions (#584)Hynek Schlawack2016-12-111-0/+17
| | | | | | | | * Document supported OpenSSL versions Fixes #485 * More precise version tuples
* Activate intersphinx (#583)Hynek Schlawack2016-12-112-18/+32
| | | | | | | | | | | * Activate intersphinx That adds links to CPython docs and cryptography. Also let the copyright at 2001 which seems to be just fine and gives us reproducible builds. * Appease docs builder
* Don't zero memory when we don't have to. (#578)Cory Benfield2016-11-283-7/+18
|
* We should consider *actually* testing Twisted. (#579)Cory Benfield2016-11-281-1/+1
|
* Add the ability to set a custom verification time on X509Store (#567)Thomas Sileo2016-11-225-3/+47
|
* Clarify error message (#573)Hynek Schlawack2016-11-181-2/+6
|
* Convert X509ExtTests to use pytest-style tests (#564)Alex Chan2016-11-186-160/+171
|
* Convert ALPN and SessionTests to use pytest-style tests (#570)Alex Chan2016-11-101-37/+25
| | | | | | * Convert ALPN tests to be pytest-style * Convert SessionTests to be pytest-style