logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

keyctl_clear - clear a keyring

Description

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

Errors

ENOKEY The keyring specified is invalid. EKEYEXPIRED The keyring specified has expired. EKEYREVOKED The keyring specified had been revoked. EACCES The keyring exists, but is not writable by the calling process.

Linking

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

Name

keyctl_clear - clear a keyring

Return Value

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

See Also

keyctl(1), add_key(2), keyctl(2), request_key(2), keyctl(3), keyrings(7), keyutils(7) Linux 4 May 2006 KEYCTL_CLEAR(3)

Synopsis

#include<keyutils.h>longkeyctl_clear(key_serial_tkeyring);

See Also