esp_tls: Make cacert_pem_bytes field a mutable integer
authorAngus Gratton <angus@espressif.com>
Mon, 18 Mar 2019 05:35:00 +0000 (16:35 +1100)
committerbot <bot@espressif.com>
Mon, 18 Mar 2019 23:17:02 +0000 (23:17 +0000)
Ref https://esp32.com/viewtopic.php?f=2&t=9737&p=40278#p40277

components/esp-tls/esp_tls.h

index 92b0734ebef8066e15a7bfd0179a4c6ac0149b03..d5d30c38ca1960be651ce9935915c826c44d8dec 100644 (file)
@@ -48,7 +48,7 @@ typedef struct esp_tls_cfg {
  
     const unsigned char *cacert_pem_buf;    /*!< Certificate Authority's certificate in a buffer */
  
-    const 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 */
  
     bool non_block;                         /*!< Configure non-blocking mode. If set to true the