From 37f15228250cd4b6410a369bc77b121af6932c32 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Wed, 21 Aug 2019 16:06:33 -0700 Subject: [PATCH 1/3] Changes to update stunnel support --- configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configure.ac b/configure.ac index cf03e7f52..c51b8ac2a 100644 --- a/configure.ac +++ b/configure.ac @@ -3405,9 +3405,24 @@ then AM_CFLAGS="$AM_CFLAGS -DECC_SHAMIR" fi fi + + # Requires wolfSSL_OBJ_txt2nid + if test "x$ENABLED_CERTEXT" = "xno" + then + ENABLED_CERTEXT="yes" + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_EXT" + fi + + # Requires certgen + if test "x$ENABLED_CERTGEN" = "xno" + then + ENABLED_CERTGEN="yes" + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_GEN" + fi AM_CFLAGS="$AM_CFLAGS -DHAVE_STUNNEL -DWOLFSSL_ALWAYS_VERIFY_CB" AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALWAYS_KEEP_SNI -DHAVE_EX_DATA" + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DES_ECB" fi if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no" \ From 63538fedde2de1d47bea7db4c2431a077633b676 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Fri, 23 Aug 2019 10:22:31 -0700 Subject: [PATCH 2/3] Required additions for building fips-ready with speedups --- src/include.am | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/include.am b/src/include.am index de5ce74e5..a5a7a752e 100644 --- a/src/include.am +++ b/src/include.am @@ -84,6 +84,9 @@ endif if BUILD_AESNI src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_asm.S +if BUILD_INTELASM +src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_gcm_asm.S +endif endif if BUILD_DES3 @@ -92,10 +95,16 @@ endif if BUILD_SHA src_libwolfssl_la_SOURCES += wolfcrypt/src/sha.c +if BUILD_INTELASM +src_libwolfssl_la_SOURCES += wolfcrypt/src/sha256_asm.S +endif endif if BUILD_SHA512 src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512.c +if BUILD_INTELASM +src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512_asm.S +endif endif if BUILD_SHA3 From 5f77627857b7fa07f26ec0efb671def1f1b95fcc Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Thu, 29 Aug 2019 16:24:09 +0200 Subject: [PATCH 3/3] Fix SetASNIntRSA --- wolfcrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 45ea341bb..4097025ec 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -647,7 +647,7 @@ static int SetASNIntMP(mp_int* n, int maxSz, byte* output) * MP_TO_E when encoding the integer fails. * Otherwise, the number of bytes added to the buffer. */ -static int SetASNIntRSA(mp_int* n, byte* output) +static int SetASNIntRSA(void* n, byte* output) { int idx = 0; int leadingBit;