mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-02 10:42:27 +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
8
third_party/mbedtls/ssl_ciphersuites.c
vendored
8
third_party/mbedtls/ssl_ciphersuites.c
vendored
|
@ -15,12 +15,16 @@
|
|||
│ See the License for the specific language governing permissions and │
|
||||
│ limitations under the License. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/mbedtls/ssl_ciphersuites.h"
|
||||
#include "libc/nexgen32e/x86feature.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/sysv/consts/auxv.h"
|
||||
#include "libc/sysv/consts/hwcap.h"
|
||||
#include "third_party/mbedtls/aes.h"
|
||||
#include "third_party/mbedtls/cipher.h"
|
||||
#include "third_party/mbedtls/common.h"
|
||||
#include "third_party/mbedtls/platform.h"
|
||||
#include "third_party/mbedtls/ssl.h"
|
||||
#include "third_party/mbedtls/ssl_ciphersuites.h"
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
Mbed TLS (Apache 2.0)\\n\
|
||||
|
@ -1500,7 +1504,7 @@ const uint16_t *mbedtls_ssl_list_ciphersuites( void )
|
|||
const uint16_t *p;
|
||||
uint16_t *q;
|
||||
|
||||
if( X86_HAVE( AES ) )
|
||||
if( mbedtls_aes_uses_hardware() )
|
||||
p = ciphersuite_preference;
|
||||
else
|
||||
p = ciphersuite_preference_nehalem;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue