Merge branch 'contrib/github_pr_8544' into 'master'

esp_https_ota: add user_ctx to decrypt_cb (GitHub PR)

Closes IDFGH-6924

See merge request espressif/esp-idf!17456
This commit is contained in:
Mahavir Jain
2022-03-11 15:43:38 +08:00
3 changed files with 7 additions and 3 deletions
@@ -41,7 +41,7 @@ extern const char rsa_private_pem_end[] asm("_binary_private_pem_end");
static esp_decrypt_handle_t decrypt_handle;
static esp_err_t _decrypt_cb(decrypt_cb_arg_t *args)
static esp_err_t _decrypt_cb(decrypt_cb_arg_t *args, void *user_ctx)
{
esp_err_t err;
pre_enc_decrypt_arg_t pargs = {};
@@ -106,6 +106,7 @@ void pre_encrypted_ota_task(void *pvParameter)
.max_http_request_size = CONFIG_EXAMPLE_HTTP_REQUEST_SIZE,
#endif
.decrypt_cb = _decrypt_cb,
.decrypt_user_ctx = NULL
};
esp_https_ota_handle_t https_ota_handle = NULL;