1KEYCTL_CLEAR(3)           Linux Key Management Calls           KEYCTL_CLEAR(3)
2
3
4

NAME

6       keyctl_clear - clear a keyring
7

SYNOPSIS

9       #include <keyutils.h>
10
11       long keyctl_clear(key_serial_t keyring);
12

DESCRIPTION

14       keyctl_clear() clears the contents of a keyring.
15
16       The caller must have write permission on a keyring to be able clear it.
17

RETURN VALUE

19       On  success  keyctl_clear()  returns 0.  On error, the value -1 will be
20       returned and errno will have been set to an appropriate error.
21

ERRORS

23       ENOKEY The keyring specified is invalid.
24
25       EKEYEXPIRED
26              The keyring specified has expired.
27
28       EKEYREVOKED
29              The keyring specified had been revoked.
30
31       EACCES The keyring exists, but is not writable by the calling process.
32

LINKING

34       This is a library function that can  be  found  in  libkeyutils.   When
35       linking, -lkeyutils should be specified to the linker.
36

SEE ALSO

38       keyctl(1), add_key(2), keyctl(2), request_key(2), keyctl(3),
39       keyrings(7), keyutils(7)
40
41
42
43
44Linux                             4 May 2006                   KEYCTL_CLEAR(3)
Impressum