diff --git a/components/esp-tls/esp_tls.h b/components/esp-tls/esp_tls.h index 1c2f785ea5..ebdffa49e2 100644 --- a/components/esp-tls/esp_tls.h +++ b/components/esp-tls/esp_tls.h @@ -90,22 +90,28 @@ typedef struct esp_tls_cfg { - where 'h2' is the protocol name */ const unsigned char *cacert_pem_buf; /*!< Certificate Authority's certificate in a buffer. - This buffer should be NULL terminated */ + Format may be PEM or DER, depending on mbedtls-support + This buffer should be NULL terminated in case of PEM */ unsigned int cacert_pem_bytes; /*!< Size of Certificate Authority certificate - pointed to by cacert_pem_buf */ + pointed to by cacert_pem_buf + (including NULL-terminator in case of PEM format) */ const unsigned char *clientcert_pem_buf;/*!< Client certificate in a buffer - This buffer should be NULL terminated */ + Format may be PEM or DER, depending on mbedtls-support + This buffer should be NULL terminated in case of PEM */ unsigned int clientcert_pem_bytes; /*!< Size of client certificate pointed to by - clientcert_pem_buf */ + clientcert_pem_buf + (including NULL-terminator in case of PEM format) */ const unsigned char *clientkey_pem_buf; /*!< Client key in a buffer - This buffer should be NULL terminated */ + Format may be PEM or DER, depending on mbedtls-support + This buffer should be NULL terminated in case of PEM */ unsigned int clientkey_pem_bytes; /*!< Size of client key pointed to by - clientkey_pem_buf */ + clientkey_pem_buf + (including NULL-terminator in case of PEM format) */ const unsigned char *clientkey_password;/*!< Client key decryption password string */