rnp_locate_key
PHP Manual
PHP Manual»Rnp Funktionen»rnp_locate_key

rnp_locate_key

(PECL rnp >= 0.1.1)

rnp_locate_key — Search for the key

Beschreibung

function rnp_locate_key(RnpFFI $ffi, string $identifier_type, string $identifier): string|false

Note: only valid userids are checked while searching by userid.

Parameter-Liste

ffi

Das von rnp_ffi_create() zurückgegebene FFI-Objekt.

identifier_type

Identifier type string: "userid", "keyid", "fingerprint", "grip".

identifier

PGP User ID (name and email) for "userid" type, hexadecimal string that represents key id, fingerprint or key grip correspondingly.

Rückgabewerte

Returns hexadecimal fingerprint of the key found on successBei einem Fehler wird false zurückgegeben..

To Top