Add variable PKCS11 label support to using_mbedtls_pkcs11 (#723)

The previous "using_mbedtls_pkcs11.c" implementation requires using the device key and device certificate stored under the labels "pkcs11configLABEL_DEVICE_PRIVATE_KEY_FOR_TLS" and "pkcs11configLABEL_DEVICE_CERTIFICATE_FOR_TLS".

This commit updates the NetworkCredentials to include fields for pClientCertLabel and pPrivateKeyLabel, so other labels can be used with PKCS11. This matches the behavior seen in the CSDK.

This commit also updates the "pkcs11_mqtt_mutual_auth_demo" to set the newly-added NetworkCredentials fields.
This commit is contained in:
johnrhen 2021-11-26 10:49:59 -08:00 committed by GitHub
parent d2329791aa
commit b1b3a0a3e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 64 additions and 14 deletions

View file

@ -1524,6 +1524,7 @@ pcks
pcl
pclabelname
pclientcert
pclientcertlabel
pclk
pclkb
pclwipappsblockinggettxbuffer
@ -1693,6 +1694,7 @@ ppcmessagetodisplay
ppollperiod
ppr
pprivatekey
pprivatekeylabel
ppublishinfo
ppvcontext
ppxidletaskstackbuffer