mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-05-23 22:02:13 +00:00
Merge remote-tracking branch 'public/pr/1808' into mbedtls-2.1
This commit is contained in:
commit
57e9fe2df4
|
@ -13,6 +13,8 @@ Bugfix
|
||||||
was creating an invalid ASN.1 tag. Found by Aryeh R. Fixes #1257
|
was creating an invalid ASN.1 tag. Found by Aryeh R. Fixes #1257
|
||||||
* Remove unused headers included in x509.c. Found by Chris Hanson and fixed
|
* Remove unused headers included in x509.c. Found by Chris Hanson and fixed
|
||||||
by Brendan Shanks. Part of a fix for #992.
|
by Brendan Shanks. Part of a fix for #992.
|
||||||
|
* Fix compilation error when MBEDTLS_ARC4_C is disabled and
|
||||||
|
MBEDTLS_CIPHER_NULL_CIPHER is enabled. Found by TrinityTonic in #1719.
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
* Change the shebang line in Perl scripts to look up perl in the PATH.
|
* Change the shebang line in Perl scripts to look up perl in the PATH.
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
#define MBEDTLS_CIPHER_MODE_WITH_PADDING
|
#define MBEDTLS_CIPHER_MODE_WITH_PADDING
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_ARC4_C)
|
#if defined(MBEDTLS_ARC4_C) || defined(MBEDTLS_CIPHER_NULL_CIPHER)
|
||||||
#define MBEDTLS_CIPHER_MODE_STREAM
|
#define MBEDTLS_CIPHER_MODE_STREAM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -45,10 +45,6 @@
|
||||||
#include "mbedtls/ccm.h"
|
#include "mbedtls/ccm.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_ARC4_C) || defined(MBEDTLS_CIPHER_NULL_CIPHER)
|
|
||||||
#define MBEDTLS_CIPHER_MODE_STREAM
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Implementation that should never be optimized out by the compiler */
|
/* Implementation that should never be optimized out by the compiler */
|
||||||
static void mbedtls_zeroize( void *v, size_t n ) {
|
static void mbedtls_zeroize( void *v, size_t n ) {
|
||||||
volatile unsigned char *p = v; while( n-- ) *p++ = 0;
|
volatile unsigned char *p = v; while( n-- ) *p++ = 0;
|
||||||
|
|
Loading…
Reference in a new issue