libc: minimal: Add error codes for key management

This adds EKEY* codes, as defined by Linux, using the same numeric
values as Linux.

Signed-off-by: Nils Montenegro <nils.montenegro@nordicsemi.no>
This commit is contained in:
Nils Montenegro 2018-08-28 11:47:06 +02:00 committed by Anas Nashif
parent 7b0ce85242
commit 25fb2302f1

View file

@ -126,6 +126,12 @@ extern "C" {
#define ETIME 79 /* STREAMS timeout occurred */
#define ENOMSG 80 /* Unexpected message type */
/* specific encryption errno values */
#define ENOKEY 126 /* Required key not available */
#define EKEYEXPIRED 127 /* Required key not available */
#define EKEYREVOKED 128 /* Key has been revoked */
#define EKEYREJECTED 129 /* Key was rejected by service */
#define EILSEQ 138 /* Illegal byte sequence */
#ifdef __cplusplus