29#ifndef SOTA_MANIFEST_H
30#define SOTA_MANIFEST_H
45#define SOTA_MANIFEST_V1_MAGIC "SimpleOTA-Manifest-v1"
69 bool offer_has_manifest)
71 bool can_check = has_project && num_keys > 0 && offer_has_manifest;
88 uint32_t build,
const char *checksum);
sota_manifest_gate_t
What to do about an offer's manifest (see sota_manifest_gate()).
Definition sota_manifest.h:48
@ SOTA_MANIFEST_FAIL_CLOSED
Required, and absent or uncheckable: refuse.
Definition sota_manifest.h:51
@ SOTA_MANIFEST_VERIFY
Check it before the download.
Definition sota_manifest.h:50
@ SOTA_MANIFEST_SKIP
Not checked: the image signature decides.
Definition sota_manifest.h:49
bool sota_manifest_feed(sota_sig_verifier_t *v, const char *project_id, const char *key_id, uint32_t build, const char *checksum)
Feed a version 1 manifest's bytes to a verifier that sota_verifier_begin() has started with the manif...
bool sota_manifest_field_ok(const char *s)
True for a project id or key id that can stand on a manifest line: no control characters,...
static sota_manifest_gate_t sota_manifest_gate(bool required, bool has_project, uint8_t num_keys, bool offer_has_manifest)
Decide from the device's own settings, never from what the offer claims about itself.
Definition sota_manifest.h:67
Ed25519 firmware-signature helpers for the SimpleOTA clients.
A streaming signature check against each candidate key at once.
Definition sota_signing.h:112