mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 14:22:28 +00:00
Do work on curl/mbedtls/zstd
This change fixes stderr to be unbuffered. Added hardware AES on ARM64 to help safeguard against timing attacks. The curl.com command will be somewhat more pleasant to use.
This commit is contained in:
parent
a186143f62
commit
0d3c1c8b1a
37 changed files with 1565 additions and 290 deletions
4
third_party/mbedtls/getalertdescription.c
vendored
4
third_party/mbedtls/getalertdescription.c
vendored
|
@ -1,4 +1,4 @@
|
|||
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:4;coding:utf-8 -*-│
|
||||
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:2;coding:utf-8 -*-│
|
||||
│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│
|
||||
╞══════════════════════════════════════════════════════════════════════════════╡
|
||||
│ Copyright The Mbed TLS Contributors │
|
||||
|
@ -24,7 +24,7 @@
|
|||
* @see RFC5246 §7.2
|
||||
*/
|
||||
const char *GetAlertDescription(unsigned char x) {
|
||||
static char buf[21];
|
||||
static _Thread_local char buf[21];
|
||||
switch (x) {
|
||||
case MBEDTLS_SSL_ALERT_MSG_CLOSE_NOTIFY: /* 0 */
|
||||
return "close_notify";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue