mirror of https://github.com/wolfSSL/wolfssl.git
Merge pull request #7772 from douzzer/20240719-test-hpke-PRIVATE_KEY_UNLOCK
20240719-test-hpke-PRIVATE_KEY_UNLOCKpull/7774/head
commit
a9ff7730ce
|
@ -1767,10 +1767,12 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_HPKE) && defined(HAVE_ECC) && defined(HAVE_AESGCM)
|
#if defined(HAVE_HPKE) && defined(HAVE_ECC) && defined(HAVE_AESGCM)
|
||||||
|
PRIVATE_KEY_UNLOCK();
|
||||||
if ( (ret = hpke_test()) != 0)
|
if ( (ret = hpke_test()) != 0)
|
||||||
TEST_FAIL("HPKE test failed!\n", ret);
|
TEST_FAIL("HPKE test failed!\n", ret);
|
||||||
else
|
else
|
||||||
TEST_PASS("HPKE test passed!\n");
|
TEST_PASS("HPKE test passed!\n");
|
||||||
|
PRIVATE_KEY_LOCK();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WC_SRTP_KDF)
|
#if defined(WC_SRTP_KDF)
|
||||||
|
|
|
@ -300,10 +300,16 @@ WOLFSSL_ABI WOLFSSL_API const char* wc_GetErrorString(int error);
|
||||||
#ifdef WOLFSSL_DEBUG_TRACE_ERROR_CODES
|
#ifdef WOLFSSL_DEBUG_TRACE_ERROR_CODES
|
||||||
#define WC_NO_ERR_TRACE(label) (CONST_NUM_ERR_ ## label)
|
#define WC_NO_ERR_TRACE(label) (CONST_NUM_ERR_ ## label)
|
||||||
#ifndef WC_ERR_TRACE
|
#ifndef WC_ERR_TRACE
|
||||||
|
#ifdef NO_STDIO_FILESYSTEM
|
||||||
|
#define WC_ERR_TRACE(label) \
|
||||||
|
( printf("ERR TRACE: %s L %d " #label " (%d)\n", \
|
||||||
|
__FILE__, __LINE__, label), label)
|
||||||
|
#else
|
||||||
#define WC_ERR_TRACE(label) \
|
#define WC_ERR_TRACE(label) \
|
||||||
( fprintf(stderr, \
|
( fprintf(stderr, \
|
||||||
"ERR TRACE: %s L %d " #label " (%d)\n", \
|
"ERR TRACE: %s L %d " #label " (%d)\n", \
|
||||||
__FILE__, __LINE__, label), label)
|
__FILE__, __LINE__, label), label)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#include <wolfssl/debug-trace-error-codes.h>
|
#include <wolfssl/debug-trace-error-codes.h>
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue