Merge pull request #8151 from SparkiDev/test_fixes_3

Testing fixes
This commit is contained in:
David Garske
2024-11-07 12:43:12 -08:00
committed by GitHub
3 changed files with 6 additions and 3 deletions

View File

@ -16526,6 +16526,7 @@ int pkcs8_encode(WOLFSSL_EVP_PKEY* pkey, byte* key, word32* keySz)
curveOid = NULL; curveOid = NULL;
oidSz = 0; oidSz = 0;
} }
#ifndef NO_DH
else if (pkey->type == WC_EVP_PKEY_DH) { else if (pkey->type == WC_EVP_PKEY_DH) {
if (pkey->dh == NULL) if (pkey->dh == NULL)
return BAD_FUNC_ARG; return BAD_FUNC_ARG;
@ -16548,6 +16549,7 @@ int pkcs8_encode(WOLFSSL_EVP_PKEY* pkey, byte* key, word32* keySz)
curveOid = NULL; curveOid = NULL;
oidSz = 0; oidSz = 0;
} }
#endif
else { else {
ret = NOT_COMPILED_IN; ret = NOT_COMPILED_IN;
} }

View File

@ -19,11 +19,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #endif
#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif
#include <wolfssl/wolfcrypt/settings.h> #include <wolfssl/wolfcrypt/settings.h>
#include <tests/unit.h> #include <tests/unit.h>

View File

@ -27,11 +27,10 @@
#include <config.h> #include <config.h>
#endif #endif
#include <wolfssl/wolfcrypt/settings.h>
#ifndef WOLFSSL_USER_SETTINGS #ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h> #include <wolfssl/options.h>
#endif #endif
#include <wolfssl/wolfcrypt/settings.h>
#undef TEST_OPENSSL_COEXIST /* can't use this option with unit tests */ #undef TEST_OPENSSL_COEXIST /* can't use this option with unit tests */
#undef OPENSSL_COEXIST /* can't use this option with unit tests */ #undef OPENSSL_COEXIST /* can't use this option with unit tests */