keyutil.h | keyutil.h | |||
---|---|---|---|---|
skipping to change at line 76 | skipping to change at line 76 | |||
#define KEYCTL_DESCRIBE 6 /* describe a key */ | #define KEYCTL_DESCRIBE 6 /* describe a key */ | |||
#define KEYCTL_CLEAR 7 /* clear contents of a keyri ng */ | #define KEYCTL_CLEAR 7 /* clear contents of a keyri ng */ | |||
#define KEYCTL_LINK 8 /* link a key into a keyring */ | #define KEYCTL_LINK 8 /* link a key into a keyring */ | |||
#define KEYCTL_UNLINK 9 /* unlink a key from a keyri ng */ | #define KEYCTL_UNLINK 9 /* unlink a key from a keyri ng */ | |||
#define KEYCTL_SEARCH 10 /* search for a key in a key ring */ | #define KEYCTL_SEARCH 10 /* search for a key in a key ring */ | |||
#define KEYCTL_READ 11 /* read a key or keyring's c ontents */ | #define KEYCTL_READ 11 /* read a key or keyring's c ontents */ | |||
#define KEYCTL_INSTANTIATE 12 /* instantiate a partially c onstructed key */ | #define KEYCTL_INSTANTIATE 12 /* instantiate a partially c onstructed key */ | |||
#define KEYCTL_NEGATE 13 /* negate a partially constr ucted key */ | #define KEYCTL_NEGATE 13 /* negate a partially constr ucted key */ | |||
#define KEYCTL_SET_REQKEY_KEYRING 14 /* set default request-key k eyring */ | #define KEYCTL_SET_REQKEY_KEYRING 14 /* set default request-key k eyring */ | |||
/* key management error codes */ | ||||
#ifdef NO_GLIBC_KEYERR | ||||
#if defined(__i386__) || defined(__PPC64__) || defined(__PPC__) || defined( | ||||
__x86_64__) | ||||
#define ENOKEY 126 /* Required key not available */ | ||||
#define EKEYEXPIRED 127 /* Key has expired */ | ||||
#define EKEYREVOKED 128 /* Key has been revoked */ | ||||
#define EKEYREJECTED 129 /* Key was rejected by service */ | ||||
#else | ||||
#error key management error codes not supported on this arch | ||||
#endif | ||||
#endif | ||||
/* | /* | |||
* syscall wrappers | * syscall wrappers | |||
*/ | */ | |||
extern key_serial_t add_key(const char *type, | extern key_serial_t add_key(const char *type, | |||
const char *description, | const char *description, | |||
const void *payload, | const void *payload, | |||
size_t plen, | size_t plen, | |||
key_serial_t ringid); | key_serial_t ringid); | |||
extern key_serial_t request_key(const char *type, | extern key_serial_t request_key(const char *type, | |||
End of changes. 1 change blocks. | ||||
15 lines changed or deleted | 0 lines changed or added | |||