mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-21 18:53:32 +00:00
Added helper code (commented out), to aid in wireshark debugging DTLS
This commit is contained in:
@@ -5631,7 +5631,7 @@ void ILibStun_CreateDtlsSession(struct ILibStun_Module *obj, int sessionId, int
|
||||
obj->dTlsSessions[sessionId]->Transport.PendingBytesPtr = (ILibTransport_PendingBytesToSendPtr)&ILibSCTP_GetPendingBytesToSend;
|
||||
|
||||
obj->dTlsSessions[sessionId]->iceStateSlot = iceSlot;
|
||||
obj->dTlsSessions[sessionId]->state = 4; //Bryan: Changed this to 4 from 1, becuase we need to call SSL_do_handshake to determine when DTLS was successful
|
||||
obj->dTlsSessions[sessionId]->state = 4; // Bryan: Changed this to 4 from 1, because we need to call SSL_do_handshake to determine when DTLS was successful
|
||||
obj->dTlsSessions[sessionId]->sessionId = sessionId;
|
||||
sem_init(&(obj->dTlsSessions[sessionId]->Lock), 0, 1);
|
||||
obj->dTlsSessions[sessionId]->parent = obj;
|
||||
@@ -6061,6 +6061,10 @@ void ILibStun_OnUDP(ILibAsyncUDPSocket_SocketModule socketModule, char* buffer,
|
||||
case 1:
|
||||
obj->dTlsSessions[existingSession]->state = 1;
|
||||
ILibStun_DTLS_Success(obj, existingSession, remoteInterface); // Successful DTLS Handshake
|
||||
|
||||
#ifdef _DEBUG
|
||||
//util_savekeys(obj->dTlsSessions[existingSession]->ssl); // SAVES DTLS PRIVATE KEYS !!! WARNING - THIS CODE SHOULD ALWAYS BE COMMENTED OUT !!!
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
// SSL_WANT_READ most likely, so do nothing for now
|
||||
|
||||
Reference in New Issue
Block a user