FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/src/sniffer.c
/* Free Sniffer Session's resources/self */
Free Sniffer Session's resources/self
Free Sniffer Session ' s resources / self
static void FreeSnifferSession(SnifferSession* session)
{
    if (session) {
        wolfSSL_free(session->sslClient);
        wolfSSL_free(session->sslServer);
        FreePacketList(session->cliReassemblyList);
        FreePacketList(session->srvReassemblyList);
        XFREE(session->ticketID, NULL, DYNAMIC_TYPE_SNIFFER_TICKET_ID);
#ifdef HAVE_EXTENDED_MASTER
        XFREE(session->hash, NULL, DYNAMIC_TYPE_HASHES);
#endif
#ifdef WOLFSSL_TLS13
        if (session->cliKeyShare)
            XFREE(session->cliKeyShare, NULL, DYNAMIC_TYPE_TMP_BUFFER);
#endif
    }
    XFREE(session, NULL, DYNAMIC_TYPE_SNIFFER_SESSION);
}
static void FreeSnifferSession ( SnifferSession * session ) { if ( session ) { wolfSSL_free ( session -> sslClient ) ; wolfSSL_free ( session -> sslServer ) ; FreePacketList ( session -> cliReassemblyList ) ; FreePacketList ( session -> srvReassemblyList ) ; XFREE ( session -> ticketID , NULL , DYNAMIC_TYPE_SNIFFER_TICKET_ID ) ; #ifdef HAVE_EXTENDED_MASTER XFREE ( session -> hash , NULL , DYNAMIC_TYPE_HASHES ) ; #endif #ifdef WOLFSSL_TLS13 if ( session -> cliKeyShare ) XFREE ( session -> cliKeyShare , NULL , DYNAMIC_TYPE_TMP_BUFFER ) ; #endif } XFREE ( session , NULL , DYNAMIC_TYPE_SNIFFER_SESSION ) ; }
Free Sniffer Session's resources/self
Free Sniffer Session ' s resources / self