- 23 Eyl, 2018 1 kayıt (commit)
-
-
Christian Heimes yazdı
Add SSLContext.post_handshake_auth and SSLSocket.verify_client_post_handshake for TLS 1.3 post-handshake authentication. Signed-off-by: Christian Heimes <christian@python.org>q https://bugs.python.org/issue34670
-
- 22 Eyl, 2018 1 kayıt (commit)
-
-
Nathaniel J. Smith yazdı
OpenSSL follows the convention that whenever you call a function, it returns an error indicator value; and if this value is negative, then you need to go look at the actual error code to see what happened. Commit c6fd1c1c introduced a small mistake in _ssl__SSLSocket_shutdown_impl: instead of checking whether the error indicator was negative, it started checking whether the actual error code was negative, and it turns out that the error codes are never negative. So the effect was that 'unwrap()' lost the ability to raise SSL errors. https://bugs.python.org/issue34759
-
- 07 Eyl, 2018 1 kayıt (commit)
-
-
Victor Stinner yazdı
* Replace "master process" with "parent process" * Replace "master option mappings" with "main option mappings" * Replace "master pattern object" with "main pattern object" * ssl: replace "master" with "server" * And some other similar changes
-
- 30 Agu, 2018 1 kayıt (commit)
-
-
Christian Heimes yazdı
Update all test certs and keys to use future proof crypto settings: * 3072 bit RSA keys * SHA-256 signature Signed-off-by:
Christian Heimes <christian@python.org>
-
- 14 Agu, 2018 1 kayıt (commit)
-
-
Christian Heimes yazdı
Downstream vendors have started to deprecate weak keys. Update all RSA keys and DH params to use at least 2048 bits. Finite field DH param file use RFC 7919 values, generated with certtool --get-dh-params --sec-param=high Signed-off-by:
Christian Heimes <christian@python.org>
-
- 12 Haz, 2018 1 kayıt (commit)
-
-
Ned Deily yazdı
-
- 11 Haz, 2018 1 kayıt (commit)
-
-
Christian Heimes yazdı
The documentation for CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED were misleading and partly wrong. It fails to explain that OpenSSL behaves differently in client and server mode. Also OpenSSL does validate the cert chain everytime. With SSL_VERIFY_NONE a validation error is not fatal in client mode and does not request a client cert in server mode. Also discourage people from using CERT_OPTIONAL in client mode.
-
- 23 May, 2018 1 kayıt (commit)
-
-
Christian Heimes yazdı
TLS 1.3 behaves slightly different than TLS 1.2. Session tickets and TLS client cert auth are now handled after the initialy handshake. Tests now either send/recv data to trigger session and client certs. Or tests ignore ConnectionResetError / BrokenPipeError on the server side to handle clients that force-close the socket fd. To test TLS 1.3, OpenSSL 1.1.1-pre7-dev (git master + OpenSSL PR https://github.com/openssl/openssl/pull/6340) is required. Signed-off-by:
Christian Heimes <christian@python.org>
-
- 22 May, 2018 1 kayıt (commit)
-
-
Christian Heimes yazdı
Change TLS 1.3 cipher suite settings for compatibility with OpenSSL 1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 cipers enabled by default. Also update multissltests and Travis config to test with latest OpenSSL. Signed-off-by:
Christian Heimes <christian@python.org>
-
- 16 May, 2018 1 kayıt (commit)
-
-
Petr Viktorin yazdı
* test_ssl: Remove skip_if_broken_ubuntu_ssl We no longer support OpenSSL 0.9.8.15.15. * bpo-28167: Remove platform.linux_distribution
-
- 25 Mar, 2018 1 kayıt (commit)
-
-
Christian Heimes yazdı
Harden ssl module against LibreSSL CVE-2018-8970. X509_VERIFY_PARAM_set1_host() is called with an explicit namelen. A new test ensures that NULL bytes are not allowed. Signed-off-by:
Christian Heimes <christian@python.org>
-
- 27 Şub, 2018 3 kayıt (commit)
-
-
Christian Heimes yazdı
OpenSSL 1.1 has introduced a new API to set the minimum and maximum supported protocol version. The API is easier to use than the old OP_NO_TLS1 option flags, too. Since OpenSSL has no call to set minimum version to highest supported, the implementation emulate maximum_version = MINIMUM_SUPPORTED and minimum_version = MAXIMUM_SUPPORTED by figuring out the minumum and maximum supported version at compile time. Signed-off-by:
Christian Heimes <christian@python.org>
-
Christian Heimes yazdı
Direct instantiation of SSLSocket and SSLObject objects is now prohibited. The constructors were never documented, tested, or designed as public constructors. The SSLSocket constructor had limitations. For example it was not possible to enabled hostname verification except was ssl_version=PROTOCOL_TLS_CLIENT with cert_reqs=CERT_REQUIRED. SSLContext.wrap_socket() and SSLContext.wrap_bio are the recommended API to construct SSLSocket and SSLObject instances. ssl.wrap_socket() is also deprecated. The only test case for direct instantiation was added a couple of days ago for IDNA testing. Signed-off-by:
Christian Heimes <christian@python.org>
-
Christian Heimes yazdı
* bpo-32947: OpenSSL 1.1.1-pre1 / TLS 1.3 fixes Misc fixes and workarounds for compatibility with OpenSSL 1.1.1-pre1 and TLS 1.3 support. With OpenSSL 1.1.1, Python negotiates TLS 1.3 by default. Some test cases only apply to TLS 1.2. Other tests currently fail because the threaded or async test servers stop after failure. I'm going to address these issues when OpenSSL 1.1.1 reaches beta. OpenSSL 1.1.1 has added a new option OP_ENABLE_MIDDLEBOX_COMPAT for TLS 1.3. The feature is enabled by default for maximum compatibility with broken middle boxes. Users should be able to disable the hack and CPython's test suite needs it to verify default options. Signed-off-by:
Christian Heimes <christian@python.org>
-
- 25 Şub, 2018 1 kayıt (commit)
-
-
Christian Heimes yazdı
Add tests to verify connection with secp384r1 ECDH curves.
-
- 24 Şub, 2018 3 kayıt (commit)
-
-
Christian Heimes yazdı
* The SSLSocket is no longer implemented on top of SSLObject to avoid an extra level of indirection. * Owner and session are now handled in the internal constructor. * _ssl._SSLSocket now uses the same method names as SSLSocket and SSLObject. * Channel binding type check is now handled in C code. Channel binding is always available. The patch also changes the signature of SSLObject.__init__(). In my opinion it's fine. A SSLObject is not a user-constructable object. SSLContext.wrap_bio() is the only valid factory.
-
Christian Heimes yazdı
ssl.match_hostname() has been simplified and no longer depends on re and ipaddress module for wildcard and IP addresses. Error reporting for invalid wildcards has been improved. Signed-off-by:
Christian Heimes <christian@python.org>
-
Christian Heimes yazdı
Previously, the ssl module stored international domain names (IDNs) as U-labels. This is problematic for a number of reasons -- for example, it made it impossible for users to use a different version of IDNA than the one built into Python. After this change, we always convert to A-labels as soon as possible, and use them for all internal processing. In particular, server_hostname attribute is now an A-label, and on the server side there's a new sni_callback that receives the SNI servername as an A-label rather than a U-label.
-
- 29 Ock, 2018 2 kayıt (commit)
-
-
Christian Heimes yazdı
Add test cases for IDNA 2003 and 2008 host names. IDNA 2003 internationalized host names are working since bpo-31399 has landed. IDNA 2008 deviations are still broken and will be fixed in another patch. Signed-off-by:
Christian Heimes <christian@python.org>
-
Christian Heimes yazdı
Until now Python used a hard coded white list of default TLS cipher suites. The old approach has multiple downsides. OpenSSL's default selection was completely overruled. Python did neither benefit from new cipher suites (ChaCha20, TLS 1.3 suites) nor blacklisted cipher suites. For example we used to re-enable 3DES. Python now defaults to OpenSSL DEFAULT cipher suite selection and black lists all unwanted ciphers. Downstream vendors can override the default cipher list with --with-ssl-default-suites. Signed-off-by:
Christian Heimes <christian@python.org>
-
- 27 Ock, 2018 1 kayıt (commit)
-
-
Christian Heimes yazdı
bpo-31399: Let OpenSSL verify hostname and IP The ssl module now uses OpenSSL's X509_VERIFY_PARAM_set1_host() and X509_VERIFY_PARAM_set1_ip() API to verify hostname and IP addresses. * Remove match_hostname calls * Check for libssl with set1_host, libssl must provide X509_VERIFY_PARAM_set1_host() * Add documentation for OpenSSL 1.0.2 requirement * Don't support OpenSSL special mode with a leading dot, e.g. ".example.org" matches "www.example.org". It's not standard conform. * Add hostname_checks_common_name Signed-off-by:
Christian Heimes <christian@python.org>
-
- 20 Ock, 2018 1 kayıt (commit)
-
-
Christian Heimes yazdı
Add test certs and test for ECDSA cert and EC/RSA dual mode. I'm also adding certs for IDNA 2003/2008 tests and simplify some test data handling. Signed-off-by:
Christian Heimes <christian@python.org>
-
- 14 Ara, 2017 1 kayıt (commit)
-
-
Mike yazdı
* Fix multiple typos in code comments * Add spacing in comments (test_logging.py, test_math.py) * Fix spaces at the beginning of comments in test_logging.py
-
- 26 Kas, 2017 1 kayıt (commit)
-
-
Mandeep Singh yazdı
Wildcard is now supported in hostname when it is one and only character in the leftmost segment.
-
- 15 Eyl, 2017 3 kayıt (commit)
-
-
Christian Heimes yazdı
Signed-off-by:
Christian Heimes <christian@python.org>
-
Christian Heimes yazdı
Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER. Signed-off-by:
Christian Heimes <christian@python.org>
-
Christian Heimes yazdı
SSLSocket.wrap_bio() and SSLSocket.wrap_socket() hard-code SSLObject and SSLSocket as return types. In the light of future deprecation of ssl.wrap_socket() module function and direct instantiation of SSLSocket, it is desirable to make the return type of SSLSocket.wrap_bio() and SSLSocket.wrap_socket() customizable. Signed-off-by:
Christian Heimes <christian@python.org>
-
- 11 Eyl, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
The timeout parameter was not used.
-
- 08 Eyl, 2017 2 kayıt (commit)
-
-
Christian Heimes yazdı
The SSL module now raises SSLCertVerificationError when OpenSSL fails to verify the peer's certificate. The exception contains more information about the error. Original patch by Chi Hsuan Yen Signed-off-by:
Christian Heimes <christian@python.org>
-
Christian Heimes yazdı
* bpo-29136: Add TLS 1.3 support TLS 1.3 introduces a new, distinct set of cipher suites. The TLS 1.3 cipher suites don't overlap with cipher suites from TLS 1.2 and earlier. Since Python sets its own set of permitted ciphers, TLS 1.3 handshake will fail as soon as OpenSSL 1.1.1 is released. Let's enable the common AES-GCM and ChaCha20 suites. Additionally the flag OP_NO_TLSv1_3 is added. It defaults to 0 (no op) with OpenSSL prior to 1.1.1. This allows applications to opt-out from TLS 1.3 now. Signed-off-by:
Christian Heimes <christian@python.org>
-
- 07 Eyl, 2017 2 kayıt (commit)
-
-
Christian Heimes yazdı
* bpo-27340: Use memoryview in SSLSocket.sendall() SSLSocket.sendall() now uses memoryview to create slices of data. This fix support for all bytes-like object. It is also more efficient and avoids costly copies. Signed-off-by:
Christian Heimes <christian@python.org> * Cast view to bytes, fix typo Signed-off-by:
Christian Heimes <christian@python.org>
-
Antoine Pitrou yazdı
* Remove Setup.config * Always define WITH_THREAD for compatibility.
-
- 06 Eyl, 2017 1 kayıt (commit)
-
-
Christian Heimes yazdı
SSLObject.version() now correctly returns None when handshake over BIO has not been performed yet. Signed-off-by:
Christian Heimes <christian@python.org>
-
- 05 Eyl, 2017 1 kayıt (commit)
-
-
Christian Heimes yazdı
In case PROTOCOL_TLS_SERVER is used for both client context and server context, the test thread dies with OSError. Catch OSError to avoid traceback on sys.stderr Signed-off-by:
Christian Heimes <christian@python.org>
-
- 04 Eyl, 2017 1 kayıt (commit)
-
-
Christian Heimes yazdı
Signed-off-by:
Christian Heimes <christian@python.org>
-
- 01 Eyl, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
Store exceptions as string rather than object to prevent reference cycles which cause leaking dangling threads.
-
- 15 Agu, 2017 1 kayıt (commit)
-
-
Christian Heimes yazdı
OpenSSL 1.1.0 to 1.1.0e aborted the handshake when server and client could not agree on a protocol using ALPN. OpenSSL 1.1.0f changed that. The most recent version now behaves like OpenSSL 1.0.2 again. The ALPN callback can pretend to not been set. See https://github.com/openssl/openssl/pull/3158 for more details Signed-off-by:
Christian Heimes <christian@python.org>
-
- 17 Tem, 2017 1 kayıt (commit)
-
-
Steve Dower yazdı
Updates ssl and tkinter projects to use pre-built externals
-
- 09 Haz, 2017 1 kayıt (commit)
-
-
Nathaniel J. Smith yazdı
See discussion: https://github.com/python/cpython/pull/1992#issuecomment-307024778
-
- 02 May, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
AsyncoreEchoServer of test_ssl now calls asyncore.close_all(ignore_all=True) to ensure that asyncore.socket_map is cleared once the test completes, even if ConnectionHandler was not correctly unregistered. Fix the following warning: Warning -- asyncore.socket_map was modified by test_ssl Before: {} After: {6: <test.test_ssl.AsyncoreEchoServer.EchoServer.ConnectionHandler>}
-