summaryrefslogtreecommitdiff
path: root/M2Crypto/SMIME.py
Commit message (Collapse)AuthorAgeFilesLines
* Move project to src/ layoutMatěj Cepl2021-01-141-291/+0
|
* Remove support for CentOS 6 and Python 2.6Matěj Cepl2020-11-201-2/+2
| | | | | | Support of CentOS 6 ends on 2020-11-30. Fixes #283
* Replace all old-style classes with the new onesMatěj Cepl2018-03-131-5/+5
|
* Wean off AppLink API'sDaniel A. Wozniak2018-02-231-1/+1
|
* Whitespace problems.Matěj Cepl2018-02-051-2/+3
|
* Add exception sending for bio_new_file and bio_free.Matěj Cepl2017-10-301-18/+4
| | | | | | | | 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().
* It is unnecessary for SMIME.smime_load_pkcs7 to raise SMIME_Error.Matěj Cepl2017-10-301-2/+0
| | | | underlying C function does it on its own.
* Adding proper exceptions to couple of pkcs7_* functions.Matěj Cepl2017-10-301-18/+2
| | | | | | | | | | * pkcs7_decrypt * pkcs7_encrypt * pkcs7_read_bio_der * pkcs7_read_bio * pkcs7_sign0 * pkcs7_sign1 * pkcs7_verify1
* Change JavaDoc parameters to the Sphinx convention.Matěj Cepl2017-09-201-1/+1
|
* Add methods to load DER-encoded PKCS#7 blobsNick Gaya2017-03-091-0/+24
|
* Clean up imports and PEP8izationMatěj Cepl2016-12-151-1/+1
| | | | | Using PyCharm "Inspect Code..." functionality I found plenty of problems.
* Add possibility to sign PKCS7 with a non-default digest.Konstantin Shemyak2016-11-281-4/+10
| | | | | | 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> ..."
* SSL and SMIME modules: Add PEP-484 type hints in comments.Matěj Cepl2016-06-301-14/+50
|
* Fix broken imports (and PEP8ization).Matěj Cepl2016-03-201-15/+25
|
* Use the new absolute import syntax to fix Python 3. [PEP 328]Craig Rodrigues2016-03-201-2/+4
| | | | | | | | | | | 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/
* Fix whitespace using suggestions from autopep8Craig Rodrigues2015-12-011-16/+15
|
* Strip trailinig spaces and expand tabs.Matěj Cepl2015-11-191-26/+26
| | | | | | | Just run $ find . -name \*.py -exec sed -r -i -e "s/\t/ /g" '{}' \; $ find . -name \*.py -exec sed -r -i -e "s/[ ]+$//" '{}' \;
* Fix syntax for raising exceptions for Python 3. [PEP 3109] [PEP 0352]Craig Rodrigues2015-11-141-8/+8
| | | | | | | | 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.
* Bug 12713, do not raise str exceptions:Heikki Toivonen2009-02-061-16/+15
| | | | | | | | | | | | | | | - 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
* Bug 7795, added back PKCS7.get0_signers (which was removed in 0.16 due to ↵Heikki Toivonen2007-06-081-0/+5
| | | | | | always causing a crash). git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@531 2715db39-9adf-0310-9c64-84f055769b4b
* Fix minor import and indentation problems found with pylint.Heikki Toivonen2006-04-281-1/+1
| | | | git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@430 2715db39-9adf-0310-9c64-84f055769b4b
* Removed SMIME.save_certs which was not implemented.Heikki Toivonen2006-04-251-3/+0
| | | | git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@426 2715db39-9adf-0310-9c64-84f055769b4b
* Fixed load_pkcs7 (was always raising exceptions). FixedHeikki Toivonen2006-04-251-5/+13
| | | | | | | 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
* Removed pkcs7_get0_signers because it was not implementedHeikki Toivonen2006-04-241-3/+0
| | | | | | | 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
* Bug 3690, added sha224, sha256, sha384 and sha512, patch by Larry Bugbee.Heikki Toivonen2006-03-251-2/+2
| | | | | | | | | 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
* Removed RCS_id, RCS_ID and _RCS_id from Python files. UnneededHeikki Toivonen2006-03-201-2/+0
| | | | | | 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
* Bug 3805, do not access global objects from __del__ methodsHeikki Toivonen2005-08-231-4/+7
| | | | | | | | | | | | 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
* Fix $ mess (diff always shows changes).Heikki Toivonen2005-06-091-1/+1
| | | | git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@299 2715db39-9adf-0310-9c64-84f055769b4b
* *** empty log message ***Ng Pheng Siong2003-10-261-6/+9
| | | | git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@197 2715db39-9adf-0310-9c64-84f055769b4b
* Prepare for import into CVS.Ng Pheng Siong2002-12-231-10/+35
| | | | git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@138 2715db39-9adf-0310-9c64-84f055769b4b
* Added support for ZSmime.Ng Pheng Siong2000-05-071-1/+7
| | | | git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@64 2715db39-9adf-0310-9c64-84f055769b4b
* Miscellaneous enhancements.Ng Pheng Siong2000-04-171-3/+44
| | | | git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@58 2715db39-9adf-0310-9c64-84f055769b4b
* Initial revisionNg Pheng Siong2000-04-011-0/+163
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@39 2715db39-9adf-0310-9c64-84f055769b4b