Home GnuPG
Diffusion GnuPG 9b075575cdc5

gpg: Extend import-option import-export to print PKA or DANE.
9b075575cdc5Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Extend import-option import-export to print PKA or DANE.

* g10/export.c (do_export_stream): Move PKA and DANE printing helper
code to ...
(print_pka_or_dane_records): this fucntion.
(write_keyblock_to_output): Add arg OPTIOSN and call
print_pka_or_dane_records if requested.

It is now possible to print a DANE record given a a file with a key
without importing the key first:

gpg --export-options export-dane \
    --import-options import-export \
    --import-filter keep-uid='mbox =~ alpha' \
    --import FILE_WITH_KEY

Using the filter we only print a user id with the substring "alpha" in
the addr-spec.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jul 12 2016, 3:09 PM
Parents
rG0f5b105d9678: gpg: Move a function from import.c to export.c.
Branches
Unknown
Tags
Unknown

Event Timeline