« rnp_key_remove
rnp_list_keys »

rnp_key_revoke

(PECL rnp >= 0.1.1)

rnp_key_revoke — Revoke a key or subkey by generating and adding revocation signature

説明

function 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.

パラメータ

ffi

The FFI object returned by rnp_ffi_create().

key_fp

Key fingerprint.

flags

Currently must be 0.

options

An associative array with options.

Key Data type 説明
"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.

戻り値

Returns true on success失敗した場合に false を返します.

関連キーワード:
revocation   signature   Revoke   subkey   generating   adding   revoke   options   reason   keys   flags   hash   used   code   remove   list   RnpFFI   Note   need   call   save   write   keyring   returned   create
関連する関数・ページ:
function.rnp-key-export-revocation   function.rnp-key-export-autocrypt   function.rnp-op-generate-key   book.rnp   ref.rnp   function.rnp-op-sign-detached