Move PKCS #11 Mutual Auth Demo from LTS Dev branch (#338)

Move the PKCS #11 Mutual Auth demo from the LTS development branch.

Remove left over and unused mbed TLS contexts.
This commit is contained in:
Carl Lundin
2020-10-12 15:40:54 -07:00
committed by GitHub
parent 56d44da270
commit ec12e1719c
15 changed files with 3491 additions and 16 deletions

View File

@ -85,18 +85,6 @@ static const char * pNoLowLevelMbedTlsCodeStr = "<No-Low-Level-Code>";
/*-----------------------------------------------------------*/
/**
* @brief mbed TLS entropy context for generation of random numbers.
*/
static mbedtls_entropy_context entropyContext;
/**
* @brief mbed TLS CTR DRBG context for generation of random numbers.
*/
static mbedtls_ctr_drbg_context ctrDrgbContext;
/*-----------------------------------------------------------*/
/**
* @brief Initialize the mbed TLS structures in a network connection.
*
@ -868,10 +856,6 @@ void TLS_FreeRTOS_Disconnect( NetworkContext_t * pNetworkContext )
/* Free mbed TLS contexts. */
sslContextFree( &( pNetworkContext->sslContext ) );
/* Free the contexts for random number generation. */
mbedtls_ctr_drbg_free( &ctrDrgbContext );
mbedtls_entropy_free( &entropyContext );
/* Clear the mutex functions for mbed TLS thread safety. */
mbedtls_threading_free_alt();
}