FIND_KEY_BY_TYPE_AND_NAME - Online Linux Manual PageSection : 3
Updated : 10 Sep 2013
Source : Linux
Note : Linux Key Utility Calls

NAMEfind_key_by_type_and_name − find a key by type and name

SYNOPSIS#include <keyutils.h> key_serial_t find_key_by_type_and_name(const char *type, const char *description, key_serial_t destringid);

DESCRIPTION find_key_by_type_and_name() searches for a key with the given type and exact description, firstly in the thread, process and session keyrings to which a process is subscribed and secondly in /proc/keys. If a key is found, and destringid is not 0 and specifies a keyring, then the found key will be linked into it.

RETURN VALUEThe function returns the ID of the key if a key was found or −1 otherwise.

ERRORSENOKEY  No key was found or the keyring specified is invalid. EKEYEXPIRED  The key or keyring have expired. EKEYREVOKED  The key or keyring have been revoked. EACCES  The key is not accessible or keyring exists, but is not writable by the calling process.

LINKINGWhen linking, −lkeyutils should be specified to the linker.

SEE ALSOrequest_key(2), keyctl(3), keyrings(7)
0
Johanes Gumabo
Data Size   :   5,067 byte
man-find_key_by_type_and_name.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 165,946
Visitor ID   :     :  
Visitor IP   :   52.14.255.122   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.