array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.rnp-key-revoke.php', 1 => 'rnp_key_revoke', ), 'up' => array ( 0 => 'ref.rnp.php', 1 => 'Rnp Functions', ), 'prev' => array ( 0 => 'function.rnp-key-remove.php', 1 => 'rnp_key_remove', ), 'next' => array ( 0 => 'function.rnp-list-keys.php', 1 => 'rnp_list_keys', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/rnp/functions/rnp-key-revoke.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL rnp >= 0.1.1)
rnp_key_revoke — Revoke a key or subkey by generating and adding revocation signature
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 | Description |
---|---|---|
"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. |