do not reserve ATMEL_SLOT_ECDHE type for TNGTLS

This commit is contained in:
Vysakh P Pillai
2021-04-27 16:51:49 +05:30
committed by GitHub
parent c34fcf908c
commit e716fcc635

View File

@@ -263,7 +263,12 @@ int atmel_ecc_alloc(int slotType)
goto exit;
case ATMEL_SLOT_ECDHE:
slotId = ATECC_SLOT_ECDHE_PRIV;
#ifdef WOLFSSL_ATECC_TNGTLS
/* not reserved in mSlotList, so return */
goto exit;
#else
break;
#endif
case ATMEL_SLOT_ECDHE_ENC:
slotId = ATECC_SLOT_ENC_PARENT;
#ifdef WOLFSSL_ATECC_TNGTLS