mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] add missing strerror text for key management.
@ 2022-02-16 23:06 me
  0 siblings, 0 replies; only message in thread
From: me @ 2022-02-16 23:06 UTC (permalink / raw)
  To: musl; +Cc: pelco

From: pelco <>

These error code messages are useful when dealing with public-private
keys and client-server applications.

I have been working on client applications that use libcurl to
communicate with a server. Usually, to access the APIs, clients have
to provide a secret key that the server can revoke or reject
(e.g., HTTP 401). Furthermore, we use OpenSSL to generate private keys
and x509 certificates and periodically check for their expiration time.
It would be nice to log the correct text message instead of "No error
information" when using strerror.

Signed-off-by: pelco <>
 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:[~2022-02-16 23:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-16 23:06 [musl] [PATCH] add missing strerror text for key management me

Code repositories for project(s) associated with this public 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).