Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix CHANGES for 0.28.0 (too late again)0.28.1 | Matěj Cepl | 2018-02-08 | 2 | -2/+8 |
| | |||||
* | Generated C code0.28.0 | Matěj Cepl | 2018-02-08 | 1 | -95/+140 |
| | |||||
* | Update docs | Matěj Cepl | 2018-02-08 | 94 | -10500/+22810 |
| | |||||
* | Metadata for py3k port. | Matěj Cepl | 2018-02-08 | 5 | -19/+42 |
| | |||||
* | SSL package: Port to python3 | Matěj Cepl | 2018-02-08 | 7 | -51/+103 |
| | |||||
* | Prefer Err module over m2.err* functions. | Matěj Cepl | 2018-02-08 | 4 | -5/+10 |
| | | | | Fixes #119 | ||||
* | Add explicit declarations to 0 for int variables to make GCC happy. | Matěj Cepl | 2018-02-08 | 10 | -36/+36 |
| | |||||
* | PyUnicode_AsUTF8 returns const char* in Python 3.7+ | Matěj Cepl | 2018-02-08 | 2 | -5/+6 |
| | |||||
* | We use default value, no need to abort. | Matěj Cepl | 2018-02-08 | 1 | -13/+7 |
| | |||||
* | py3k version leaked memory for PyObject with the file name. | Matěj Cepl | 2018-02-08 | 3 | -19/+27 |
| | |||||
* | Comparing ASN1_Integer with SOMETHING ELSE should throw an exception. | Matěj Cepl | 2018-02-08 | 1 | -9/+9 |
| | | | | Fixes #130 | ||||
* | Missing module indentifier in the method call in EC.load_key_string_pubkey. | Matěj Cepl | 2018-02-08 | 1 | -2/+2 |
| | |||||
* | Replace use of PyString_AsString by PyUnicode_AsUTF8 shim provided by Python. | Matěj Cepl | 2018-02-08 | 3 | -4/+5 |
| | |||||
* | ssl_verify_callback: build instance with PyObject_CallObject | Markus Heiser | 2018-02-08 | 1 | -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 Cepl | 2018-02-08 | 1 | -43/+37 |
| | | | | | Make openssl_in_path into private property Remove superfluous logging. | ||||
* | Fix syntax of docstring for SSL.TwistedProtocolWrapper. | Matěj Cepl | 2018-02-08 | 1 | -3/+3 |
| | |||||
* | M2Crypto.m2urllib2: make HTTPSHandler working with py3k as well. | Matěj Cepl | 2018-02-07 | 1 | -2/+8 |
| | |||||
* | Make BIO Py3 compliant | Matěj Cepl | 2018-02-07 | 5 | -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 tests | Matěj Cepl | 2018-02-06 | 2 | -6/+7 |
| | |||||
* | Enable skipped tests in test_evp.EVPTestCase | Matěj Cepl | 2018-02-06 | 1 | -9/+6 |
| | |||||
* | Python 3.6 for reasons I don't understand throws also SystemError. | Matěj Cepl | 2018-02-06 | 1 | -2/+7 |
| | |||||
* | Make Rand.rand_file_name() return str both on py2k and py3k. | Matěj Cepl | 2018-02-05 | 1 | -2/+2 |
| | |||||
* | Deal with base64.encodestring being deprecated in py3k. | Matěj Cepl | 2018-02-05 | 2 | -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 Cepl | 2018-02-05 | 1 | -4/+5 |
| | |||||
* | For testing we need to use some deprecated functions. | Matěj Cepl | 2018-02-05 | 3 | -12/+22 |
| | | | | And it makes output of testsuite run unreadable. | ||||
* | Whitespace problems. | Matěj Cepl | 2018-02-05 | 5 | -8/+9 |
| | |||||
* | Testing tests.test_bio.CipherStreamTestCase.test_ciphers | Matěj Cepl | 2018-02-05 | 1 | -1/+13 |
| | |||||
* | Python 3.3 does not work with codecs.decode() for bytes. | Matěj Cepl | 2018-02-05 | 1 | -4/+3 |
| | |||||
* | OpenSSL in 1.1.* it returns -1 on failure of RAND_load_file(). | Matěj Cepl | 2018-02-05 | 1 | -1/+1 |
| | |||||
* | Don't use util.py3bytes when you don't have to. | Matěj Cepl | 2018-02-05 | 2 | -4/+3 |
| | |||||
* | tests.makecerts: port to python3 | Craig Rodrigues | 2018-02-05 | 1 | -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 Cepl | 2018-02-05 | 2 | -5/+9 |
| | | | | It has been deprecated in py3k. | ||||
* | tests.test_obj: x509_name_entry2tuple returns tuple of strs. | Matěj Cepl | 2018-02-05 | 1 | -3/+5 |
| | |||||
* | Generated C code | Matěj Cepl | 2018-02-01 | 1 | -24/+25 |
| | |||||
* | Do not use old buffer protocol, but PyBytes_AsStringAndSize instead. | Matěj Cepl | 2018-02-01 | 1 | -6/+6 |
| | |||||
* | Don't put PyObject into AES_*crypt functions. | Matěj Cepl | 2018-02-01 | 1 | -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 Cepl | 2018-02-01 | 4 | -5/+88 |
| | |||||
* | Function AES_crypt actually didn't return anything. | Matěj Cepl | 2018-01-31 | 1 | -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 Cepl | 2018-01-30 | 1 | -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 string | Allan Que | 2018-01-26 | 1 | -1/+2 |
| | |||||
* | setup: add upper ver for typing module requirement | Allan Que | 2018-01-23 | 1 | -2/+1 |
| | | | | * typing module is in the std lib as of python 3.5 | ||||
* | setup: search for include paths that start with ' /' | Allan Que | 2018-01-23 | 1 | -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_server | Allan Que | 2018-01-20 | 1 | -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 descriptors | Allan Que | 2018-01-20 | 1 | -5/+7 |
| | | | | Fixes #196 | ||||
* | Don't break tests outside of Linux, where /proc doesn't exist. | Matěj Cepl | 2018-01-20 | 1 | -10/+15 |
| | | | | Fixes #196 | ||||
* | Bundle-in unittest2 0.5.1 for Python 2.6. | Matěj Cepl | 2018-01-08 | 14 | -6/+2640 |
| | | | | Fixes #195 | ||||
* | Add mention of m2crypto@lists.redcrew.org email list to README.rst | Matěj Cepl | 2018-01-03 | 1 | -0/+1 |
| | |||||
* | Adding unit test for IP-based SNI connection. | Matěj Cepl | 2017-12-18 | 1 | -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 in | Shumon Huque | 2017-12-18 | 1 | -3/+7 |
| | | | | server certificate. | ||||
* | Do name checking correctly when SNI extension is used. | Shumon Huque | 2017-12-18 | 1 | -1/+5 |
| |