src/ssl.c: gate wolfSSL_dtls_set_pending_peer() on !defined(WOLFSSL_NO_SOCK), not just defined(WOLFSSL_DTLS_CID).

tests/api.c: in test_dtls12_basic_connection_id(), omit chacha20 suites if defined(HAVE_FIPS), and fix gate on DHE-PSK-NULL-SHA256.
This commit is contained in:
Daniel Pouzzner
2024-12-20 17:24:13 -06:00
parent ad8f74b650
commit 9d3e477b63
2 changed files with 4 additions and 4 deletions

View File

@@ -1935,7 +1935,7 @@ int wolfSSL_dtls_set_peer(WOLFSSL* ssl, void* peer, unsigned int peerSz)
#endif #endif
} }
#ifdef WOLFSSL_DTLS_CID #if defined(WOLFSSL_DTLS_CID) && !defined(WOLFSSL_NO_SOCK)
int wolfSSL_dtls_set_pending_peer(WOLFSSL* ssl, void* peer, unsigned int peerSz) int wolfSSL_dtls_set_pending_peer(WOLFSSL* ssl, void* peer, unsigned int peerSz)
{ {
#ifdef WOLFSSL_DTLS #ifdef WOLFSSL_DTLS
@@ -1981,7 +1981,7 @@ int wolfSSL_dtls_set_pending_peer(WOLFSSL* ssl, void* peer, unsigned int peerSz)
return WOLFSSL_NOT_IMPLEMENTED; return WOLFSSL_NOT_IMPLEMENTED;
#endif #endif
} }
#endif #endif /* WOLFSSL_DTLS_CID && !WOLFSSL_NO_SOCK */
int wolfSSL_dtls_get_peer(WOLFSSL* ssl, void* peer, unsigned int* peerSz) int wolfSSL_dtls_get_peer(WOLFSSL* ssl, void* peer, unsigned int* peerSz)
{ {

View File

@@ -98531,7 +98531,7 @@ static int test_dtls12_basic_connection_id(void)
#endif /* WOLFSSL_AES_128 && WOLFSSL_STATIC_RSA */ #endif /* WOLFSSL_AES_128 && WOLFSSL_STATIC_RSA */
#endif /* NO_SHA256 */ #endif /* NO_SHA256 */
#endif /* NO_RSA */ #endif /* NO_RSA */
#if defined(HAVE_CHACHA) && defined(HAVE_POLY1305) #if defined(HAVE_CHACHA) && defined(HAVE_POLY1305) && !defined(HAVE_FIPS)
"DHE-RSA-CHACHA20-POLY1305", "DHE-RSA-CHACHA20-POLY1305",
"DHE-RSA-CHACHA20-POLY1305-OLD", "DHE-RSA-CHACHA20-POLY1305-OLD",
"ECDHE-RSA-CHACHA20-POLY1305", "ECDHE-RSA-CHACHA20-POLY1305",
@@ -98540,7 +98540,7 @@ static int test_dtls12_basic_connection_id(void)
#ifndef NO_PSK #ifndef NO_PSK
"DHE-PSK-AES128-CBC-SHA256", "DHE-PSK-AES128-CBC-SHA256",
"DHE-PSK-AES256-GCM-SHA384", "DHE-PSK-AES256-GCM-SHA384",
#ifndef HAVE_NULL_CIPHER #ifdef HAVE_NULL_CIPHER
"DHE-PSK-NULL-SHA256", "DHE-PSK-NULL-SHA256",
#endif #endif
"DHE-PSK-AES128-CCM", "DHE-PSK-AES128-CCM",