1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-01 22:28:02 +02:00
gnupg/sm
Werner Koch 825abec0e7
gpg,sm: New option --with-key-screening.
* common/pkscreening.c: New.
* common/pkscreening.h: New.
* common/Makefile.am (common_sources): Add them.
* g10/gpg.c (opts): New option --with-key-screening.
* g10/options.h (struct opt): New field with_key_screening.
* g10/keylist.c: Include pkscreening.h.
(print_pk_screening): New.
(list_keyblock_print): Call it.
(print_compliance_flags): Call it.
* sm/gpgsm.c (opts): New option --with-key-screening.
* sm/gpgsm.h (scruct opt): New field with_key_screening.
* sm/keylist.c:  Include pkscreening.h.
(print_pk_screening): New.
(print_compliance_flags): Call it.  Add new arg cert.
(list_cert_colon): Pass arg cert
(list_cert_std): Call print_pk_screening.
* sm/fingerprint.c (gpgsm_get_rsa_modulus): New.
--

This new option can be used to detect ROCA affected keys.  To scan an
entire keyring and print the affected fingerprints use this:

  gpg -k --with-key-screening --with-colons | gawk -F: \
       '$1~/pub|sub|sec|ssb|crt/ && $18~/\<6001\>/ {found=1;next};
        $1=="fpr" && found {print $10}; {found=0}'

The same works for gpgsm.  Note that we need gawk due to the "\<" in
the r.e.

Signed-off-by: Werner Koch <wk@gnupg.org>
2017-10-17 21:10:19 +02:00
..
call-agent.c Explain the "server is older than xxx warning". 2017-07-31 11:20:47 +02:00
call-dirmngr.c Explain the "server is older than xxx warning". 2017-07-31 11:20:47 +02:00
certchain.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
certcheck.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
certdump.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
certlist.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
certreqgen-ui.c gpgsm: default to 3072-bit keys. 2017-09-08 11:37:42 -04:00
certreqgen.c gpgsm: default to 3072-bit keys. 2017-09-08 11:37:42 -04:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
decrypt.c gpg,sm: Error out on compliance mismatch while decrypting. 2017-08-01 08:41:47 +02:00
delete.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
encrypt.c gpg,sm: String changes for compliance diagnostics. 2017-07-28 17:46:43 +02:00
export.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
fingerprint.c gpg,sm: New option --with-key-screening. 2017-10-17 21:10:19 +02:00
gpgsm-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpgsm.c gpg,sm: New option --with-key-screening. 2017-10-17 21:10:19 +02:00
gpgsm.h gpg,sm: New option --with-key-screening. 2017-10-17 21:10:19 +02:00
import.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
keydb.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
keydb.h gpg,sm: Add STATUS_ERROR keydb_search and keydb_add-resource. 2016-11-10 17:07:28 +01:00
keylist.c gpg,sm: New option --with-key-screening. 2017-10-17 21:10:19 +02:00
Makefile.am Remove -I option to common. 2017-03-07 20:25:54 +09:00
minip12.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
minip12.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
misc.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
passphrase.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
passphrase.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
qualified.c sm: Move qualified.txt from datadir into sysconfdir 2017-09-11 12:42:53 +02:00
server.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
sign.c gpg,sm: String changes for compliance diagnostics. 2017-07-28 17:46:43 +02:00
verify.c gpg,sm: String changes for compliance diagnostics. 2017-07-28 17:46:43 +02:00