mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
@@ -169,6 +169,8 @@ find_package(Threads)
|
|||||||
# Example for map file and custom linker script
|
# Example for map file and custom linker script
|
||||||
#set(CMAKE_EXE_LINKER_FLAGS " -Xlinker -Map=output.map -T\"${CMAKE_CURRENT_SOURCE_DIR}/linker.ld\"")
|
#set(CMAKE_EXE_LINKER_FLAGS " -Xlinker -Map=output.map -T\"${CMAKE_CURRENT_SOURCE_DIR}/linker.ld\"")
|
||||||
|
|
||||||
|
set(CMAKE_C_FLAGS "-Wall -Wextra -Wno-unused -Werror ${CMAKE_C_FLAGS}")
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
# Build Options
|
# Build Options
|
||||||
####################################################
|
####################################################
|
||||||
@@ -894,6 +896,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
if(WOLFSSL_RSA_PSS)
|
if(WOLFSSL_RSA_PSS)
|
||||||
list(APPEND WOLFSSL_DEFINITIONS "-DWC_RSA_PSS")
|
list(APPEND WOLFSSL_DEFINITIONS "-DWC_RSA_PSS")
|
||||||
|
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_PSS_LONG_SALT")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# DH
|
# DH
|
||||||
|
@@ -912,8 +912,6 @@ function(add_to_options_file DEFINITIONS OPTION_FILE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
file(APPEND ${OPTION_FILE} "\n")
|
file(APPEND ${OPTION_FILE} "\n")
|
||||||
else()
|
|
||||||
message("option w/o begin -D is ${DEF}, not saving to ${OPTION_FILE}")
|
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
@@ -2416,7 +2416,7 @@ static int test_wolfSSL_CertRsaPss(void)
|
|||||||
AssertIntEQ(wc_ParseCert(&cert, CERT_TYPE, VERIFY, cm), 0);
|
AssertIntEQ(wc_ParseCert(&cert, CERT_TYPE, VERIFY, cm), 0);
|
||||||
wc_FreeDecodedCert(&cert);
|
wc_FreeDecodedCert(&cert);
|
||||||
|
|
||||||
#ifdef WOLFSSL_SHA384
|
#if defined(WOLFSSL_SHA384) && defined(WOLFSSL_PSS_LONG_SALT)
|
||||||
f = XFOPEN(rsaPssSha384Cert, "rb");
|
f = XFOPEN(rsaPssSha384Cert, "rb");
|
||||||
AssertTrue((f != XBADFILE));
|
AssertTrue((f != XBADFILE));
|
||||||
bytes = (int)XFREAD(buf, 1, sizeof(buf), f);
|
bytes = (int)XFREAD(buf, 1, sizeof(buf), f);
|
||||||
|
@@ -59,11 +59,11 @@ extern "C" {
|
|||||||
|
|
||||||
#define HAVE_ECC
|
#define HAVE_ECC
|
||||||
#define ECC_USER_CURVES
|
#define ECC_USER_CURVES
|
||||||
//#define HAVE_ECC192
|
/* #define HAVE_ECC192 */
|
||||||
//#define HAVE_ECC224
|
/* #define HAVE_ECC224 */
|
||||||
#undef NO_ECC256
|
#undef NO_ECC256
|
||||||
//#define HAVE_ECC384
|
/* #define HAVE_ECC384 */
|
||||||
//#define HAVE_ECC521
|
/* #define HAVE_ECC521 */
|
||||||
#define ECC_SHAMIR
|
#define ECC_SHAMIR
|
||||||
#define ECC_TIMING_RESISTANT
|
#define ECC_TIMING_RESISTANT
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user