1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 302afcb6f6
gpg: Add option --assert-pubkey_algo.
* g10/keyid.c (parse_one_algo_string): New.
(compare_pubkey_string_part): New.
(compare_pubkey_string): New.
* g10/verify.c (check_assert_signer_list): New.
* g10/mainproc.c (check_sig_and_print): Call check_assert_pubkey_algo.
* g10/options.h (opt): Add field assert_pubkey_algos.
* g10/gpg.c (oAssertPubkeyAlgo): New.
(opts): Add "--assert-pubkey_algo".
(assert_pubkey_algo_false): New.
(main): Parse option.
(g10_exit): Reorder RC modifications.  Check assert_pubkey_algo_false.
* common/status.h (ASSERT_PUBKEY_ALGOS): new.
* common/t-support.h (LEAN_T_SUPPORT): Use a simplified version if
this macro is set.

* g10/gpgv.c (oAssertPubkeyAlgo): New.
(opts): Add "--assert-pubkey_algo".
(assert_pubkey_algo_false): New.
(main): Parse option.
(g10_exit): Check assert_pubkey_algo_false.

* g10/t-keyid.c: New.
* g10/Makefile.am: Add t-keyid.
* g10/test-stubs.c: Add assert_pubkey_algos and assert_signer_list and
remove from other tests.
(check_assert_signer_list): Ditto.
(check_assert_pubkey_algo): Ditto.
--

GnuPG-bug-id: 6946
2024-02-10 14:26:55 +01:00
..
2023-06-20 09:08:14 +09:00
2022-03-02 21:12:28 +02:00
2020-11-11 09:13:13 +09:00
2021-11-13 21:03:02 +01:00
2022-11-09 10:37:58 +09:00
2022-11-09 10:37:58 +09:00
2015-02-04 09:15:34 +01:00
2024-02-10 14:26:55 +01:00
2017-03-07 20:25:54 +09:00
2024-02-10 14:26:55 +01:00
2017-03-07 20:25:54 +09:00
2018-10-25 16:53:05 -04:00
2024-02-10 14:26:55 +01:00
2024-01-23 14:19:40 +01:00
2024-02-10 14:26:55 +01:00
2024-02-10 14:26:55 +01:00
2017-03-07 20:25:54 +09:00
2020-02-18 18:07:46 -05:00
2019-07-11 12:32:44 +09:00
2019-07-23 12:04:21 +09:00
2021-03-24 14:51:42 +09:00
2017-01-23 19:16:55 +01:00
2021-05-20 13:38:39 +02:00
2017-02-21 13:11:46 -05:00
2017-03-07 20:32:09 +09:00
2017-03-07 20:25:54 +09:00
2016-03-08 14:08:49 +01:00
2024-02-10 14:26:55 +01:00
2021-05-20 13:38:39 +02:00
2016-12-06 12:16:56 +01:00
2023-02-16 18:10:03 +01:00
2024-02-10 14:26:55 +01:00