sh2lib: Bump version to 1.0.1

Changes:
1) Enabled support for esp_crt_bundle with esp_tls.
This commit is contained in:
Aditya Patwardhan 2022-04-13 04:52:33 +05:30
parent 6995ee9bf7
commit 237a37adaf
3 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
version: "1.0.0"
version: "1.0.1"
description: HTTP2 TLS Abstraction Layer
url: https://github.com/espressif/idf-extra-components/tree/master/sh2lib
dependencies:

View File

@ -242,6 +242,7 @@ int sh2lib_connect(struct sh2lib_config_t *cfg, struct sh2lib_handle *hd)
.alpn_protos = proto,
.cacert_buf = cfg->cacert_buf,
.cacert_bytes = cfg->cacert_bytes,
.crt_bundle_attach = cfg->crt_bundle_attach,
.non_block = true,
.timeout_ms = 10 * 1000,
};

View File

@ -41,6 +41,9 @@ struct sh2lib_config_t {
const char *uri; /*!< Pointer to the URI that should be connected to */
const unsigned char *cacert_buf; /*!< Pointer to the buffer containing CA certificate */
unsigned int cacert_bytes; /*!< Size of the CA certifiacte pointed by cacert_buf */
esp_err_t (*crt_bundle_attach)(void *conf);
/*!< Function pointer to esp_crt_bundle_attach. Enables the use of certification
bundle for server verification, must be enabled in menuconfig */
};
/** Flag indicating receive stream is reset */