Skip to main content

ERR_NOT_ENROLLED

Constant ERR_NOT_ENROLLED 

Source
pub const ERR_NOT_ENROLLED: i64 = -32058;
Expand description

self_enroll_detach on a device with NO adopted binding in effect (#214): there is no live enrollment to exit, and nothing live was changed. A STALE enrollment file left on disk (by a boot that declined a binding that did not verify for this endpoint) is removed first, so the next boot will not re-adopt it, and the message says when that happened. A removal that fails is not this code: it is an uncoded -32000 naming the file.

A UI that offers the detach only when self_user_id is present and self_user_key_held is false does not send it except in a race — a concurrent detach, or an import (which also clears the slot) — and can treat it as “already done”. (It also never cleans a boot-declined file, which is harmless: boot declines it again on every start.) Offering it on !self_user_key_held alone also offers it to a node with no user key at all, which gets this code.