فهرست منبع

modify comments on esp_tls_cfg, to clarify that other formats besides PEM (such as DER) might be used as well depending on mbedtls-support

Signed-off-by: David Cermak <cermak@espressif.com>
Henning Fleddermann 6 سال پیش
والد
کامیت
73624e8560
1فایلهای تغییر یافته به همراه12 افزوده شده و 6 حذف شده
  1. 12 6
      components/esp-tls/esp_tls.h

+ 12 - 6
components/esp-tls/esp_tls.h

@@ -90,22 +90,28 @@ typedef struct esp_tls_cfg {
                                                  - where 'h2' is the protocol name */
                                                  - where 'h2' is the protocol name */
  
  
     const unsigned char *cacert_pem_buf;    /*!< Certificate Authority's certificate in a buffer.
     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
     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
     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
     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
     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
     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 */
     const unsigned char *clientkey_password;/*!< Client key decryption password string */