diff options
author | Justus Winter <[email protected]> | 2017-06-13 13:34:03 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-06-14 07:35:47 +0000 |
commit | 404fa8211b6188a0abe83ef43a4b44d528c0b035 (patch) | |
tree | 57b36b4416f2c16989c32e25f7e688d0b8f3a4f7 /g10/key-check.h | |
parent | gpg: Refactor keyedit module. (diff) | |
download | gnupg-404fa8211b6188a0abe83ef43a4b44d528c0b035.tar.gz gnupg-404fa8211b6188a0abe83ef43a4b44d528c0b035.zip |
gpg: Refactor key checking and fixing.
* g10/Makefile.am (gpg_sources): Add new files.
* g10/gpgcompose.c (keyedit_print_one_sig): New stub.
* g10/keyedit.c (sig_comparison): Move to new module.
(check_all_keysigs): Likewise.
(fix_keyblock): Adapt callsite.
(keyedit_menu): Likewise.
* g10/key-check.c: New file.
* g10/key-check.h: Likewise.
GnuPG-bug-id: 2236
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'g10/key-check.h')
-rw-r--r-- | g10/key-check.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/g10/key-check.h b/g10/key-check.h new file mode 100644 index 000000000..3e4dd1031 --- /dev/null +++ b/g10/key-check.h @@ -0,0 +1,28 @@ +/* key-check.h - Detect and fix various problems with keys + * Copyright (C) 2017 g10 Code GmbH + * + * This file is part of GnuPG. + * + * GnuPG is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * GnuPG is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see <https://www.gnu.org/licenses/>. + */ + +#ifndef GNUPG_G10_PACKET_TOOLS_H +#define GNUPG_G10_PACKET_TOOLS_H + +#include "gpg.h" + +int key_check_all_keysigs (ctrl_t ctrl, kbnode_t kb, + int only_selected, int only_selfsigs); + +#endif /* GNUPG_G10_PACKET_TOOLS_H */ |