| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Just changes to make the package pass tests. Some are just cosmetic
changes. Some would require proper investigation.
Fixes #310
|
| |
|
|
|
|
|
|
| |
(CVE-2020-25657)
Fixes #282
|
|
|
|
|
|
| |
OpenSSL removes support for it in gh#openssl/openssl#14248.
Fixes #294.
|
|
|
|
| |
Fixes #293.
|
| |
|
|
|
|
|
| |
* Replace unittest.makeSuite with unittest.TestLoader().loadTestsFromTestCase
* import unittest from relative import
|
|
|
|
| |
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
|
|
|
|
|
|
| |
sustains it.
Fixes #258
|
| |
|
|
|
|
|
|
|
| |
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().
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(this was the original comment on removing util.py3{bytes,str}
describing my plans for future)
It seems to that this abstraction goes exactly wrong way. The
primary goal of py3k/py2k string abstraction should be IMHO the
elimination of the ambiguous py2k str() object. Everything should be
(using py2 terminology) either unicode() or bytes(), and when we
start working on rebasing the ``python3`` branch on top of ``six``,
we should spend all our effort on clarification between these two
types and elimination of str(). Which seems to me is exactly what
six.u() and six.b() methods do, so I would use them.
Also eliminate util.h2b and util.py3ord
|
|
|
|
|
|
|
|
|
|
|
| |
I used the output of "2to3 -f import M2Crypto" to figure out
which imports needed to be fixed.
In addition, I added "from __future__ import absolute_import"
to all files that I touched. This brings in the new import behavior,
and works as far back as Python 2.5.0a1. See:
https://docs.python.org/3/library/__future__.html
https://www.python.org/dev/peps/pep-0328/
|
| |
|
|
|
|
|
|
|
|
| |
assertEquals() is a deprecated alias for assertEqual():
https://docs.python.org/3/library/unittest.html#deprecated-aliases
The alias exists as far back as Python 2.6:
https://hg.python.org/cpython/file/v2.6.2/Lib/unittest.py#l386
|
| |
|
|
|
|
| |
Fixes #64
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
More comments and rationale is at
https://bugzilla.redhat.com/show_bug.cgi?id=565662
* Some algorithms are not available in FIPS mode, in particular MD5.
* Ignoring the error returned by HMAC_Init IIRC results in a NULL
deference.
* FIPS mode prohibits 512-bit RSA keys, so the tests have to increase
the key length.
* MD5 is prohibited in FIPS mode, had to use a different algorithm (and
different known answers) for testing HMAC.
* RC4 is unavailable in FIPS mode. Should probably use @unittest.skip
nowadays.
* The same goes for RIPEMD-160
|
|
|
|
| |
Fixes #48
|
|
|
|
|
|
| |
disabling RSA PSS methods when using such old OpenSSL.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@715 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
| |
OpenSSL. Make the tests use the same digest algorithm as we are testing the signature with. These fix the tests for 64-bit platforms.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@697 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
| |
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@692 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
| |
Koniosis.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@688 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
| |
prematurely on some RHEL machines where OpenSSL was compiled in FIPS mode.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@682 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
| |
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@672 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
|
|
|
|
| |
fault
when trying to encrypt using public key from X509 certificate, by Ben Timby.
This cascaded into fixing RSA_pub save_key* methods, and some unit tests as well.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@612 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
|
|
| |
for example:
python setup.py test --test-suite=tests.test_x509 -q
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@504 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
| |
tests.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@491 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
| |
versions guards in place.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@433 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
| |
original patch by Matt Rodriguez.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@427 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
| |
bloat, and made working with diffs more difficult than it needed to.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@383 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
| |
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@299 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
| |
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@141 2715db39-9adf-0310-9c64-84f055769b4b
|
|
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@79 2715db39-9adf-0310-9c64-84f055769b4b
|