Skip to content

Commit

Permalink
Merge pull request #8151 from SparkiDev/test_fixes_3
Browse files Browse the repository at this point in the history
Testing fixes
  • Loading branch information
dgarske authored Nov 7, 2024
2 parents 79d9aab + 256c670 commit 364cd10
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/pk.c
Original file line number Diff line number Diff line change
Expand Up @@ -16526,6 +16526,7 @@ int pkcs8_encode(WOLFSSL_EVP_PKEY* pkey, byte* key, word32* keySz)
curveOid = NULL;
oidSz = 0;
}
#ifndef NO_DH
else if (pkey->type == WC_EVP_PKEY_DH) {
if (pkey->dh == NULL)
return BAD_FUNC_ARG;
Expand All @@ -16548,6 +16549,7 @@ int pkcs8_encode(WOLFSSL_EVP_PKEY* pkey, byte* key, word32* keySz)
curveOid = NULL;
oidSz = 0;
}
#endif
else {
ret = NOT_COMPILED_IN;
}
Expand Down
4 changes: 3 additions & 1 deletion tests/quic.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/


#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif
#include <wolfssl/wolfcrypt/settings.h>

#include <tests/unit.h>
Expand Down
3 changes: 1 addition & 2 deletions tests/unit.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@
#include <config.h>
#endif

#include <wolfssl/wolfcrypt/settings.h>

#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif
#include <wolfssl/wolfcrypt/settings.h>

#undef TEST_OPENSSL_COEXIST /* can't use this option with unit tests */
#undef OPENSSL_COEXIST /* can't use this option with unit tests */
Expand Down

0 comments on commit 364cd10

Please sign in to comment.