Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Take care of CRLF x LF difference even for test case. | Matěj Cepl | 2023-03-17 | 1 | -2/+2 |
| | | | | Fixes #331 | ||||
* | Switch off Twisted. | Matěj Cepl | 2023-02-04 | 1 | -0/+1 |
| | | | | Nobody really seems to care, they provide their own SSL bindings. | ||||
* | Changed required to pass tests on OpenSSL 3.0 | Petr Mensik | 2023-02-04 | 6 | -15/+45 |
| | | | | | | | Just changes to make the package pass tests. Some are just cosmetic changes. Some would require proper investigation. Fixes #310 | ||||
* | Fedora-based distros don't seem to like secp112r1. | Matěj Cepl | 2023-02-03 | 1 | -3/+3 |
| | |||||
* | Add functionality to extract EC key from public key + Update tests | Mohd Saquib | 2023-02-03 | 1 | -2/+59 |
| | | | | Fixes #124 | ||||
* | On Windows skip over a test requiring os.mkfifo | Matěj Cepl | 2023-02-02 | 1 | -0/+1 |
| | |||||
* | Skip over problematic tests on Windows | Matěj Cepl | 2023-02-02 | 1 | -0/+1 |
| | |||||
* | Remove use of parameterized in favour of unittest.subTest. | Matěj Cepl | 2023-02-01 | 2 | -78/+86 |
| | | | | Fixes #327. | ||||
* | Remove one relative import. | Matěj Cepl | 2022-07-24 | 1 | -1/+1 |
| | |||||
* | Fix according to the code review. | Matěj Cepl | 2022-07-12 | 1 | -7/+6 |
| | |||||
* | Mitigate the Bleichenbacher timing attacks in the RSA decryption API ↵ | Matěj Cepl | 2022-06-28 | 1 | -8/+7 |
| | | | | | | (CVE-2020-25657) Fixes #282 | ||||
* | test_bio_membuf: Use fork when running on MacOS | Allan Que | 2021-11-12 | 1 | -1/+20 |
| | | | | | | | Restores Python pre-3.8 multiprocessing start method when running test_readline() under MacOS. Fixes #286 | ||||
* | Remove the last use of setup.py test idiom. | Matěj Cepl | 2021-06-14 | 1 | -2/+2 |
| | |||||
* | Make support of RSA_SSLV23_PADDING optional. | Matěj Cepl | 2021-02-25 | 1 | -1/+3 |
| | | | | | | OpenSSL removes support for it in gh#openssl/openssl#14248. Fixes #294. | ||||
* | Use of RSA_SSLV23_PADDING has been deprecated. | Matěj Cepl | 2021-02-19 | 1 | -5/+0 |
| | | | | Fixes #293. | ||||
* | Replace 'from . import' with absolute imports. | Matěj Cepl | 2021-01-14 | 28 | -28/+28 |
| | |||||
* | Remove superfluous variables in test_bn. | Matěj Cepl | 2021-01-14 | 1 | -9/+9 |
| | |||||
* | Remove deprecation warnings | Matěj Cepl | 2021-01-14 | 1 | -1/+1 |
| | |||||
* | Allow verify_cb_* to be called with ok=True | Casey Deccio | 2021-01-08 | 1 | -2/+12 |
| | | | | | With https://github.com/openssl/openssl/commit/2e06150e3928daa06d5ff70c32bffad8088ebe58 OpenSSL allowed verificaton to continue on UNABLE_TO_VERIFY_LEAF_SIGNATURE | ||||
* | Use parametrized to create parametrized tests. | Matěj Cepl | 2020-12-03 | 2 | -110/+110 |
| | | | | | Stop testing 2.7 on Fedora. Remove .travis.yml, we have Github Actions working | ||||
* | Mass removal of deprecated constructs. | Matěj Cepl | 2020-12-02 | 29 | -79/+78 |
| | | | | | * Replace unittest.makeSuite with unittest.TestLoader().loadTestsFromTestCase * import unittest from relative import | ||||
* | Only use DigestSign() and DigestUpdate() with OpenSSL >= 1.1.1 | Casey Deccio | 2020-11-21 | 1 | -0/+2 |
| | |||||
* | Remove support for CentOS 6 and Python 2.6 | Matěj Cepl | 2020-11-20 | 2 | -10/+3 |
| | | | | | | Support of CentOS 6 ends on 2020-11-30. Fixes #283 | ||||
* | Remove tests.vendor module | Matěj Cepl | 2020-11-20 | 12 | -2630/+0 |
| | |||||
* | Add support for DigestSign* and DigestVerify* | Casey Deccio | 2020-11-20 | 5 | -0/+68 |
| | | | | | | | Add support for DigestSign* and DigestVerify* OpenSSL functions, for use with ED25519, etc. Allow PKey to support non-digest algorithms, such as ED25519, but keep default behaviors. Include tests for both digest and non-digest algorithms. | ||||
* | Add appveyor builds for python 3.7 and 3.8 | Daniel A. Wozniak | 2020-05-22 | 1 | -1/+1 |
| | |||||
* | base64.decodestring() was finally removed in Python 3.8. | Matěj Cepl | 2020-03-09 | 1 | -3/+9 |
| | |||||
* | NULL is legal argument for key and iv paramters of EVP_CipherInit(3) | Matěj Cepl | 2020-01-29 | 1 | -0/+5 |
| | | | | Fixes #272 | ||||
* | Extend test cert validity to 2049 | Bernhard M. Wiedemann | 2019-11-26 | 4 | -74/+74 |
| | | | | | | | | | | | | | | | | to make tests pass after 2028 Background: As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future. The usual offset is +15 years, because that is how long I expect some software will be used in some places. This showed failing tests in our package build. See https://reproducible-builds.org/ for why this matters. Note: I tested that i586 builds still pass tests on 2036-12-01 so this change introduces no year2038 problem. | ||||
* | Revert using typing module in 2.6. It is just not worthy. | Matěj Cepl | 2019-11-25 | 1 | -2422/+0 |
| | |||||
* | Make tests pass again. | Matěj Cepl | 2019-11-24 | 1 | -0/+2422 |
| | | | | | 1. Python 2.6 needs bundled-in typing module 2. Update Windows OpenSSL version. | ||||
* | tests.test_rsa: Fix typo to match for proper exception | Sebastian Andrzej Siewior | 2019-06-08 | 1 | -1/+1 |
| | | | | Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> | ||||
* | Limit tests.test_rsa.RSATestCase.test_public_encrypt just to OpenSSL which ↵ | Matěj Cepl | 2019-06-07 | 1 | -3/+5 |
| | | | | | | sustains it. Fixes #258 | ||||
* | Remove duplicate call of the error code. | Matěj Cepl | 2019-06-07 | 1 | -2/+0 |
| | |||||
* | Be resilient against the situation when no erorr happened. | Matěj Cepl | 2019-05-30 | 2 | -0/+29 |
| | | | | Fixes #258. | ||||
* | tests/test_ssl: use -ciphercuites for TLS1.3 cipher in openssl1.1 | Sebastian Andrzej Siewior | 2019-03-07 | 1 | -1/+2 |
| | | | | | | | | | | | | The -cipher can not be used in OpenSSL 1.1.b+ for TLS1.3 cipher since openssl upstream commit 1c31fe7eb093a ("Ignore cipher suites when setting cipher list"). Use -ciphersuites for TLS1.3 cipher as documented. Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Fixes #251 | ||||
* | Fix openssl 1.1 devel installation. | Matěj Cepl | 2018-11-08 | 2 | -21/+35 |
| | |||||
* | Send the last message of the handshake before closing the connection | Kurt Roeckx | 2018-10-30 | 1 | -0/+3 |
| | |||||
* | Create 2048 bit test keys | Kurt Roeckx | 2018-10-07 | 14 | -307/+521 |
| | |||||
* | Fix test_26_compat on OSX | Daniel Wozniak | 2018-10-03 | 1 | -1/+1 |
| | |||||
* | Add test that sets a serial using a very long int | Daniel Wozniak | 2018-10-02 | 1 | -0/+6 |
| | |||||
* | Make ctrl_cmd_string method more robust against type of arguments. | Matěj Cepl | 2018-09-05 | 1 | -0/+5 |
| | | | | | | | | Technically speaking we prescribe in the type string that the paramteres should be str, but users don't like to care about the type of parameters. Fixes #228 | ||||
* | Taken a longer millisecond timeout to avoid handling rounding. | Konstantin Shemyak | 2018-07-24 | 1 | -11/+13 |
| | | | | | | | | | Linux rounds microseconds in the timeouts up to the HZ kernel parameter. To avoid checking for rounded values, pick the timeout long enough so that it is whole number of HZ for any reasonable HZ value. By doing this, we also do not need to handle separately Windows rounding microseconds down to milliseconds. | ||||
* | We somehow forgot to run test_util tests. | Matěj Cepl | 2018-07-24 | 2 | -11/+6 |
| | |||||
* | Deleted duplicate test from a wrong location | Konstantin Shemyak | 2018-07-23 | 1 | -23/+0 |
| | |||||
* | Show detailed OpenSSL error messages | Konstantin Shemyak | 2018-07-23 | 3 | -0/+147 |
| | | | | | | | | | | | | | | When OpenSSL encounters an error, M2Crypto prints only the "reason string" (given by ERR_reason_error_string()). This string often contains only very generic message. For example, for all certificate verification errors, the string is the same "certificate verify error". OpenSSL applications (e.g. the command-line utilities from OpenSSL distribution) additionally show "optional text message" as given by ERR_get_error_line_data(). This message contains more detailed error reason, such as for example "certificate revoked". Added this message (if given by OpenSSL) to the Python error text. | ||||
* | Enabled timeout case with microsecs and fixed for Windows | Andreas Maier | 2018-06-08 | 3 | -3/+156 |
| | |||||
* | PEP8isation | Matěj Cepl | 2018-03-20 | 28 | -156/+77 |
| | | | | | | | Specially replace complicated construct with unittest2 to one import to M2Crypto top module. Also, Rand.load_file should have first parameter as bytes(), not str(). | ||||
* | Replace util.py3{bytes,str} with six.ensure_{binary,text} | Matěj Cepl | 2018-03-19 | 4 | -26/+29 |
| | |||||
* | Do not by-pass a potential transfer decoding in m2urllib2 | Marcus Huewe | 2018-03-13 | 2 | -0/+33 |
| | | | | | | | | | | | For instance, without this patch no chunk decoding is performed, even if the HTTP response includes a "Transfer-Encoding: chunked" header (only affects the python3 code path). To fix this, "recv_into" has to call http.client.HTTPResponse.readinto, which does the corresponding transfer decoding. Thanks to Marco Strigl <mstrigl@suse.com> for reporting and helping to debug this issue. |