diff options
| author | David Shaw <[email protected]> | 2003-08-31 03:45:41 +0000 |
|---|---|---|
| committer | David Shaw <[email protected]> | 2003-08-31 03:45:41 +0000 |
| commit | 653da12d2cd8f6bedd411643ac903b8744dae505 (patch) | |
| tree | 9e007c254ab74ac932ad4ebbe1b10b320baa9426 /g10/keygen.c | |
| parent | * gpg.sgml: Document list-options (show-preferred-keyserver, (diff) | |
| download | gnupg-653da12d2cd8f6bedd411643ac903b8744dae505.tar.gz gnupg-653da12d2cd8f6bedd411643ac903b8744dae505.zip | |
* main.h, keygen.c (keygen_add_keyserver_url): Signature callback for
adding a keyserver URL.
* keyedit.c (keyedit_menu, menu_set_keyserver_url): New command to set
preferred keyserver to specified (or all) user IDs.
* build-packet.c (build_sig_subpkt): Set preferred keyserver flag while
building a preferred keyserver subpacket.
* keylist.c (show_policy_url): Policy URLs might be UTF8.
* keyedit.c (menu_addrevoker): Fix leaking a few bytes.
Diffstat (limited to 'g10/keygen.c')
| -rw-r--r-- | g10/keygen.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/g10/keygen.c b/g10/keygen.c index edf9badce..4b736e16d 100644 --- a/g10/keygen.c +++ b/g10/keygen.c @@ -581,6 +581,16 @@ keygen_add_std_prefs( PKT_signature *sig, void *opaque ) } int +keygen_add_keyserver_url(PKT_signature *sig, void *opaque) +{ + const char *url=opaque; + + build_sig_subpkt(sig,SIGSUBPKT_PREF_KS,url,strlen(url)); + + return 0; +} + +int keygen_add_revkey(PKT_signature *sig, void *opaque) { struct revocation_key *revkey=opaque; |
