mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
make DNS and URI fields work in gpgsm --gen-key.
* sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Actually set mb_uri and mb_dns.avoid buffer strncpy-induced buffer overrun
This commit is contained in:
parent
20c9ac4df3
commit
8d7522837c
@ -339,12 +339,12 @@ gpgsm_gencertreq_tty (ctrl_t ctrl, estream_t output_stream)
|
||||
/* DNS names. */
|
||||
tty_printf (_("Enter DNS names"));
|
||||
tty_printf (_(" (optional; end with an empty line):\n"));
|
||||
ask_mb_lines (&mb_email, "Name-DNS: ");
|
||||
ask_mb_lines (&mb_dns, "Name-DNS: ");
|
||||
|
||||
/* URIs. */
|
||||
tty_printf (_("Enter URIs"));
|
||||
tty_printf (_(" (optional; end with an empty line):\n"));
|
||||
ask_mb_lines (&mb_email, "Name-URI: ");
|
||||
ask_mb_lines (&mb_uri, "Name-URI: ");
|
||||
|
||||
|
||||
/* Want a self-signed certificate? */
|
||||
|
Loading…
x
Reference in New Issue
Block a user