diff --git a/src/ssl.c b/src/ssl.c index e305cbbdd..f228fa917 100755 --- a/src/ssl.c +++ b/src/ssl.c @@ -17762,7 +17762,7 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD *md) } #endif /* WOLFSSL_AES_256 */ #endif /* HAVE_AES_CBC */ -#if !defined(_WIN32) && !defined(HAVE_FIPS) +#if !defined(_WIN32) && !defined(HAVE_FIPS) && !defined(HAVE_SELFTEST) #ifdef HAVE_AESGCM #ifdef WOLFSSL_AES_128 if (ctx->cipherType == AES_128_GCM_TYPE || @@ -17840,7 +17840,7 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD *md) } #endif /* WOLFSSL_AES_256 */ #endif /* HAVE_AESGCM */ -#endif /* !defined(_WIN32) && !defined(HAVE_FIPS) */ +#endif /* !defined(_WIN32) && !defined(HAVE_FIPS) && !defined(HAVE_SELFTEST) */ #ifdef WOLFSSL_AES_COUNTER #ifdef WOLFSSL_AES_128 if (ctx->cipherType == AES_128_CTR_TYPE || diff --git a/tests/api.c b/tests/api.c index 29909afa7..7c7b9bbb0 100644 --- a/tests/api.c +++ b/tests/api.c @@ -24594,9 +24594,9 @@ static void test_wolfSSL_OBJ_txt2nid(void) int nid; } testVals[] = { { "tlsfeature", "TLS Feature", "1.3.6.1.5.5.7.1.24", NID_tlsfeature }, - { "id-on-dnsSRV", "SRVName otherName form", "1.3.6.1.5.5.7.8.7", + { "id-on-dnsSRV", "SRVName", "1.3.6.1.5.5.7.8.7", NID_id_on_dnsSRV }, - { "msUPN", "Microsoft Universal Principal Name", + { "msUPN", "Microsoft User Principal Name", "1.3.6.1.4.1.311.20.2.3", NID_ms_upn }, { NULL, NULL, NULL, NID_undef } };