From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5784 invoked from network); 16 Feb 2022 23:06:41 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 16 Feb 2022 23:06:41 -0000 Received: (qmail 24125 invoked by uid 550); 16 Feb 2022 23:06:38 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 24090 invoked from network); 16 Feb 2022 23:06:38 -0000 X-Rid: me@pedroo.net@94.60.138.191 From: me@pedroo.net To: musl@lists.openwall.com Cc: pelco Date: Wed, 16 Feb 2022 23:06:17 +0000 Message-Id: <20220216230617.8014-1-me@pedroo.net> X-Mailer: git-send-email 2.17.1 X-CMAE-Envelope: MS4xfKVsO60S3NTBkyTx3FYHLcwS+1Q0XXFc6tP1t7n6dXthLW5VNOMC+ChIgq1fGyRqTMU31A6UE+jCfa+XGImTVU7albv99mFoJHy37apTFlcbQjmnsmSM TSSbMjrEIv6KRWQhHDpBIbYAejgyqdi44Hix+VF+tzzf0SaYJfZqVHb8WaY/bqXbqDAfQuKZLLpGt2pitG8Odk+dC0pfPHZqhHc= Subject: [musl] [PATCH] add missing strerror text for key management. 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") -- 2.17.1