summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Take care of CRLF x LF difference even for test case.Matěj Cepl2023-03-171-2/+2
| | | | Fixes #331
* Switch off Twisted.Matěj Cepl2023-02-041-0/+1
| | | | Nobody really seems to care, they provide their own SSL bindings.
* Changed required to pass tests on OpenSSL 3.0Petr Mensik2023-02-046-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 Cepl2023-02-031-3/+3
|
* Add functionality to extract EC key from public key + Update testsMohd Saquib2023-02-031-2/+59
| | | | Fixes #124
* On Windows skip over a test requiring os.mkfifoMatěj Cepl2023-02-021-0/+1
|
* Skip over problematic tests on WindowsMatěj Cepl2023-02-021-0/+1
|
* Remove use of parameterized in favour of unittest.subTest.Matěj Cepl2023-02-012-78/+86
| | | | Fixes #327.
* Remove one relative import.Matěj Cepl2022-07-241-1/+1
|
* Fix according to the code review.Matěj Cepl2022-07-121-7/+6
|
* Mitigate the Bleichenbacher timing attacks in the RSA decryption API ↵Matěj Cepl2022-06-281-8/+7
| | | | | | (CVE-2020-25657) Fixes #282
* test_bio_membuf: Use fork when running on MacOSAllan Que2021-11-121-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 Cepl2021-06-141-2/+2
|
* Make support of RSA_SSLV23_PADDING optional.Matěj Cepl2021-02-251-1/+3
| | | | | | OpenSSL removes support for it in gh#openssl/openssl#14248. Fixes #294.
* Use of RSA_SSLV23_PADDING has been deprecated.Matěj Cepl2021-02-191-5/+0
| | | | Fixes #293.
* Replace 'from . import' with absolute imports.Matěj Cepl2021-01-1428-28/+28
|
* Remove superfluous variables in test_bn.Matěj Cepl2021-01-141-9/+9
|
* Remove deprecation warningsMatěj Cepl2021-01-141-1/+1
|
* Allow verify_cb_* to be called with ok=TrueCasey Deccio2021-01-081-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 Cepl2020-12-032-110/+110
| | | | | Stop testing 2.7 on Fedora. Remove .travis.yml, we have Github Actions working
* Mass removal of deprecated constructs.Matěj Cepl2020-12-0229-79/+78
| | | | | * Replace unittest.makeSuite with unittest.TestLoader().loadTestsFromTestCase * import unittest from relative import
* Only use DigestSign() and DigestUpdate() with OpenSSL >= 1.1.1Casey Deccio2020-11-211-0/+2
|
* Remove support for CentOS 6 and Python 2.6Matěj Cepl2020-11-202-10/+3
| | | | | | Support of CentOS 6 ends on 2020-11-30. Fixes #283
* Remove tests.vendor moduleMatěj Cepl2020-11-2012-2630/+0
|
* Add support for DigestSign* and DigestVerify*Casey Deccio2020-11-205-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.8Daniel A. Wozniak2020-05-221-1/+1
|
* base64.decodestring() was finally removed in Python 3.8.Matěj Cepl2020-03-091-3/+9
|
* NULL is legal argument for key and iv paramters of EVP_CipherInit(3)Matěj Cepl2020-01-291-0/+5
| | | | Fixes #272
* Extend test cert validity to 2049Bernhard M. Wiedemann2019-11-264-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 Cepl2019-11-251-2422/+0
|
* Make tests pass again.Matěj Cepl2019-11-241-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 exceptionSebastian Andrzej Siewior2019-06-081-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 Cepl2019-06-071-3/+5
| | | | | | sustains it. Fixes #258
* Remove duplicate call of the error code.Matěj Cepl2019-06-071-2/+0
|
* Be resilient against the situation when no erorr happened.Matěj Cepl2019-05-302-0/+29
| | | | Fixes #258.
* tests/test_ssl: use -ciphercuites for TLS1.3 cipher in openssl1.1Sebastian Andrzej Siewior2019-03-071-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 Cepl2018-11-082-21/+35
|
* Send the last message of the handshake before closing the connectionKurt Roeckx2018-10-301-0/+3
|
* Create 2048 bit test keysKurt Roeckx2018-10-0714-307/+521
|
* Fix test_26_compat on OSXDaniel Wozniak2018-10-031-1/+1
|
* Add test that sets a serial using a very long intDaniel Wozniak2018-10-021-0/+6
|
* Make ctrl_cmd_string method more robust against type of arguments.Matěj Cepl2018-09-051-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 Shemyak2018-07-241-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 Cepl2018-07-242-11/+6
|
* Deleted duplicate test from a wrong locationKonstantin Shemyak2018-07-231-23/+0
|
* Show detailed OpenSSL error messagesKonstantin Shemyak2018-07-233-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 WindowsAndreas Maier2018-06-083-3/+156
|
* PEP8isationMatěj Cepl2018-03-2028-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 Cepl2018-03-194-26/+29
|
* Do not by-pass a potential transfer decoding in m2urllib2Marcus Huewe2018-03-132-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.