PHP 8.4.0 RC4 available for testing

rnp_key_revoke

(PECL rnp >= 0.1.1)

rnp_key_revokeRevoke a key or subkey by generating and adding revocation signature

Beschreibung

rnp_key_revoke(
    RnpFFI $ffi,
    string $key_fp,
    int $flags,
    array $options = ?
): bool

Note: you need to call rnp_save_keys() to write updated keyring(s) out.

Parameter-Liste

ffi

Das von rnp_ffi_create zurückgegebene FFI-Objekt.

key_fp

Key fingerprint.

flags

Currently must be 0.

options

An associative array with options.

Key Data type Beschreibung
"hash" string Set hash algorithm used during signature calculation.
"code" string Code reason for revocation code. Possible values: 'no', 'superseded', 'compromised', 'retired'. If not defined, then value 'no' will be used by default.
"reason" string Textual representation of the reason for revocation.

Rückgabewerte

Returns true on successBei einem Fehler wird false zurückgegeben..

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top