Skip to content

Commit

Permalink
fedora crypto-policies: more CI cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
philljj committed Nov 20, 2024
1 parent 813c1fc commit 07fd60a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -8915,7 +8915,7 @@ AC_ARG_WITH([sys-crypto-policy],
)
if test "$SYS_CRYPTO_POLICY" != "no"; then
if test "$SYS_CRYPTO_POLICY" == "yes"; then
if test "$SYS_CRYPTO_POLICY" = "yes"; then
# Default to the wolfssl fedora crypto-policy file.
SYS_CRYPTO_POLICY="/etc/crypto-policies/back-ends/wolfssl.config"
fi
Expand Down
2 changes: 2 additions & 0 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -27762,6 +27762,7 @@ static int ParseCipherList(Suites* suites,
continue;
}

#if defined(WOLFSSL_SYS_CRYPTO_POLICY)
if (XSTRCMP(name, "AES128") == 0) {
haveAES128 = allowing;
callInitSuites = 1;
Expand All @@ -27775,6 +27776,7 @@ static int ParseCipherList(Suites* suites,
ret = 1;
continue;
}
#endif /* WOLFSSL_SYS_CRYPTO_POLICY */

if (XSTRCMP(name, "LOW") == 0 || XSTRCMP(name, "MEDIUM") == 0) {
/* No way to limit or allow low bit sizes */
Expand Down
8 changes: 4 additions & 4 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -91922,7 +91922,7 @@ static int test_wolfSSL_crypto_policy(void)
{
EXPECT_DECLS;
#if defined(WOLFSSL_SYS_CRYPTO_POLICY)
int rc = WOLFSSL_FAILURE;
int rc = WC_NO_ERR_TRACE(WOLFSSL_FAILURE);
const char * policy_list[] = {
"examples/crypto_policies/legacy/wolfssl.txt",
"examples/crypto_policies/default/wolfssl.txt",
Expand Down Expand Up @@ -92044,7 +92044,7 @@ static int test_wolfSSL_crypto_policy_certs_and_keys(void)
{
EXPECT_DECLS;
#if defined(WOLFSSL_SYS_CRYPTO_POLICY)
int rc = WOLFSSL_FAILURE;
int rc = WC_NO_ERR_TRACE(WOLFSSL_FAILURE);
const char * policy_list[] = {
"examples/crypto_policies/legacy/wolfssl.txt",
"examples/crypto_policies/default/wolfssl.txt",
Expand Down Expand Up @@ -92206,7 +92206,7 @@ static int test_wolfSSL_crypto_policy_tls_methods(void)
{
EXPECT_DECLS;
#if defined(WOLFSSL_SYS_CRYPTO_POLICY)
int rc = WOLFSSL_FAILURE;
int rc = WC_NO_ERR_TRACE(WOLFSSL_FAILURE);
const char * policy_list[] = {
"examples/crypto_policies/legacy/wolfssl.txt",
"examples/crypto_policies/default/wolfssl.txt",
Expand Down Expand Up @@ -92399,7 +92399,7 @@ static int test_wolfSSL_crypto_policy_ciphers(void)
{
EXPECT_DECLS;
#if defined(WOLFSSL_SYS_CRYPTO_POLICY)
int rc = WOLFSSL_FAILURE;
int rc = WC_NO_ERR_TRACE(WOLFSSL_FAILURE);
const char * policy_list[] = {
"examples/crypto_policies/legacy/wolfssl.txt",
"examples/crypto_policies/default/wolfssl.txt",
Expand Down

0 comments on commit 07fd60a

Please sign in to comment.