Lines Matching refs:metadata
114 static int metadata_hash_get(char *metadata) in metadata_hash_get() argument
122 if (updatehub_integrity_update(&local_crypto_ctx, metadata, strlen(metadata))) { in metadata_hash_get()
685 static void probe_cb(char *metadata, size_t metadata_size) in probe_cb() argument
728 memset(metadata, 0, metadata_size); in probe_cb()
729 memcpy(metadata, payload_start, payload_len); in probe_cb()
734 tmp_len = strlen(metadata); in probe_cb()
764 char *metadata = k_malloc(MAX_DOWNLOAD_DATA); in z_impl_updatehub_probe() local
772 metadata == NULL || metadata_copy == NULL) { in z_impl_updatehub_probe()
824 probe_cb(metadata, MAX_DOWNLOAD_DATA); in z_impl_updatehub_probe()
831 if (metadata_hash_get(metadata) < 0) { in z_impl_updatehub_probe()
837 LOG_DBG("metadata size: %d", strlen(metadata)); in z_impl_updatehub_probe()
838 LOG_HEXDUMP_DBG(metadata, MAX_DOWNLOAD_DATA, "metadata"); in z_impl_updatehub_probe()
840 memcpy(metadata_copy, metadata, strlen(metadata)); in z_impl_updatehub_probe()
841 if (json_obj_parse(metadata, strlen(metadata), in z_impl_updatehub_probe()
938 k_free(metadata); in z_impl_updatehub_probe()