Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20240917-fixes #7991

Merged
merged 9 commits into from
Sep 20, 2024
Merged

20240917-fixes #7991

merged 9 commits into from
Sep 20, 2024

Commits on Sep 18, 2024

  1. m4/ax_atomic.m4: fixes for C++ compatibility.

    wolfssl/wolfcrypt/wc_port.h: add WOLFSSL_API attribute to wolfSSL_Atomic_Int_Init, wolfSSL_Atomic_Int_FetchAdd, and wolfSSL_Atomic_Int_FetchAdd, and add fallback definitions for them, allowing elimination of SINGLE_THREADED implementations of wolfSSL_Ref*(), and allowing ungated use of wolfSSL_Atomic_* calls in api.c.
    
    wolfcrypt/src/dh.c: in wc_DhAgree_ct(), remove frivolous XMEMSET() and stray semicolon.
    
    wolfcrypt/benchmark/benchmark.c: fix bench_rsaKeyGen() to skip tests of key sizes below RSA_MIN_SIZE, and add 4096 bit benchmark if RSA_MAX_SIZE is big enough.
    
    tests/unit.h:
    * adopt definitions of TEST_FAIL, TEST_SUCCESS, and TEST_SKIPPED from unit.c, remap TEST_SKIPPED from -7777 to 3, and add TEST_SUCCESS_NO_MSGS, TEST_SKIPPED_NO_MSGS, EXPECT_DECLS_NO_MSGS(), and EXPECT_FAILURE_CODEPOINT_ID, to support existing and future expected-particular-failure test cases without log noise.
    * rename outer gate from CyaSSL_UNIT_H to TESTS_UNIT_H.
    
    tests/api.c:
    * use EXPECT_DECLS_NO_MSGS() in test_ssl_memio_setup(), test_ssl_memio_read_write(), and test_wolfSSL_client_server_nofail_memio(), and globally update affected expected error codes to correspond.
    * use atomics for {client,server}SessRemCount{Malloc,free} to fix races in SessRemCtxCb() and SessRemSslSetupCb().
    douzzer committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    072c531 View commit details
    Browse the repository at this point in the history
  2. tests/api.c:test_Sha512_Family_Final(): fix unreachable null pointer …

    …deref reported by clang-tidy in FIPS/Async configs.
    douzzer committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    263cb5b View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. wolfssl/wolfcrypt/types.h: add static_assert() definitions;

    wolfssl/internal.h: add DTLS13_HANDSHAKE_HEADER_SZ;
    
    src/tls13.c: in EchHashHelloInner(), use falseHeader[DTLS13_HANDSHAKE_HEADER_SZ] to fix buffer overrun;
    
    src/dtls13.c: add static assert for DTLS13_HANDSHAKE_HEADER_SZ.
    douzzer committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    fbbb2b8 View commit details
    Browse the repository at this point in the history
  2. wolfssl/wolfcrypt/types.h: dial in the __static_assert() gating+defin…

    …itions, and add static_assert2().
    douzzer committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    510d6a0 View commit details
    Browse the repository at this point in the history
  3. wolfssl/wolfcrypt/ecc.h and wolfcrypt/src/ecc.c: refactor ecc_sets an…

    …d ecc_sets_count using accessor functions, to fix linker relocation errors in Fedora packaging test.
    douzzer committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    212708e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    da1b835 View commit details
    Browse the repository at this point in the history
  5. wolfssl/wolfcrypt/ecc.h: fixes for more linker relocation errors in F…

    …edora packaging test: always export ECC_API functions, but when !WOLFSSL_PUBLIC_ECC_ADD_DBL, remap them with wc_ prefixes.
    douzzer committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    a31e914 View commit details
    Browse the repository at this point in the history
  6. Revert "wolfssl/wolfcrypt/ecc.h: fixes for more linker relocation err…

    …ors in Fedora packaging test: always export ECC_API functions, but when !WOLFSSL_PUBLIC_ECC_ADD_DBL, remap them with wc_ prefixes."
    
    This reverts commit a31e914.
    douzzer committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    af8feed View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5be198f View commit details
    Browse the repository at this point in the history