From 6d2701f439a801e1f81a0dbc2246a6defc97a997604cd92d2cdcd8d45370e640 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 22 Nov 2016 17:57:36 +0000 Subject: [PATCH] Accepting request 441009 from Base:System GnuPG 2.1.16 (forwarded request 441007 from AndreasStieger) OBS-URL: https://build.opensuse.org/request/show/441009 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gpg2?expand=0&rev=109 --- ...-to-14479e2-fix-void-return-in-non-v.patch | 28 --- gnupg-2.1.15-bsc993324-status-output.patch | 190 ------------------ gnupg-2.1.15.tar.bz2 | 3 - gnupg-2.1.15.tar.bz2.sig | Bin 287 -> 0 bytes gnupg-2.1.16.tar.bz2 | 3 + gnupg-2.1.16.tar.bz2.sig | Bin 0 -> 310 bytes gpg2.changes | 47 +++++ gpg2.spec | 6 +- 8 files changed, 51 insertions(+), 226 deletions(-) delete mode 100644 0001-common-Follow-up-to-14479e2-fix-void-return-in-non-v.patch delete mode 100644 gnupg-2.1.15-bsc993324-status-output.patch delete mode 100644 gnupg-2.1.15.tar.bz2 delete mode 100644 gnupg-2.1.15.tar.bz2.sig create mode 100644 gnupg-2.1.16.tar.bz2 create mode 100644 gnupg-2.1.16.tar.bz2.sig diff --git a/0001-common-Follow-up-to-14479e2-fix-void-return-in-non-v.patch b/0001-common-Follow-up-to-14479e2-fix-void-return-in-non-v.patch deleted file mode 100644 index bde6238..0000000 --- a/0001-common-Follow-up-to-14479e2-fix-void-return-in-non-v.patch +++ /dev/null @@ -1,28 +0,0 @@ -From ae52c486ef5e71445aa0adfdac30124abff7da46 Mon Sep 17 00:00:00 2001 -From: Andreas Stieger -Date: Fri, 19 Aug 2016 23:09:13 +0200 -Subject: [PATCH] common: Follow-up to 14479e2, fix void return in non-void - function - -* simple-pwquery.c (agent_open): return -1 in errout label as documented. - -Signed-off-by: Andreas Stieger ---- - common/simple-pwquery.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/common/simple-pwquery.c b/common/simple-pwquery.c -index 240451b..0c3233b 100644 ---- a/common/simple-pwquery.c -+++ b/common/simple-pwquery.c -@@ -285,6 +285,7 @@ agent_open (assuan_context_t *ctx) - errout: - assuan_release (*ctx); - *ctx = NULL; -+ return -1; - } - - --- -2.6.6 - diff --git a/gnupg-2.1.15-bsc993324-status-output.patch b/gnupg-2.1.15-bsc993324-status-output.patch deleted file mode 100644 index 461d7b6..0000000 --- a/gnupg-2.1.15-bsc993324-status-output.patch +++ /dev/null @@ -1,190 +0,0 @@ -From 31fc420727f45dd081f8ad5d056da6675dad29f2 Mon Sep 17 00:00:00 2001 -From: Werner Koch -Date: Mon, 12 Sep 2016 17:42:50 +0200 -Subject: [PATCH] gpg: Avoid mixing up status and colon line output. - -* g10/keylist.c (list_keyblock_colon): Avoid calling functions which -trigger a status line output before having printed a LF. --- - -Status lines like KEY_CONSIDERED and KEYEPXIRED were messing up the -colons output, like here: - - pub:[GNUPG:] KEY_CONSIDERED 94A5C9A03C2FE5CA3B095D8E1FDF723CF46[...] - -Reported-by: Andreas Stieger -Signed-off-by: Werner Koch - ---- - -This version of the patch backported onto the 2.1.15 tag -- astieger@suse.com - ---- - g10/keylist.c | 83 +++++++++++++++++++++++++++++++++-------------------------- - 1 file changed, 47 insertions(+), 36 deletions(-) - -Index: gnupg-2.1.15/g10/keylist.c -=================================================================== ---- gnupg-2.1.15.orig/g10/keylist.c 2016-09-13 15:40:30.178482877 +0200 -+++ gnupg-2.1.15/g10/keylist.c 2016-09-13 15:45:53.605670795 +0200 -@@ -1183,9 +1183,10 @@ list_keyblock_colon (ctrl_t ctrl, kbnode - PKT_public_key *pk; - u32 keyid[2]; - int trustletter = 0; -+ int trustletter_print; -+ int ownertrust_print; - int ulti_hack = 0; - int i; -- char *p; - char *hexgrip_buffer = NULL; - const char *hexgrip = NULL; - char *serialno = NULL; -@@ -1217,31 +1218,38 @@ list_keyblock_colon (ctrl_t ctrl, kbnode - stubkey = 1; /* Key not found. */ - - keyid_from_pk (pk, keyid); -- es_fputs (secret? "sec:":"pub:", es_stdout); - if (!pk->flags.valid) -- es_putc ('i', es_stdout); -+ trustletter_print = 'i'; - else if (pk->flags.revoked) -- es_putc ('r', es_stdout); -+ trustletter_print = 'r'; - else if (pk->has_expired) -- es_putc ('e', es_stdout); -+ trustletter_print = 'e'; - else if (opt.fast_list_mode || opt.no_expensive_trust_checks) -- ; -+ trustletter_print = 0; - else - { - trustletter = get_validity_info (ctrl, pk, NULL); - if (trustletter == 'u') - ulti_hack = 1; -- es_putc (trustletter, es_stdout); -+ trustletter_print = trustletter; - } - -+ if (!opt.fast_list_mode && !opt.no_expensive_trust_checks) -+ ownertrust_print = get_ownertrust_info (pk); -+ else -+ ownertrust_print = 0; -+ -+ es_fputs (secret? "sec:":"pub:", es_stdout); -+ if (trustletter_print) -+ es_putc (trustletter_print, es_stdout); - es_fprintf (es_stdout, ":%u:%d:%08lX%08lX:%s:%s::", - nbits_from_pk (pk), - pk->pubkey_algo, - (ulong) keyid[0], (ulong) keyid[1], - colon_datestr_from_pk (pk), colon_strtime (pk->expiredate)); - -- if (!opt.fast_list_mode && !opt.no_expensive_trust_checks) -- es_putc (get_ownertrust_info (pk), es_stdout); -+ if (ownertrust_print) -+ es_putc (ownertrust_print, es_stdout); - es_putc (':', es_stdout); - - es_putc (':', es_stdout); -@@ -1286,31 +1294,27 @@ list_keyblock_colon (ctrl_t ctrl, kbnode - { - if (node->pkt->pkttype == PKT_USER_ID) - { -- char *str; - PKT_user_id *uid = node->pkt->pkt.user_id; -+ int uid_validity; - - if (attrib_fp && node->pkt->pkt.user_id->attrib_data != NULL) - dump_attribs (node->pkt->pkt.user_id, pk); -- /* -- * Fixme: We need a valid flag here too -- */ -- str = uid->attrib_data ? "uat" : "uid"; -+ - if (uid->is_revoked) -- es_fprintf (es_stdout, "%s:r::::", str); -+ uid_validity = 'r'; - else if (uid->is_expired) -- es_fprintf (es_stdout, "%s:e::::", str); -+ uid_validity = 'e'; - else if (opt.no_expensive_trust_checks) -- es_fprintf (es_stdout, "%s:::::", str); -- else -- { -- int uid_validity; -- -- if (!ulti_hack) -- uid_validity = get_validity_info (ctrl, pk, uid); -- else -- uid_validity = 'u'; -- es_fprintf (es_stdout, "%s:%c::::", str, uid_validity); -- } -+ uid_validity = 0; -+ else if (ulti_hack) -+ uid_validity = 'u'; -+ else -+ uid_validity = get_validity_info (ctrl, pk, uid); -+ -+ es_fputs (uid->attrib_data? "uat:":"uid:", es_stdout); -+ if (uid_validity) -+ es_putc (uid_validity, es_stdout); -+ es_fputs ("::::", es_stdout); - - es_fprintf (es_stdout, "%s:", colon_strtime (uid->created)); - es_fprintf (es_stdout, "%s:", colon_strtime (uid->expiredate)); -@@ -1425,6 +1429,8 @@ list_keyblock_colon (ctrl_t ctrl, kbnode - char *sigstr; - size_t fplen; - byte fparray[MAX_FINGERPRINT_LEN]; -+ char *siguid; -+ size_t siguidlen; - - if (sig->sig_class == 0x20 || sig->sig_class == 0x28 - || sig->sig_class == 0x30) -@@ -1484,6 +1490,16 @@ list_keyblock_colon (ctrl_t ctrl, kbnode - rc = 0; - sigrc = ' '; - } -+ -+ if (sigrc != '%' && sigrc != '?' && !opt.fast_list_mode) -+ siguid = get_user_id (sig->keyid, &siguidlen); -+ else -+ { -+ siguid = NULL; -+ siguidlen = 0; -+ } -+ -+ - es_fputs (sigstr, es_stdout); - es_putc (':', es_stdout); - if (sigrc != ' ') -@@ -1504,17 +1520,11 @@ list_keyblock_colon (ctrl_t ctrl, kbnode - - if (sigrc == '%') - es_fprintf (es_stdout, "[%s] ", gpg_strerror (rc)); -- else if (sigrc == '?') -- ; -- else if (!opt.fast_list_mode) -- { -- size_t n; -- p = get_user_id (sig->keyid, &n); -- es_write_sanitized (es_stdout, p, n, ":", NULL); -- xfree (p); -- } -+ else if (siguid) -+ es_write_sanitized (es_stdout, siguid, siguidlen, ":", NULL); -+ - es_fprintf (es_stdout, ":%02x%c::", sig->sig_class, -- sig->flags.exportable ? 'x' : 'l'); -+ sig->flags.exportable ? 'x' : 'l'); - - if (opt.no_sig_cache && opt.check_sigs && fprokay) - { -@@ -1528,6 +1538,7 @@ list_keyblock_colon (ctrl_t ctrl, kbnode - print_subpackets_colon (sig); - - /* fixme: check or list other sigs here */ -+ xfree (siguid); - } - } - diff --git a/gnupg-2.1.15.tar.bz2 b/gnupg-2.1.15.tar.bz2 deleted file mode 100644 index 0f825ab..0000000 --- a/gnupg-2.1.15.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c28c1a208f1b8ad63bdb6b88d252f6734ff4d33de6b54e38494b11d49e00ffdd -size 5723689 diff --git a/gnupg-2.1.15.tar.bz2.sig b/gnupg-2.1.15.tar.bz2.sig deleted file mode 100644 index fb3f0710c26b8f4a5f2a6a4214d22ed6ce1ebf3a89e6f3f1cf7ddfad8ea4d0cd..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 287 zcmV+)0pR|L0UQJX0SEvF1p-&K(x?Cm2@oWkInqxhL82meTHoMG=aOU{g?(Kr9Y zMtw6CYZ%y2oO9$$4{b*~9B0-zA&0@^5(}9o(-0_3UCzn zu|+CM^p@Tj>l5sABnk%DESQilWGqn(#)k19dvKQQ`YrVn2v;|)Uqnn_LZ1eI_VnO_ zC#4X_9OzW3XvP6r!O+pxu#rU|IrD_RKGf)gNh6M#7dA2|bIN(vwE2s+E6dOJ&+xmZ zdg1pZg>EJKvO!fJltvbpb!NS5n?QQV@c8l$$J!iNHe|UL^u^(i{GN1%KlFmgj>OZJ lND6q}u3tk`3>YxxI1AfLT~Qu=}h+O~x diff --git a/gnupg-2.1.16.tar.bz2 b/gnupg-2.1.16.tar.bz2 new file mode 100644 index 0000000..798b1c2 --- /dev/null +++ b/gnupg-2.1.16.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49b9a6a6787ad00d4d2d69d8c7ee8905923782583f06078a064a0c80531d8844 +size 5840687 diff --git a/gnupg-2.1.16.tar.bz2.sig b/gnupg-2.1.16.tar.bz2.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..d4a02a2ce6be02d59c38789566876703df87d07afead4f3c6d60e4cace9b2b92 GIT binary patch literal 310 zcmV-60m=S}0W$;u0SEvc79j-KX(1!T23_i24?49Zn>o@?CF8aQ0$4944gd-X5G0#9 z(oZGhwtfW%{w))1_Af6Xm8_3OZJJ07e>&z(X5q(`K_U-rjoIutjEd~gUMuaLNSi0N znS=XZqa7iNE{rEKwKkrU^$LV%vQu~* zF6`vD&((G}N_+sJruJv9xe~93P+8|m7Rn*xV-VgbxJen{*V@E}13mySS}5k)