Skip to content

Commit 4485930

Browse files
committed
Merge branch 'STABLE-BRANCH-2-4'
-- Resolved conflicts: NEWS common/exechelp-w32.c configure.ac
2 parents 79d0e52 + 609b1ec commit 4485930

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1484
-1134
lines changed

.git-blame-ignore-revs

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# indent: Modernize mem2str.
22
6a80d6f9206eae2c867c45daa5cd3e7d6c6ad114
3+
# doc: Fix spelling errors found by lintian.
4+
2ed1f68b48db7b5503045386de0500fddf70077e

Makefile.am

+6-4
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ release:
247247
mkopt=""; \
248248
if [ -n "$$CUSTOM_SWDB" ]; then \
249249
mkopt="CUSTOM_SWB=1"; \
250-
x=$$(grep '^OVERRIDE_TARBALLS=' \
251-
$$HOME/.gnupg-autogen.rc|cut -d= -f2);\
250+
x=$$(grep '^[[:blank:]]*OVERRIDE_TARBALLS[[:blank:]]*=' \
251+
$$HOME/.gnupg-autogen.rc|cut -d= -f2|xargs);\
252252
if [ -f "$$x/swdb.lst" ]; then \
253253
echo "/* Copying swdb.lst from the overrides directory */"; \
254254
cp "$$x/swdb.lst" . ; \
@@ -275,13 +275,15 @@ release:
275275
sign-release:
276276
+(set -e; \
277277
test $$(pwd | sed 's,.*/,,') = dist || cd dist; \
278-
x=$$(grep '^RELEASE_ARCHIVE=' $$HOME/.gnupg-autogen.rc|cut -d= -f2);\
278+
x=$$(grep '^[[:blank:]]*RELEASE_ARCHIVE[[:blank:]]*=' \
279+
$$HOME/.gnupg-autogen.rc|cut -d= -f2|xargs);\
279280
if [ -z "$$x" ]; then \
280281
echo "error: RELEASE_ARCHIVE missing in ~/.gnupg-autogen.rc">&2; \
281282
exit 2;\
282283
fi;\
283284
myarchive="$$x/$(RELEASE_ARCHIVE_SUFFIX)";\
284-
x=$$(grep '^RELEASE_SIGNKEY=' $$HOME/.gnupg-autogen.rc|cut -d= -f2);\
285+
x=$$(grep '^[[:blank:]]*RELEASE_SIGNKEY[[:blank:]]*=' \
286+
$$HOME/.gnupg-autogen.rc|cut -d= -f2|xargs);\
285287
if [ -z "$$x" ]; then \
286288
echo "error: RELEASE_SIGNKEY missing in ~/.gnupg-autogen.rc">&2; \
287289
exit 2;\

NEWS

+53-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,51 @@
11
Noteworthy changes in version 2.5.0 (unreleased)
22
------------------------------------------------
33

4+
Changes also found in 2.4.5:
5+
6+
Noteworthy changes in version 2.4.5 (2024-03-07)
7+
------------------------------------------------
8+
9+
* gpg,gpgv: New option --assert-pubkey-algo. [T6946]
10+
11+
* gpg: Emit status lines for errors in the compression layer.
12+
[T6977]
13+
14+
* gpg: Fix invocation with --trusted-keys and --no-options. [T7025]
15+
16+
* gpgsm: Allow for a longer salt in PKCS#12 files. [T6757]
17+
18+
* gpgtar: Make --status-fd=2 work on Windows. [T6961]
19+
20+
* scd: Support for the ACR-122U NFC reader. [rG1682ca9f01]
21+
22+
* scd: Suport D-TRUST ECC cards. [T7000,T7001]
23+
24+
* scd: Allow auto detaching of kernel drivers; can be disabled with
25+
the new compatibility-flag ccid-no-auto-detach. [rGa1ea3b13e0]
26+
27+
* scd: Allow setting a PIN length of 6 also with a reset code for
28+
openpgp cards. [T6843]
29+
30+
* agent: Allow GET_PASSPHRASE in restricted mode. [rGadf4db6e20]
31+
32+
* dirmngr: Trust system's root CAs for checking CRL issuers.
33+
[T6963]
34+
35+
* dirmngr: Fix regression in 2.4.4 in fetching keys via hkps.
36+
[T6997]
37+
38+
* gpg-wks-client: Make option --mirror work properly w/o specifying
39+
domains. [rG37cc255e49]
40+
41+
* g13,gpg-wks-client: Allow command style options as in "g13 mount
42+
foo". [rGa09157ccb2]
43+
44+
* Allow tilde expansion for the foo-program options. [T7017]
45+
46+
* Make the getswdb.sh tool usable outside the GnuPG tree.
47+
48+
449
Changes also found in 2.4.4:
550

651
* gpg: Do not keep an unprotected smartcard backup key on disk. See
@@ -178,6 +223,7 @@ Noteworthy changes in version 2.5.0 (unreleased)
178223
Release dates of 2.4 versions
179224
-----------------------------
180225

226+
Version 2.4.5 (2024-03-07) https://dev.gnupg.org/T6960
181227
Version 2.4.4 (2024-01-25) https://dev.gnupg.org/T6578
182228
Version 2.4.3 (2023-07-04) https://dev.gnupg.org/T6509
183229
Version 2.4.2 (2023-05-30) https://dev.gnupg.org/T6506
@@ -1392,7 +1438,7 @@ Noteworthy changes in version 2.3.0 (2021-04-07)
13921438
Changes also found in 2.2.12:
13931439

13941440
* tools: New commands --install-key and --remove-key for
1395-
gpg-wks-client. This allows to prepare a Web Key Directory on a
1441+
gpg-wks-client. This allows one to prepare a Web Key Directory on a
13961442
local file system for later upload to a web server.
13971443

13981444
* gpg: New --list-option "show-only-fpr-mbox". This makes the use
@@ -1436,7 +1482,7 @@ Noteworthy changes in version 2.3.0 (2021-04-07)
14361482
query.
14371483

14381484
* gpg: Do not store the TOFU trust model in the trustdb. This
1439-
allows to enable or disable a TOFO model without triggering a
1485+
allows one to enable or disable a TOFO model without triggering a
14401486
trustdb rebuild. [#4134]
14411487

14421488
* scd: Fix cases of "Bad PIN" after using "forcesig". [#4177]
@@ -1855,7 +1901,7 @@ Noteworthy changes in version 2.1.23 (2017-08-09)
18551901
to your gpg.conf.
18561902

18571903
* agent: Option --no-grab is now the default. The new option --grab
1858-
allows to revert this.
1904+
allows one to revert this.
18591905

18601906
* gpg: New import option "show-only".
18611907

@@ -2985,7 +3031,7 @@ Noteworthy changes in version 2.1.0 (2014-11-06)
29853031
* gpg: Allow use of Brainpool curves.
29863032

29873033
* gpg: Accepts a space separated fingerprint as user ID. This
2988-
allows to copy and paste the fingerprint from the key listing.
3034+
allows one to copy and paste the fingerprint from the key listing.
29893035

29903036
* gpg: The hash algorithm is now printed for signature records in key
29913037
listings.
@@ -3765,7 +3811,7 @@ Noteworthy changes in version 1.9.10 (2004-07-22)
37653811

37663812
* Fixed a serious bug in the checking of trusted root certificates.
37673813

3768-
* New configure option --enable-agent-pnly allows to build and
3814+
* New configure option --enable-agent-only allows one to build and
37693815
install just the agent.
37703816

37713817
* Fixed a problem with the log file handling.
@@ -4160,7 +4206,7 @@ Noteworthy changes in version 1.1.92 (2002-09-11)
41604206
extension specified with --load-extension are checked, along
41614207
with their enclosing directories.
41624208

4163-
* The configure option --with-static-rnd=auto allows to build gpg
4209+
* The configure option --with-static-rnd=auto allows one to build gpg
41644210
with all available entropy gathering modules included. At
41654211
runtime the best usable one will be selected from the list
41664212
linux, egd, unix. This is also the default for systems lacking
@@ -4543,7 +4589,7 @@ Noteworthy changes in version 1.0.2 (2000-07-12)
45434589
* New command --export-secret-subkeys which outputs the
45444590
the _primary_ key with it's secret parts deleted. This is
45454591
useful for automated decryption/signature creation as it
4546-
allows to keep the real secret primary key offline and
4592+
allows one to keep the real secret primary key offline and
45474593
thereby protecting the key certificates and allowing to
45484594
create revocations for the subkeys. See the FAQ for a
45494595
procedure to install such secret keys.

agent/agent.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ struct
8686
/* Enable pinentry debugging (--debug 1024 should also be used). */
8787
int debug_pinentry;
8888

89-
/* Filename of the program to start as pinentry. */
90-
const char *pinentry_program;
89+
/* Filename of the program to start as pinentry (malloced). */
90+
char *pinentry_program;
9191

9292
/* Filename of the program to handle daemon tasks. */
9393
const char *daemon_program[DAEMON_MAX_TYPE];

agent/command.c

+4-5
Original file line numberDiff line numberDiff line change
@@ -1988,9 +1988,6 @@ cmd_get_passphrase (assuan_context_t ctx, char *line)
19881988
struct pin_entry_info_s *pi2 = NULL;
19891989
int is_generated;
19901990

1991-
if (ctrl->restricted)
1992-
return leave_cmd (ctx, gpg_error (GPG_ERR_FORBIDDEN));
1993-
19941991
opt_data = has_option (line, "--data");
19951992
opt_check = has_option (line, "--check");
19961993
opt_no_ask = has_option (line, "--no-ask");
@@ -2039,7 +2036,9 @@ cmd_get_passphrase (assuan_context_t ctx, char *line)
20392036
if (!desc)
20402037
return set_error (GPG_ERR_ASS_PARAMETER, "no description given");
20412038

2042-
if (!strcmp (cacheid, "X"))
2039+
/* The only limitation in restricted mode is that we don't consider
2040+
* the cache. */
2041+
if (ctrl->restricted || !strcmp (cacheid, "X"))
20432042
cacheid = NULL;
20442043
if (!strcmp (errtext, "X"))
20452044
errtext = NULL;
@@ -2121,7 +2120,7 @@ cmd_get_passphrase (assuan_context_t ctx, char *line)
21212120
entry_errtext = NULL;
21222121
is_generated = !!(pi->status & PINENTRY_STATUS_PASSWORD_GENERATED);
21232122

2124-
/* We don't allow an empty passpharse in this mode. */
2123+
/* We don't allow an empty passphrase in this mode. */
21252124
if (!is_generated
21262125
&& check_passphrase_constraints (ctrl, pi->pin,
21272126
pi->constraints_flags,

agent/gpg-agent.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,7 @@ parse_rereadable_options (gpgrt_argparse_t *pargs, int reread)
876876
opt.debug = 0;
877877
opt.no_grab = 1;
878878
opt.debug_pinentry = 0;
879+
xfree (opt.pinentry_program);
879880
opt.pinentry_program = NULL;
880881
opt.pinentry_touch_file = NULL;
881882
xfree (opt.pinentry_invisible_char);
@@ -936,7 +937,10 @@ parse_rereadable_options (gpgrt_argparse_t *pargs, int reread)
936937
case oNoGrab: opt.no_grab |= 1; break;
937938
case oGrab: opt.no_grab |= 2; break;
938939

939-
case oPinentryProgram: opt.pinentry_program = pargs->r.ret_str; break;
940+
case oPinentryProgram:
941+
xfree (opt.pinentry_program);
942+
opt.pinentry_program = make_filename_try (pargs->r.ret_str, NULL);
943+
break;
940944
case oPinentryTouchFile: opt.pinentry_touch_file = pargs->r.ret_str; break;
941945
case oPinentryInvisibleChar:
942946
xfree (opt.pinentry_invisible_char);

0 commit comments

Comments
 (0)