summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix CHANGES for 0.28.0 (too late again)0.28.1Matěj Cepl2018-02-082-2/+8
|
* Generated C code0.28.0Matěj Cepl2018-02-081-95/+140
|
* Update docsMatěj Cepl2018-02-0894-10500/+22810
|
* Metadata for py3k port.Matěj Cepl2018-02-085-19/+42
|
* SSL package: Port to python3Matěj Cepl2018-02-087-51/+103
|
* Prefer Err module over m2.err* functions.Matěj Cepl2018-02-084-5/+10
| | | | Fixes #119
* Add explicit declarations to 0 for int variables to make GCC happy.Matěj Cepl2018-02-0810-36/+36
|
* PyUnicode_AsUTF8 returns const char* in Python 3.7+Matěj Cepl2018-02-082-5/+6
|
* We use default value, no need to abort.Matěj Cepl2018-02-081-13/+7
|
* py3k version leaked memory for PyObject with the file name.Matěj Cepl2018-02-083-19/+27
|
* Comparing ASN1_Integer with SOMETHING ELSE should throw an exception.Matěj Cepl2018-02-081-9/+9
| | | | Fixes #130
* Missing module indentifier in the method call in EC.load_key_string_pubkey.Matěj Cepl2018-02-081-2/+2
|
* Replace use of PyString_AsString by PyUnicode_AsUTF8 shim provided by Python.Matěj Cepl2018-02-083-4/+5
|
* ssl_verify_callback: build instance with PyObject_CallObjectMarkus Heiser2018-02-081-11/+3
| | | | | | | | PyInstance_New is only for *old style* classes. Python 3 has no *old style* classes. To be more compliant, PyObject_CallObject should be used by calling the class (constructor). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
* Clean tests.test_ssl.BaseSSLClientTestCase class.Matěj Cepl2018-02-081-43/+37
| | | | | Make openssl_in_path into private property Remove superfluous logging.
* Fix syntax of docstring for SSL.TwistedProtocolWrapper.Matěj Cepl2018-02-081-3/+3
|
* M2Crypto.m2urllib2: make HTTPSHandler working with py3k as well.Matěj Cepl2018-02-071-2/+8
|
* Make BIO Py3 compliantMatěj Cepl2018-02-075-92/+129
| | | | | | | | | | | | Includes (among many other changes): * Fix BIO.File ... return type of BIO.readline() and close properly. That is, flush BIO.File() before closing and close also underlying system file. * Make BIO.MemoryBuffer a bit cleaner by using call to superclass. * Make BIO_eof(3) available in m2 object as well.
* Restore RSA testsMatěj Cepl2018-02-062-6/+7
|
* Enable skipped tests in test_evp.EVPTestCaseMatěj Cepl2018-02-061-9/+6
|
* Python 3.6 for reasons I don't understand throws also SystemError.Matěj Cepl2018-02-061-2/+7
|
* Make Rand.rand_file_name() return str both on py2k and py3k.Matěj Cepl2018-02-051-2/+2
|
* Deal with base64.encodestring being deprecated in py3k.Matěj Cepl2018-02-052-3/+10
| | | | | It is declared as deprecated equivalent of base64.encodebytes() in py3k, so I guess a brutal if six.PY3 is the most simple solution.
* Add longer IV to the cipher test.Matěj Cepl2018-02-051-4/+5
|
* For testing we need to use some deprecated functions.Matěj Cepl2018-02-053-12/+22
| | | | And it makes output of testsuite run unreadable.
* Whitespace problems.Matěj Cepl2018-02-055-8/+9
|
* Testing tests.test_bio.CipherStreamTestCase.test_ciphersMatěj Cepl2018-02-051-1/+13
|
* Python 3.3 does not work with codecs.decode() for bytes.Matěj Cepl2018-02-051-4/+3
|
* OpenSSL in 1.1.* it returns -1 on failure of RAND_load_file().Matěj Cepl2018-02-051-1/+1
|
* Don't use util.py3bytes when you don't have to.Matěj Cepl2018-02-052-4/+3
|
* tests.makecerts: port to python3Craig Rodrigues2018-02-051-3/+2
| | | | | | * time.time() returns a float, but we need an int * X509.as_pem() returns bytes, so pass that directly to write() * cert.as_text() returns str, but we need to pass bytes to write()
* Switch off use of urllib.URLOpener for py3k.Matěj Cepl2018-02-052-5/+9
| | | | It has been deprecated in py3k.
* tests.test_obj: x509_name_entry2tuple returns tuple of strs.Matěj Cepl2018-02-051-3/+5
|
* Generated C codeMatěj Cepl2018-02-011-24/+25
|
* Do not use old buffer protocol, but PyBytes_AsStringAndSize instead.Matěj Cepl2018-02-011-6/+6
|
* Don't put PyObject into AES_*crypt functions.Matěj Cepl2018-02-011-2/+2
| | | | | This bug is there since the first version of this file in 2004. This function NEVER worked correctly.
* Add tests for functions from SWIG/_aes.i module.Matěj Cepl2018-02-014-5/+88
|
* Function AES_crypt actually didn't return anything.Matěj Cepl2018-01-311-1/+1
| | | | | | | | | It seems that we have screwed up in aad0b7e737d7e8781d3f7a04c1b34566e5f77631 and since then AES_crypt (not mapped to any Python function, accessible only via m2 object) didn't work at all. It is interesting, that nobody complained. Fix #198
* Use /dev/fd/ instead of the original complicated construct.Matěj Cepl2018-01-301-13/+11
| | | | | | | | | | | | | | | | | | | | | | This is just a simplification of the for checking number of opened (and closed) file descriptors. Overcomplicated construct self._proc = "/proc/{0}/fd/".format(os.getpid()) should be at least simplified to self._proc = "/proc/self/fd/" (so that we don't needlesly call Python function to get PID etc. for nothing). However, when we are there already, there is nothing more simple than to use symlink (on Linux) /dev/fd -> /proc/self/fd which also happens to be compatible on all UNIX systems. For those who are still fearful, Documentation/admin-guide/devices.rst is the official documentation and it claims that this symlink is compulsory, so it must be on all Linuces.
* tests: print OpenSSL version stringAllan Que2018-01-261-1/+2
|
* setup: add upper ver for typing module requirementAllan Que2018-01-231-2/+1
| | | | * typing module is in the std lib as of python 3.5
* setup: search for include paths that start with ' /'Allan Que2018-01-231-1/+1
| | | | | * modify _get_additional_includes() to only return paths that start with ' /'. Fixes issue on OSX clang.
* test_ssl: show all proto msgs when starting s_serverAllan Que2018-01-201-1/+1
| | | | | * tries to fix HttpslibSSLSNIClientTestCase.test_IP_call() output buffer not getting flushed. This caused an AssertionError.
* test_bio_file: support OSX and BSD file descriptorsAllan Que2018-01-201-5/+7
| | | | Fixes #196
* Don't break tests outside of Linux, where /proc doesn't exist.Matěj Cepl2018-01-201-10/+15
| | | | Fixes #196
* Bundle-in unittest2 0.5.1 for Python 2.6.Matěj Cepl2018-01-0814-6/+2640
| | | | Fixes #195
* Add mention of m2crypto@lists.redcrew.org email list to README.rstMatěj Cepl2018-01-031-0/+1
|
* Adding unit test for IP-based SNI connection.Matěj Cepl2017-12-181-22/+61
| | | | | | We don’t want to deal with IPv6 right here (e.g., Debian doesn’t point 'localhost' to :::1), and besides it is not supported on some minor platforms (some claim OpenBSD).
* Add set1_host() function to explicitly specify name to check inShumon Huque2017-12-181-3/+7
| | | | server certificate.
* Do name checking correctly when SNI extension is used.Shumon Huque2017-12-181-1/+5
|