Skip to content

Commit

Permalink
Merge pull request #8304 from SparkiDev/regression_fixes_15
Browse files Browse the repository at this point in the history
Regression testing: fixes
  • Loading branch information
JacobBarthelmeh authored Dec 20, 2024
2 parents 3dd9f46 + b7c1e1c commit 7cebe95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
8 changes: 1 addition & 7 deletions src/x509.c
Original file line number Diff line number Diff line change
Expand Up @@ -12672,15 +12672,9 @@ WOLFSSL_API WOLFSSL_X509_CRL* wolfSSL_PEM_read_X509_CRL(XFILE fp,
static void wolfssl_x509_name_entry_set(WOLFSSL_X509_NAME_ENTRY* ne,
int nid, int type, const unsigned char *data, int dataSz)
{
WOLFSSL_ASN1_OBJECT* object;

ne->nid = nid;
/* Reuse the object if already available. */
object = wolfSSL_OBJ_nid2obj_ex(nid, ne->object);
if (object != NULL) {
/* Set the object when no error. */
ne->object = object;
}
ne->object = wolfSSL_OBJ_nid2obj_ex(nid, ne->object);
if (ne->value == NULL) {
ne->value = wolfSSL_ASN1_STRING_type_new(type);
}
Expand Down
5 changes: 4 additions & 1 deletion tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -72889,6 +72889,9 @@ static int test_wolfSSL_GENERAL_NAME_print(void)
wolfSSL_ASN1_STRING_free(gn->d.ia5);
gn->d.registeredID = ridObj;
}
else {
wolfSSL_ASN1_OBJECT_free(ridObj);
}
ExpectIntEQ(GENERAL_NAME_print(out, gn), 1);
XMEMSET(outbuf,0,sizeof(outbuf));
ExpectIntGT(BIO_read(out, outbuf, sizeof(outbuf)), 0);
Expand Down Expand Up @@ -101583,7 +101586,7 @@ TEST_CASE testCases[] = {
TEST_DECL(test_wolfSSL_X509_STORE_CTX),
TEST_DECL(test_wolfSSL_X509_STORE_CTX_ex),
TEST_DECL(test_X509_STORE_untrusted),
#if defined(OPENSSL_ALL)
#if defined(OPENSSL_ALL) && !defined(NO_RSA)
TEST_DECL(test_X509_STORE_InvalidCa),
#endif
TEST_DECL(test_wolfSSL_X509_STORE_CTX_trusted_stack_cleanup),
Expand Down
2 changes: 1 addition & 1 deletion wolfcrypt/test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -12864,7 +12864,7 @@ static wc_test_ret_t aes_cbc_oneshot_test(void)
}
#endif

#if defined(WOLFSSL_AES_COUNTER) && defined(HAVE_AES_DECRYPT)
#if defined(WOLFSSL_AES_COUNTER)
WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aes_ctr_test(void)
{
#if defined(WOLFSSL_SMALL_STACK) && !defined(WOLFSSL_NO_MALLOC)
Expand Down

0 comments on commit 7cebe95

Please sign in to comment.