Statement on glibc/iconv Vulnerability

gnupg_deletekey

(PECL gnupg >= 0.5)

gnupg_deletekeyキーを削除する

説明

gnupg_deletekey(resource $identifier, string $key, bool $allow_secret): bool

パラメータ

identifier

gnupg_init() あるいは gnupg のコールで得られた gnupg ID。

key

削除するキー。

allow_secret

秘密鍵も同時に削除するかどうかを指定します。

戻り値

成功した場合に true を、失敗した場合に false を返します。

例1 手続き型の gnupg_deletekey() の例

<?php
$res
= gnupg_init();
gnupg_deletekey($res, "8660281B6051D071D94B5B230549F9DC851566DC");
?>

例2 オブジェクト指向の gnupg_deletekey() の例

<?php
$gpg
= new gnupg();
$gpg->deletekey("8660281B6051D071D94B5B230549F9DC851566DC");
?>

add a note

User Contributed Notes

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