diff options
author | Neal H. Walfield <neal@g10code.com> | 2016-12-02 11:42:38 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@g10code.com> | 2016-12-06 12:16:56 +0100 |
commit | bd9ebe1404c1395edd0e029023a9e780c90f6d73 (patch) | |
tree | a8fd1d671968c15c3b0d74af485474bf9c6e6954 /g10/tofu.c | |
parent | gpg: New option --quick-set-expire. (diff) | |
download | gnupg2-bd9ebe1404c1395edd0e029023a9e780c90f6d73.tar.xz gnupg2-bd9ebe1404c1395edd0e029023a9e780c90f6d73.zip |
g10: Remove dead code.
* g10/tofu.c (tofu_set_policy_by_keyid): Remove function.
Signed-off-by: Neal H. Walfield <neal@g10code.com>
Diffstat (limited to 'g10/tofu.c')
-rw-r--r-- | g10/tofu.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/g10/tofu.c b/g10/tofu.c index 18f9c5486..5b3e84c2d 100644 --- a/g10/tofu.c +++ b/g10/tofu.c @@ -3760,23 +3760,6 @@ tofu_set_policy (ctrl_t ctrl, kbnode_t kb, enum tofu_policy policy) return err; } -/* Set the TOFU policy for all non-revoked user ids in the KEY with - the key id KEYID to POLICY. - - If no key is available with the specified key id, then this - function returns GPG_ERR_NO_PUBKEY. - - Returns 0 on success and an error code otherwise. */ -gpg_error_t -tofu_set_policy_by_keyid (ctrl_t ctrl, u32 *keyid, enum tofu_policy policy) -{ - kbnode_t keyblock = get_pubkeyblock (keyid); - if (! keyblock) - return gpg_error (GPG_ERR_NO_PUBKEY); - - return tofu_set_policy (ctrl, keyblock, policy); -} - /* Return the TOFU policy for the specified binding in *POLICY. If no policy has been set for the binding, sets *POLICY to TOFU_POLICY_NONE. |