| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Support of CentOS 6 ends on 2020-11-30.
Fixes #283
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Fix tests for bio_new_file ... actually, just mostly stop using it. We
should use BIO.openfile() instead anyway.
While at it, make BIO.openfile() not throwing other exceptions than
BIO.BIOError().
|
|
|
|
| |
underlying C function does it on its own.
|
|
|
|
|
|
|
|
|
|
| |
* pkcs7_decrypt
* pkcs7_encrypt
* pkcs7_read_bio_der
* pkcs7_read_bio
* pkcs7_sign0
* pkcs7_sign1
* pkcs7_verify1
|
| |
|
| |
|
|
|
|
|
| |
Using PyCharm "Inspect Code..." functionality I found plenty of
problems.
|
|
|
|
|
|
| |
An optional parameter "algo" is added to SMIME.sign().
This is what is done by "-md" option in the command
"openssl smime -sign -md <digest_name> ..."
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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/
|
| |
|
|
|
|
|
|
|
| |
Just run
$ find . -name \*.py -exec sed -r -i -e "s/\t/ /g" '{}' \;
$ find . -name \*.py -exec sed -r -i -e "s/[ ]+$//" '{}' \;
|
|
|
|
|
|
|
|
| |
See:
https://www.python.org/dev/peps/pep-3109/
https://www.python.org/dev/peps/pep-0352/
This syntax has been backported to Python 2.5 and Python 2.6.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- EVP.load_key and load_key_bio fixed to raise EVP.EVPError and BIO.BIOError
- SSL.Session.load_session fixed to raise SSL.SSLError
- SMIME.load_pkcs7, load_pkcs7_bio, smime_load_pkcs7, smime_load_pkcs7_bio,
text_crlf, text_crlf_bio fixed to raise BIO.BIOError, SMIME.PKCS7_Error and
SMIME.SMIME_Error as appropriate
Additionally fixed:
- SMIME.text_crlf and text_crlf_bio were always raising TypeError
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@663 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
| |
always causing a crash).
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@531 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
| |
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@430 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
| |
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@426 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
|
| |
potential memory leaks in load_pkcs7 and smime_load_pkcs7
(would leak bio objects if pkcs7 read failed).
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@425 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
|
| |
correctly and would in fact crash python if used. Will
probably need to reimplement it correctly soon.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@419 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
|
|
|
|
|
| |
Raise ValueError instead of AttributeError when a non-existing hash
algorithm or SSL version is asked for. The old code tried to do this
but getattr needed a third parameter for it to work correctly.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@385 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
|
|
|
|
|
|
|
|
|
|
|
|
| |
because they may have already been garbage collected.
Do not hide potential errors with try/except blocks in __del__.
Remove ASN1_BitString class because there does not appear
to be suitable public methods or defines to achieve the
functionality.
Fix typo in PKCS7 handling.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@315 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@197 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
| |
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@138 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
| |
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@64 2715db39-9adf-0310-9c64-84f055769b4b
|
|
|
|
| |
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@58 2715db39-9adf-0310-9c64-84f055769b4b
|
|
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@39 2715db39-9adf-0310-9c64-84f055769b4b
|