mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Make exciting improvements
- Add Lua backtraces to redbean! - Wipe serving keys after redbean forks - Audit redbean to remove free via exit - Log SSL client ciphersuite preferences - Increase ASAN malloc() backtrace depth - Make GetSslRoots() behave as a singleton - Move leaks.c from LIBC_TESTLIB to LIBC_LOG - Add undocumented %n to printf() for newlines - Fix redbean memory leak reindexing inode change - Fix redbean memory leak with Fetch() DNS object - Restore original environ after __cxa_finalize() - Make backtrace always work after __cxa_finalize() - Introduce COUNTEXPR() diagnostic / benchmark tool - Fix a few more instances of errno being clobbered - Consolidate the ANSI color disabling internal APIs
This commit is contained in:
parent
f5831a62fa
commit
af645fcbec
61 changed files with 1354 additions and 814 deletions
4
third_party/python/Modules/tlsmodule.c
vendored
4
third_party/python/Modules/tlsmodule.c
vendored
|
@ -62,7 +62,6 @@ struct Tls {
|
|||
|
||||
static PyObject *TlsError;
|
||||
static PyTypeObject tls_type;
|
||||
static mbedtls_x509_crt *roots;
|
||||
|
||||
static PyObject *
|
||||
SetTlsError(int rc)
|
||||
|
@ -130,7 +129,7 @@ tls_new(int fd, const char *host, PyObject *todo)
|
|||
MBEDTLS_SSL_TRANSPORT_STREAM,
|
||||
MBEDTLS_SSL_PRESET_DEFAULT);
|
||||
mbedtls_ssl_conf_rng(&self->conf, mbedtls_ctr_drbg_random, &self->rng);
|
||||
mbedtls_ssl_conf_ca_chain(&self->conf, roots, 0);
|
||||
mbedtls_ssl_conf_ca_chain(&self->conf, GetSslRoots(), 0);
|
||||
/* mbedtls_ssl_conf_dbg(&self->conf, TlsDebug, 0); */
|
||||
/* mbedtls_debug_threshold = 5; */
|
||||
if (host && *host) {
|
||||
|
@ -493,7 +492,6 @@ PyInit_tls(void)
|
|||
TlsError = PyErr_NewException("tls.TlsError", NULL, NULL);
|
||||
Py_INCREF(TlsError);
|
||||
PyModule_AddObject(m, "TlsError", TlsError);
|
||||
roots = GetSslRoots();
|
||||
return m;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue