JacobBarthelmeh
1fe8944363
Merge pull request #6545 from bigbrett/serverListening-include-guard
...
fix pthread macro protection in tls_bench
2023-07-14 14:14:18 -06:00
JacobBarthelmeh
ff38d8f018
revert portion of cmake for vcpkg build
2023-07-14 13:27:38 -06:00
jordan
1afc0df83d
tfm fp_exptmod_nct: set result to zero when base is zero
2023-07-14 13:57:29 -05:00
Anthony Hu
933dae393e
Make PRBs happy
2023-07-14 14:33:43 -04:00
Joakim Strandberg
f49ffc0353
The implementations of the tls client and server applications can now be formally verified by the SPARK tools.
2023-07-14 20:30:34 +02:00
Brett
707c1a44bc
added support for dist bundle
2023-07-14 12:27:10 -06:00
Brett
5d24d5114a
removed Preview Assets and disabled swiftUI preview, as it is not required and adds unused files to a make dist install
2023-07-14 12:14:19 -06:00
Anthony Hu
3b773db728
Clean up after myself
2023-07-14 13:43:57 -04:00
jordan
a747e7773c
LMS: comments, SMALL_STACK, cleanup, etc.
2023-07-14 11:27:59 -05:00
JacobBarthelmeh
20115f0e23
Merge pull request #6619 from douzzer/20230714-asn-DecodeAuthKeyId-Wconversion-fix
...
20230714-asn-DecodeAuthKeyId-Wconversion-fix
2023-07-14 10:11:46 -06:00
Anthony Hu
31a02f194e
Address review comments.
2023-07-14 12:09:14 -04:00
JacobBarthelmeh
7361332c87
Merge pull request #6616 from SparkiDev/sm2_sp_not_avail
...
ECC and SM2: SP implementation not available yet
2023-07-14 09:58:43 -06:00
Daniel Pouzzner
e2833f99a3
wolfcrypt/src/asn.c: fix merge conflict between 648f474d83 and 2c9609039d, re -Wconversion in DecodeAuthKeyId().
2023-07-14 09:53:54 -05:00
Daniel Pouzzner
f6f8d2eda3
add WC_DO_NOTHING macro to wolfssl/wolfcrypt/types.h, with default expansion "do {} while (0)", and globally refactor to use the macro where appropriate, annotating intended-null macros-with-args with "/* null expansion */";
...
tweak several #includes of settings.h to include types.h instead (all of these are for clarity, as types.h is indirectly included by later #includes), and add #include <wolfssl/wolfcrypt/types.h> where missing;
remove trailing semicolons from PRAGMA*() macro invocations as they are unneeded and can be harmful (inducing frivolous -Wdeclaration-after-statement etc.).
2023-07-14 09:50:01 -05:00
Sean Parkinson
a96983e6d3
Merge pull request #6612 from dgarske/entropy_memuse_win32
...
Add support for MemUse Entropy on Windows.
2023-07-14 10:54:51 +10:00
Sean Parkinson
40d0a14c09
Merge pull request #6615 from dgarske/various2
...
Fix for building ED25519 with no client auth
2023-07-14 10:52:24 +10:00
Brett
0d9252de9e
review: max line length changes
2023-07-13 16:30:25 -06:00
Brett
698bf7b423
fixed typo and added xcode version to overview
2023-07-13 16:24:30 -06:00
Sean Parkinson
377417e668
ECC and SM2: SP implementation not available yet
...
ecc.c: Keep code, but don't compile in until implementation for SM2
added to SP.
ssl.c: Fix warning for when ECC_MINSIZE is zero and sz is unsigned.
2023-07-14 08:04:00 +10:00
David Garske
4862b57415
Simplify Windows Entropy_TimeHiRes
, which just needs a precision timer to differentiate, not specific time.
2023-07-13 14:30:58 -07:00
David Garske
4fd5d154a4
Merge pull request #6611 from bandi13/addLibLMS_Docker
...
Add dependency for liblms
2023-07-13 14:15:07 -07:00
Brett Nicholas
9bed65ad57
split up error message
...
split #if into multiple lines
2023-07-13 15:14:02 -06:00
Brett Nicholas
b02a22b5b3
added error reporting macro for invalid configuration
2023-07-13 15:14:02 -06:00
Brett Nicholas
44faddac6c
fix compiler error for targets that don't define HAVE_PTHREAD
2023-07-13 15:14:02 -06:00
David Garske
e3e0b4505c
Fix for building ED25519 with WOLFSSL_NO_CLIENT_AUTH
or NO_ED25519_CLIENT_AUTH
set:
...
```
/wolfssl/src/ssl.c:6744:33: error: 'Options' has no member named 'cacheMessages'
6744 | ssl->options.cacheMessages = 1;
|
```
2023-07-13 13:53:04 -07:00
David Garske
00add89deb
Fix for unused AesDecrypt in aes.c with SiLabs AES acceleration enabled (WOLFSSL_SILABS_SE_ACCEL
). ZD15874
2023-07-13 13:50:15 -07:00
Anthony Hu
4ccd6dfbe1
Adding wolfSSL_GENERAL_NAME_set0_value() compat layer API.
2023-07-13 16:09:47 -04:00
David Garske
761a976d0c
Add support for MemUse Entropy on Windows.
2023-07-13 12:56:13 -07:00
JacobBarthelmeh
4bf642283c
Merge pull request #6597 from SparkiDev/mp_test_div_fix
...
test.c: fix protection around calling mp_test_div
2023-07-13 13:37:27 -06:00
JacobBarthelmeh
11d26797d2
Merge pull request #6601 from SparkiDev/type_conversion_fixes_2
...
Type conversion fixes: make explicit
2023-07-13 13:33:58 -06:00
Brett
9379a8a094
added standard license headers, switched to C-style comments
2023-07-13 12:58:38 -06:00
Andras Fekete
8cd06c64b2
Add dependency for liblms
...
Usage: './configure --enable-lms=yes --with-liblms=/opt/sources/hash-sigs'
2023-07-13 14:22:55 -04:00
Brett
c8209068c2
added apple univeresal binary framework build script and example
2023-07-13 12:02:12 -06:00
David Garske
90b32d7857
Merge pull request #6596 from bandi13/updateLibOQS
...
Use liboqs v0.8
2023-07-13 09:37:01 -07:00
Joakim Strandberg
45d8a5b04c
Ada version of TLS v1.3 client application implemented
2023-07-13 16:49:22 +02:00
JacobBarthelmeh
8c012b5df5
Merge pull request #6599 from SparkiDev/heapmath_mp_exptmod_fix
...
Heap Math exptmod: fixes for valid modulus checks
2023-07-12 16:57:51 -06:00
JacobBarthelmeh
cf15789c7f
Merge pull request #6598 from SparkiDev/sm_update_3
...
EVP SM3: fix cast
2023-07-12 16:56:35 -06:00
JacobBarthelmeh
b889b27b8c
Merge pull request #6585 from cconlon/x509Ext
...
Fixes for WOLFSSL_X509 cert gen, WOLFSSL_ALT_NAMES to --enable-jni
2023-07-12 16:55:08 -06:00
Sean Parkinson
2c9609039d
Type conversion fixes: make explicit
...
Changed to types and casting so that there are no implcit conversion
warnings (gcc -Wconversion) in these files.
2023-07-13 08:36:02 +10:00
JacobBarthelmeh
62c14e4d5b
Merge pull request #6604 from douzzer/20230711-linuxkm-fixes
...
20230711-linuxkm-fixes
2023-07-12 16:26:56 -06:00
Chris Conlon
a8ed78e012
define WOLFSSL_ALT_NAMES in --enable-jni build
2023-07-12 14:33:45 -06:00
Chris Conlon
ea7ea356a0
Fixes for WOLFSSL_X509 cert generation with key usage, extended key usage, and basic constraints
2023-07-12 14:33:42 -06:00
David Garske
d20a096ffa
Ada Bindings for wolfSSL. Credit Joakim Dahlgren Strandberg <joakimds@kth.se>
2023-07-12 12:37:52 -07:00
Daniel Pouzzner
648f474d83
configure.ac:
...
if ENABLED_LINUXKM_PIE, add -DWOLFSSL_NO_OCSP_ISSUER_CHECK to gate out backward dependency in asn.c;
if ENABLE_LINUXKM, don't error on FIPS without thread_ls_on;
for --enable-curl, set ENABLED_MD4="yes", and move --enable-md4 AC_ARG_ENABLE() clause up to a position adjacent to des3 handling;
scripts/sniffer-gen.sh: fix illegal exit code (SC2242);
src/internal.c: fix clang-analyzer-core.NonNullParamChecker in CreateTicket();
src/ocsp.c: fix readability-redundant-preprocessor;
src/tls.c: fix empty-body in TLSX_PskKeModes_Parse() and clang-diagnostic-unreachable-code-break in ALPN_Select();
tests/api.c: fix several clang-analyzer-core.NullDereference related to Expect*() refactor;
wolfcrypt/src/asn.c:
fix -Wconversions in DecodeAuthKeyId() and ParseCertRelative();
fix readability-redundant-declaration re GetCA() and GetCAByName();
gate inclusion of wolfssl/internal.h on !defined(WOLFCRYPT_ONLY);
wolfssl/internal.h: add macro-detection gating around GetCA() and GetCAByName() prototypes matching gates in wolfcrypt/src/asn.c;
tests/utils.c: in create_tmp_dir(), use one-arg variant of mkdir() if defined(__CYGWIN__) || defined(__MINGW32__).
2023-07-12 13:47:40 -05:00
Sean Parkinson
8e89e31f70
test.c: fix protection around calling mp_test_div
...
Caller of mp_test_div() had different #ifdef protection declaration.
Made them the same.
2023-07-12 10:55:50 +10:00
David Garske
b8119af455
Merge pull request #6594 from lealem47/curl
...
Fix for curl build
2023-07-11 17:13:59 -07:00
Sean Parkinson
b18bc86ef8
Heap Math exptmod: fixes for valid modulus checks
...
mp_exptmod_base_2() uses Montogmery method and does not support even
modulus. Added check.
mp_exptmod_fast() uses Montogmery method when odd not when dr > 0.
Comment updated at call.
Reduce value of zero doesn't work for mp_reduece_2k. Changed setup of
use to check for zero and won't use it. Other methods won't work either.
2023-07-12 09:20:11 +10:00
Sean Parkinson
96f745af6f
EVP SM3: fix cast
...
wc_Sm3Update takes a word32 for the size.
Others cases are using the OpenSSL compatibility API but SM3 APIs don't
exist in OpenSSL.
2023-07-12 08:05:03 +10:00
Sean Parkinson
d6a6cbb83e
Merge pull request #6595 from dgarske/various
...
Fix for no malloc with SP and fix defaultdhparams typo
2023-07-12 07:19:52 +10:00
JacobBarthelmeh
fd72b885b6
Merge pull request #6592 from embhorn/zd16415
...
Fix Micrium config and new examples with NO_FILESYSTEM
2023-07-11 15:01:18 -06:00