forked from wolfSSL/wolfssl
TLS: Get DH anon working TLS 1.2 and below
Send the server DH parameters in ServerKeyExchange. ./configure '--enable-anon' '--disable-rsa' '--enable-oldtls'
This commit is contained in:
@ -26502,11 +26502,13 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif /* !NO_PSK */
|
#endif /* !NO_PSK */
|
||||||
#if !defined(NO_DH) && (!defined(NO_PSK) || !defined(NO_RSA))
|
#if !defined(NO_DH) && (!defined(NO_PSK) || !defined(NO_RSA) \
|
||||||
|
|| (defined(HAVE_ANON) && !defined(WOLFSSL_NO_TLS12)))
|
||||||
#if !defined(NO_PSK)
|
#if !defined(NO_PSK)
|
||||||
case dhe_psk_kea:
|
case dhe_psk_kea:
|
||||||
#endif
|
#endif
|
||||||
#if !defined(NO_RSA)
|
#if !defined(NO_RSA) || (defined(HAVE_ANON) && \
|
||||||
|
!defined(WOLFSSL_NO_TLS12))
|
||||||
case diffie_hellman_kea:
|
case diffie_hellman_kea:
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@ -27277,7 +27279,8 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif /* HAVE_ECC || HAVE_CURVE25519 || HAVE_CURVE448 */
|
#endif /* HAVE_ECC || HAVE_CURVE25519 || HAVE_CURVE448 */
|
||||||
#if !defined(NO_DH) && !defined(NO_RSA)
|
#if !defined(NO_DH) && (!defined(NO_RSA) || \
|
||||||
|
(defined(HAVE_ANON) && !defined(WOLFSSL_NO_TLS12)))
|
||||||
case diffie_hellman_kea:
|
case diffie_hellman_kea:
|
||||||
{
|
{
|
||||||
enum wc_HashType hashType;
|
enum wc_HashType hashType;
|
||||||
|
Reference in New Issue
Block a user