mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 11:45:39 +01:00
Fix issue with renego & resend
This commit is contained in:
parent
8cc7e03ae0
commit
23b7b703aa
@ -248,6 +248,13 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* DTLS retransmission states, see RFC 6347 4.2.4
|
* DTLS retransmission states, see RFC 6347 4.2.4
|
||||||
|
*
|
||||||
|
* Warning: the state is sometimes explicit sometimes implicit!
|
||||||
|
* - PREPARING is explicit (but could be implicit from ssl->state)
|
||||||
|
* - SENDING is merged in PREPARING for initial sends, explicit for resends
|
||||||
|
* - WAITING is usually implicit from ssl->state, except after resend
|
||||||
|
* - FINISHED is explicit (but could be implicit from state)
|
||||||
|
* TODO-DTLS: clean that up
|
||||||
*/
|
*/
|
||||||
#define SSL_RETRANS_PREPARING 0
|
#define SSL_RETRANS_PREPARING 0
|
||||||
#define SSL_RETRANS_SENDING 1
|
#define SSL_RETRANS_SENDING 1
|
||||||
|
@ -2206,7 +2206,10 @@ int ssl_resend( ssl_context *ssl )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ssl->handshake->retransmit_state = SSL_RETRANS_WAITING;
|
if( ssl->state == SSL_HANDSHAKE_OVER )
|
||||||
|
ssl->handshake->retransmit_state = SSL_RETRANS_FINISHED;
|
||||||
|
else
|
||||||
|
ssl->handshake->retransmit_state = SSL_RETRANS_WAITING;
|
||||||
|
|
||||||
SSL_DEBUG_MSG( 2, ( "<= ssl_resend" ) );
|
SSL_DEBUG_MSG( 2, ( "<= ssl_resend" ) );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user