mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] add strerror messages for cryptographic-key errno values
@ 2021-11-07 13:28 Chris Webb
  0 siblings, 0 replies; only message in thread
From: Chris Webb @ 2021-11-07 13:28 UTC (permalink / raw)
  To: musl

the comments in the Linux uapi errno.h, but also match glibc's strerror.

These errno values are now commonly returned by mount(2) and therefore
passed to strerror() by mount(8) when working with encrypted filesystems.
 src/errno/__strerror.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/errno/__strerror.h b/src/errno/__strerror.h
index 2d992da5..14925907 100644
--- a/src/errno/__strerror.h
+++ b/src/errno/__strerror.h
@@ -102,3 +102,7 @@ E(EDQUOT,       "Quota exceeded")
 E(ENOMEDIUM,    "No medium found")
 E(EMEDIUMTYPE,  "Wrong medium type")
 E(EMULTIHOP,    "Multihop attempted")
+E(ENOKEY,       "Required key not available")
+E(EKEYEXPIRED,  "Key has expired")
+E(EKEYREVOKED,  "Key has been revoked")
+E(EKEYREJECTED, "Key was rejected by service")

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-07 14:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-07 13:28 [musl] [PATCH] add strerror messages for cryptographic-key errno values Chris Webb

Code repositories for project(s) associated with this inbox:

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).