Skip to content

Commit

Permalink
wolfssl/wolfcrypt/ecc.h: fixes for linker relocation errors in Fedora…
Browse files Browse the repository at this point in the history
… packaging test.
  • Loading branch information
douzzer committed Sep 19, 2024
1 parent 510d6a0 commit 147a49b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wolfcrypt/test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -34481,7 +34481,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t ecc_test_buffers(void)
} while (ret == WC_NO_ERR_TRACE(WC_PENDING_E));
if (ret < 0)
ERROR_OUT(WC_TEST_RET_ENC_EC(ret), done);
TEST_SLEEP();
TEST_SLEEP();

XMEMSET(plain, 0, sizeof(plain));

Expand Down
7 changes: 5 additions & 2 deletions wolfssl/wolfcrypt/ecc.h
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,10 @@ WOLFSSL_ABI WOLFSSL_API void wc_ecc_key_free(ecc_key* key);


/* ECC predefined curve sets */
extern const ecc_set_type ecc_sets[];
#if !defined(HAVE_FIPS) || FIPS_VERSION3_GE(6,0,0)
#define ecc_sets wc_ecc_sets
#endif
WOLFSSL_API extern const ecc_set_type ecc_sets[];
extern const size_t ecc_sets_count;

WOLFSSL_API
Expand Down Expand Up @@ -763,7 +766,7 @@ WOLFSSL_API
int wc_ecc_set_flags(ecc_key* key, word32 flags);
WOLFSSL_ABI WOLFSSL_API
void wc_ecc_fp_free(void);
WOLFSSL_LOCAL
WOLFSSL_API
void wc_ecc_fp_init(void);
WOLFSSL_API
int wc_ecc_set_rng(ecc_key* key, WC_RNG* rng);
Expand Down

0 comments on commit 147a49b

Please sign in to comment.