Merge remote-tracking branch 'origin/pr/2053' into development
* origin/pr/2053: Clarify ChangeLog entry for fix to #1628 Add Changelog entry for clang test-ref-configs.pl fix Enable more compiler warnings in tests/Makefile Change file scoping of test helpers.function
This commit is contained in:
commit
aada0c7fd0
3 changed files with 10 additions and 8 deletions
|
@ -63,6 +63,8 @@ Bugfix
|
||||||
* Fix multiple X.509 functions previously returning ASN.1 low-level error
|
* Fix multiple X.509 functions previously returning ASN.1 low-level error
|
||||||
codes to always wrap these codes into X.509 high level error codes before
|
codes to always wrap these codes into X.509 high level error codes before
|
||||||
returning. Fixes #2431.
|
returning. Fixes #2431.
|
||||||
|
* Fix to allow building test suites with any warning that detects unused
|
||||||
|
functions. Fixes #1628.
|
||||||
|
|
||||||
API Changes
|
API Changes
|
||||||
* Extend the MBEDTLS_SSL_EXPORT_KEYS to export the handshake randbytes,
|
* Extend the MBEDTLS_SSL_EXPORT_KEYS to export the handshake randbytes,
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
|
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
|
||||||
|
|
||||||
CFLAGS ?= -O2
|
CFLAGS ?= -O2
|
||||||
WARNING_CFLAGS ?= -Wall -W -Wdeclaration-after-statement -Wno-unused-function -Wno-unused-value
|
WARNING_CFLAGS ?= -Wall -W -Wdeclaration-after-statement -Wunused
|
||||||
LDFLAGS ?=
|
LDFLAGS ?=
|
||||||
|
|
||||||
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -D_FILE_OFFSET_BITS=64
|
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -D_FILE_OFFSET_BITS=64
|
||||||
|
|
|
@ -286,7 +286,7 @@ jmp_buf jmp_tmp;
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
/* Helper Functions */
|
/* Helper Functions */
|
||||||
|
|
||||||
static void test_fail( const char *test, int line_no, const char* filename )
|
void test_fail( const char *test, int line_no, const char* filename )
|
||||||
{
|
{
|
||||||
test_info.failed = 1;
|
test_info.failed = 1;
|
||||||
test_info.test = test;
|
test_info.test = test;
|
||||||
|
@ -377,7 +377,7 @@ static void close_output( FILE* out_stream )
|
||||||
}
|
}
|
||||||
#endif /* __unix__ || __APPLE__ __MACH__ */
|
#endif /* __unix__ || __APPLE__ __MACH__ */
|
||||||
|
|
||||||
static int unhexify( unsigned char *obuf, const char *ibuf )
|
int unhexify( unsigned char *obuf, const char *ibuf )
|
||||||
{
|
{
|
||||||
unsigned char c, c2;
|
unsigned char c, c2;
|
||||||
int len = strlen( ibuf ) / 2;
|
int len = strlen( ibuf ) / 2;
|
||||||
|
@ -411,7 +411,7 @@ static int unhexify( unsigned char *obuf, const char *ibuf )
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hexify( unsigned char *obuf, const unsigned char *ibuf, int len )
|
void hexify( unsigned char *obuf, const unsigned char *ibuf, int len )
|
||||||
{
|
{
|
||||||
unsigned char l, h;
|
unsigned char l, h;
|
||||||
|
|
||||||
|
@ -465,7 +465,7 @@ static unsigned char *zero_alloc( size_t len )
|
||||||
*
|
*
|
||||||
* For convenience, dies if allocation fails.
|
* For convenience, dies if allocation fails.
|
||||||
*/
|
*/
|
||||||
static unsigned char *unhexify_alloc( const char *ibuf, size_t *olen )
|
unsigned char *unhexify_alloc( const char *ibuf, size_t *olen )
|
||||||
{
|
{
|
||||||
unsigned char *obuf;
|
unsigned char *obuf;
|
||||||
|
|
||||||
|
@ -516,7 +516,7 @@ static int rnd_std_rand( void *rng_state, unsigned char *output, size_t len )
|
||||||
*
|
*
|
||||||
* rng_state shall be NULL.
|
* rng_state shall be NULL.
|
||||||
*/
|
*/
|
||||||
static int rnd_zero_rand( void *rng_state, unsigned char *output, size_t len )
|
int rnd_zero_rand( void *rng_state, unsigned char *output, size_t len )
|
||||||
{
|
{
|
||||||
if( rng_state != NULL )
|
if( rng_state != NULL )
|
||||||
rng_state = NULL;
|
rng_state = NULL;
|
||||||
|
@ -543,7 +543,7 @@ typedef struct
|
||||||
*
|
*
|
||||||
* After the buffer is empty it will return rand();
|
* After the buffer is empty it will return rand();
|
||||||
*/
|
*/
|
||||||
static int rnd_buffer_rand( void *rng_state, unsigned char *output, size_t len )
|
int rnd_buffer_rand( void *rng_state, unsigned char *output, size_t len )
|
||||||
{
|
{
|
||||||
rnd_buf_info *info = (rnd_buf_info *) rng_state;
|
rnd_buf_info *info = (rnd_buf_info *) rng_state;
|
||||||
size_t use_len;
|
size_t use_len;
|
||||||
|
@ -589,7 +589,7 @@ typedef struct
|
||||||
*
|
*
|
||||||
* rng_state shall be a pointer to a rnd_pseudo_info structure.
|
* rng_state shall be a pointer to a rnd_pseudo_info structure.
|
||||||
*/
|
*/
|
||||||
static int rnd_pseudo_rand( void *rng_state, unsigned char *output, size_t len )
|
int rnd_pseudo_rand( void *rng_state, unsigned char *output, size_t len )
|
||||||
{
|
{
|
||||||
rnd_pseudo_info *info = (rnd_pseudo_info *) rng_state;
|
rnd_pseudo_info *info = (rnd_pseudo_info *) rng_state;
|
||||||
uint32_t i, *k, sum, delta=0x9E3779B9;
|
uint32_t i, *k, sum, delta=0x9E3779B9;
|
||||||
|
|
Loading…
Reference in a new issue