Debian Codegraph @

ChangeLog

raw
1 2026-07-01 Werner Koch <[email protected]>
2
3 Release 1.3.3.
4 + commit 9a7b78e9882b8261b0be439cccf5651b9dd971a8
5
6
7 Fix for m4 macro only available in newer autoconf versions.
8 + commit cab5d7bb8943a3a1949d8acb48db1a1bcc766bb2
9 * configure.ac: Replace AC_PROG_AR bei AC_CHECK_TOOL.
10
11 2026-07-01 Mikhail Filippov <[email protected]>
12
13 w32: Modernize dialog for Windows Vista and later.
14 + commit fe06e2d8eefbbc5e23274240875bdf49df7d1959
15 * w32/app.manifest: New. Declare Common Controls v6 dependency
16 for visual styles and PerMonitorV2 DPI awareness.
17 * w32/pinentry-w32.rc: Embed app.manifest. Switch from DIALOG to
18 DIALOGEX with DS_SHELLFONT and Segoe UI 9pt. Reflow controls per
19 Microsoft UX guidelines; tighten IDC_PINENT_TEXT to 12 DLU so the
20 themed edit text sits at the optical centre and align
21 IDC_PINENT_PROMPT to that baseline. Size IDC_PINENT_DESC to 56
22 DLU, the smallest height that fits the seven-line CHV1 prompt
23 with "Remaining attempts: N" without truncation; the standard
24 five-line CHV1 prompt fits with a small bottom padding.
25 * w32/main.c (set_bitmap): Use the smaller of width/height from
26 MapDialogRect so the icon stays square. Select the closest bitmap
27 that is at least as large as the target size to prefer downscaling
28 over upscaling.
29 * w32/gnupg-logo.svg: New. Vector source for the GnuPG logo,
30 traced from the original artwork in Inkscape.
31 * w32/logo-32.bmp, w32/logo-48.bmp, w32/logo-64.bmp,
32 w32/logo-96.bmp, w32/logo-128.bmp: Regenerate as 4-bit BMPs with
33 full 16-entry palettes using standard gray (192,192,192) background.
34 * w32/Makefile.am (EXTRA_DIST): Add app.manifest and gnupg-logo.svg.
35 (pinentry-w32.o): Depend on app.manifest.
36
37 2026-07-01 NIIBE Yutaka <[email protected]>
38
39 Support confirm_focus in pinentry-curses.
40 + commit aa0f20d8858ce030f68960ff978a5485412edb2c
41 * pinentry/pinentry-gtk-2.c (create_window): Support confirm_focus.
42
43 Support confirm_focus in pinentry-curses.
44 + commit 787f5126188ec380d16fd1762be9bc1d1359fcbe
45 * pinentry/pinentry-curses.c (dialog_run): Support confirm_focus.
46
47 Remove confirm, add confirm_focus field to struct pinentry.
48 + commit 1044aa2e05723c5461d50f3435898ff90b631944
49 * pinentry/pinentry.h (struct pinentry): Add confirm_focus.
50 * pinentry/pinentry.c (cmd_getpin, cmd_confirm): Set confirm_focus
51 field.
52
53 2026-06-30 NIIBE Yutaka <[email protected]>
54
55 curses: Use ->pin field if it's confirm mode or not.
56 + commit 600112bf75b5240224d95ee61b3967260b630837
57 * pinentry/pinentry-curses.c (draw_error): Use !pinentry->pin.
58
59 2026-05-29 NIIBE Yutaka <[email protected]>
60
61 tty: Discard input on timeout.
62 + commit 4c72137885a7815f377bb148180aefdbdcfc1505
63 * tty/pinentry-tty.c (confirm, password): Call tcflush.
64
65 2026-05-12 Zhang Maiyun <[email protected]>
66
67 build: Fix cross-building on platform with incompatible AR.
68 + commit f76293cae5c2a6eb0090623a15355b52222af1fe
69 * configure.ac: Add AC_PROG_AR.
70
71 2026-03-04 NIIBE Yutaka <[email protected]>
72
73 build: Fix m4/Makefile.am to distribute qt6.m4.
74 + commit 572b3f3c02ffcd6b4b43e4d0809cad02e24b6103
75 * m4/Makefile.am (EXTRA_DIST): Add qt6.m4.
76
77 2026-01-15 NIIBE Yutaka <[email protected]>
78
79 build: Update m4 files.
80 + commit 9e17a6fbccc9e175578e2fb2f16fe0299be3f603
81 * m4/gpg-error.m4: Update from libgpg-error.
82 * m4/libassuan.m4: Update from libassuan.
83
84 2025-09-29 Ingo Klöcker <[email protected]>
85
86 build: Update gettext infrastructure files.
87 + commit 954b3da04ac95ffb23ce9eac34ff99633cffdb47
88 * build-aux/config.rpath: Update from gettext 0.26.
89 * m4/host-cpu-c-abi.m4: New file, from gettext-0.26.
90 * m4/iconv.m4: Upgrade to gettext 0.26.
91 * m4/lib-ld.m4: New file, from gettext-0.26.
92 * m4/lib-link.m4: New file, from gettext-0.26.
93 * m4/lib-prefix.m4: New file, from gettext-0.26.
94 * m4/Makefile.am (EXTRA_DIST): Add the new files.
95
96 2025-09-24 NIIBE Yutaka <[email protected]>
97
98 m4: Fix curses.m4 for test(1).
99 + commit c5948fa9d32729c3f582730c3c15d3312ef5fa4b
100 * m4/curses.m4: Use shell &&.
101
102 2025-09-24 NIIBE Yutaka <[email protected]>
103 Andreas Metzler
104
105 build: Avoid using -a and -o for test(1).
106 + commit 23267aaf764d02b0d230dc2a6999b09feedad92a
107 * configure.ac: Don't use -a or -o.
108
109 2025-09-19 NIIBE Yutaka <[email protected]>
110
111 build: Allow build with fltk 1.4.
112 + commit 121494245f49ecc6c7c3bcadab3a821bbdc3529e
113 * configure.ac: Change the test expression to allow fltk 1.4.
114
115 2025-07-28 Werner Koch <[email protected]>
116
117 Release 1.3.2.
118 + commit d7660807593067d5cd7150b7d4d987d60957b5cb
119
120
121 2025-07-24 Ingo Klöcker <[email protected]>
122
123 qt: Replace icons for dark mode with 16x16 icons.
124 + commit f264aaae107480cdf5227ce7cad07e446221a0b6
125 * qt/icons/hint_dark.svg, qt/icons/password-generate_dark.svg,
126 qt/icons/visibility_dark.svg: Replace with copies of corresponding
127 normal icons with color changed to #eff0f1.
128
129 qt,qt5: Ensure that input field is large enough for generated password.
130 + commit 86ab46ebe9eeda0a2021b3c1cd9ccd1a82396b0c
131 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Change
132 minimum width of password input field.
133 * qt5/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Ditto.
134
135 qt5: Add dark mode icon variants and detection.
136 + commit 537d7f87b82883615e5eecb9754f1bfc02f77119
137 * qt5/icons/hint_dark.svg, qt5/icons/password-generate_dark.svg,
138 qt5/icons/visibility_dark.svg: New.
139 * qt5/icons/Makefile.am (EXTRA_DIST): Add icons.
140 * qt5/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog):
141 Check if colorScheme is dark. Use Icons accordingly.
142 * qt5/pinentrydialog.h (PinentryDialog): Add icon suffix member
143 variable.
144 * qt5/pinentryrc.qrc: Add new icons.
145
146 qt: Make Show/Hide Password functionality accessible.
147 + commit ae5f83e76f7756daea1cda9dcfdf2d42e7036ea1
148 * qt/pinentrydialog.h (PinEntryDialog): Remove field mVisiActionEdit.
149 Add field mShowHideButton.
150 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Add
151 Show/Hide Password button after first password input field. Remove
152 Show/Hide Password action. Move Generate Password button after the
153 second password input field. Remove signal-slot connection of removed
154 Show/Hide action. Add signal-slot connection for Show/Hide button.
155 (PinEntryDialog::textChanged): Remove code changing visibility of
156 removed Show/Hide action. Remove code changing the visibility of the
157 Generate button.
158 (PinEntryDialog::generatePin): Click new Show/Hide button instead of
159 triggering removed Show/Hide action.
160 (PinEntryDialog::toggleVisibility): Update icon and tool tip of
161 new Show/Hide button instead of removed Show/Hide action.
162
163 2025-07-23 Ingo Klöcker <[email protected]>
164
165 qt5: Make Show/Hide Password functionality accessible.
166 + commit 07723a8e05f3a5c7cf49e4d0364b4241536b6748
167 * qt5/pinentrydialog.h (PinEntryDialog): Remove field mVisiActionEdit.
168 Add field mShowHideButton.
169 * qt5/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Add
170 Show/Hide Password button after first password input field. Remove
171 Show/Hide Password action. Move Generate Password button after the
172 second password input field. Remove signal-slot connection of removed
173 Show/Hide action. Add signal-slot connection for Show/Hide button.
174 (PinEntryDialog::textChanged): Remove code changing visibility of
175 removed Show/Hide action. Remove code changing the visibility of the
176 Generate button.
177 (PinEntryDialog::generatePin): Click new Show/Hide button instead of
178 triggering removed Show/Hide action.
179 (PinEntryDialog::toggleVisibility): Update icon and tool tip of
180 new Show/Hide button instead of removed Show/Hide action.
181
182 2025-03-10 NIIBE Yutaka <[email protected]>
183
184 m4: Update libassuan.m4.
185 + commit 72b827b33e95df0dd1c14f193778e236e0bcbae6
186 * m4/libassuan.m4: Update from libassuan master.
187
188 2025-01-15 NIIBE Yutaka <[email protected]>
189
190 build: Remove defining GPG_ERR_ENABLE_ERRNO_MACROS.
191 + commit c93e640fa8ca8ddb0eaee53fc65b03cf3004eb4b
192 * configure.ac (GPG_ERR_ENABLE_ERRNO_MACROS): Remove.
193
194 2024-12-30 NIIBE Yutaka <[email protected]>
195
196 build: Fix warning about obsolete pinentry-emacs.
197 + commit b415f31089218a1d35f9229ef666164753503c1d
198 * configure.ac: Fix emitting warning about pinentry-emacs.
199
200 2024-09-09 Jakub Jelen <[email protected]>
201
202 curses: Factor out dialog release to separate function.
203 + commit 7f9f6bab93cc70cf480f056372a07900c5cab0ae
204 * pinentry/pinentry-curses.c (dialog_release): New.
205 (dialog_run): Use unified cleanup function to avoid code duplication
206 and memory leaks.
207
208 2024-07-30 Andre Heinecke <[email protected]>
209
210 qt: Add dark mode icon variants and detection.
211 + commit f4be34f83fd2079fa452525738ef19783c712438
212 * qt/icons/hint_dark.svg, qt/icons/password-generate_dark.svg,
213 qt/icons/visibility_dark.svg: New.
214 * qt/icons/Makefile.am (EXTRA_DIST): Add icons.
215 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog):
216 Check if colorScheme is dark. Use Icons accordingly.
217 * qt/pinentrydialog.h (PinentryDialog): Add icon suffix member
218 variable.
219 * qt/pinentryrc.qrc: Add new icons.
220
221 2024-07-04 NIIBE Yutaka <[email protected]>
222
223 m4: Update gpg-error.m4 and libassuan.m4.
224 + commit 7dc2d243fc50899251ff46ea641da47e49c7164e
225 * m4/gpg-error.m4: Update from libgpg-error master.
226 * m4/libassuan.m4: Update from libassuan master.
227
228 2024-07-03 Werner Koch <[email protected]>
229
230 Release 1.3.1.
231 + commit dd8894fa60c1f1c08ecc50ba4657580abc348347
232
233
234 2024-05-23 Andre Heinecke <[email protected]>
235
236 Qt6: Fix Windows build.
237 + commit 34019f954a9831bbf57a144600c40f758d42274b
238 * qt/pinentrydialog.cpp (raiseWindow): Do not
239 use QWindowsWindowFunctions::setWindowActivationBehavior.
240 This has been removed from Qt6 and is now default.
241
242 2024-04-10 Tobias Fella <[email protected]>
243
244 core: Add environment variable for enabling secret storage integration on KDE
245 + commit 23753cfb03c61e9c6534c1410e470ab85babc05a
246 * pinentry/pinentry.c: Enable secret storage on KDE Plasma if PINENTRY_KDE_USE_WALLET is set
247
248 2024-04-09 Tobias Fella <[email protected]>
249
250 qt,qt5: Install and use pinentry icon.
251 + commit f9c252a8d98823da6e86614c5d36dcc7779faf89
252
253
254 2024-03-20 Ingo Klöcker <[email protected]>
255
256 cpp,qt: Reduce risk of typos in preprocessor conditions.
257 + commit d6ff6d34d03b2e4b049b1fddd1f1d28b8dab4158
258 * configure.ac: Add -Wundef to CPPFLAGS in maintainer mode. Explicitly
259 define some macros as 0 instead of leaving them undefined.
260 * qt/capslock.cpp, qt/capslock_p.h, qt/capslock_unix.cpp, qt/main.cpp,
261 qt5/capslock.cpp, qt5/capslock_p.h, qt5/capslock_unix.cpp: Use #if
262 instead of #ifdef to check whether a feature should be enabled.
263
264 2024-03-19 Heiko Becker <[email protected]>
265
266 qt5: Add a '5' to adjust defines.
267 + commit 844360c9c99d2f11dc4236c0ab6bdb9b56758898
268 * qt5/capslock.cpp, qt5/capslock_p.h, qt5/capslock_unix.cpp: Check for
269 correct defines.
270
271 2024-03-18 Werner Koch <[email protected]>
272
273 Release 1.3.0.
274 + commit 24833c9ef2bf93d9f6c0583a9ecfefa6747473bc
275
276
277 2024-03-11 Tobias Fella <[email protected]>
278
279 core: Disable secret storage integration when running on KDE Plasma.
280 + commit efb6de7fb2c15c1e31349b80fa7c8c1d4694c6cf
281 * pinentry/pinentry.c: Disable secret storage when on KDE
282
283 2024-03-11 Yaakov Selkowitz via Gnupg-devel <[email protected]>
284
285 gnome3: prefer gcr-4.
286 + commit 069c2192234566c14840aefced795039d1f79137
287 Newer distributions are now using gcr-4, while older ones will still have
288 gcr-3. The APIs used by pinentry have not changed in between versions,
289 only the top-level header has changed. Also, for gcr-3, only gcr-base-3
290 is required.
291
292 (I have attempted to sign up for a dev.gnupg.org account, but am still
293 awaiting verification.)
294
295 2024-01-29 Ingo Klöcker <[email protected]>
296
297 qt: Fix deprecation warning.
298 + commit 18e07ae47d205d2ef8b57ee2eaac09067027ce76
299 * qt/qti18n.cpp (loadCatalog): Use QLibraryInfo::path instead of
300 deprecated QLibraryInfo::location.
301
302 2024-01-23 Tobias Fella <[email protected]>
303
304 qt: Only use first token from PINENTRY_GEOM_HINT.
305 + commit e02a2a78738b5af576642d0d238232bfacad38d6
306
307
308 qt: Parent window on wayland.
309 + commit 6a0c1e00419f90869b8caa93ac26ad10a7bd3e6e
310 * configure.ac: Setup KWindowSystem dependency.
311 * qt/main.cpp: Set parent window when on wayland.
312
313 qt: Split off Qt5 frontend and port existing backend to Qt6.
314 + commit 1e79123c389584b8240387914b193be41b823e92
315 * Makefile.am: Add new backend.
316 * configure.ac: Configure desktop file for Qt5 backend.
317 * doc/pinentry.texi: Add Qt6 backend to docs.
318 * m4/qt6.m4: New.
319 * qt/Makefile.am: Use Qt6 instead of Qt5.
320 * qt/capslock.cpp, qt/capslock_p.h, qt/capslock_unix.cpp:
321 Port capslock detection from KWayland to KGuiAddons.
322 * qt/pinentryconfirm.cpp: Adapt to changed function signature.
323 * qt5/*: Copy from qt/ and rename.
324
325 2024-01-15 Tobias Fella <[email protected]>
326
327 qt: Fix capslock detection on wayland.
328 + commit 7dfc60a70d32996b6c6e34d6389be0d9030e1648
329 * qt/org.gnupg.pinentry-qt.desktop.in: Request keystate permission
330
331 qt: Fix window icon on wayland.
332 + commit a746c3ae661424fb85dd5fbdbf1efdd1b4b8dd16
333 * qt/Makefile.am: Install desktop file.
334 * qt/main.cpp: Set desktop file name.
335 * qt/org.gnupg.pinentry.desktop.in: New.
336 * configure.ac: Configure desktop file.
337
338 2024-01-10 Jason Carrete <[email protected]>
339
340 qt: Add support for external password manager with libsecret.
341 + commit 9b933837c3f65b451a08139a7b9bb4a3d0903477
342 * qt/main.cpp: Pass pinentry info to PinEntryDialog constructor. Set
343 save passphrase checkbox text from pinentry_t->default_pwmngr.
344 * qt/pinentrydialog.cpp, qt/pinentrydialog.h: Dialog now accepts
345 pinentry info in the constructor and removed unneeded setter for
346 pinentry info. Add save passphrase checkbox.
347
348 2023-12-27 NIIBE Yutaka <[email protected]>
349
350 Remove Windows CE support.
351 + commit 6efd0951dcbbe60143ab8ed793822c03225070ef
352 * configure.ac (HAVE_W32CE_SYSTEM): Remove.
353 * pinentry/pinentry.c [HAVE_W32CE_SYSTEM]: Remove.
354 * secmem/secmem.c [HAVE_W32CE_SYSTEM]: Remove.
355 * secmem/util.c [HAVE_W32CE_SYSTEM]: Remove.
356 * w32/main.c [HAVE_W32CE_SYSTEM]: Remove.
357 * w32/pinentry-w32.rc [HAVE_W32CE_SYSTEM]: Remove.
358
359 2023-08-18 NIIBE Yutaka <[email protected]>
360
361 tty,curses: Upon SIGINT, let pinentry exit gracefully.
362 + commit a6f63fe37dbfd0b8bcb6b168ed76c334e94f9039
363 * pinentry/pinentry-curses.c (dialog_run): Return
364 GPG_ERR_FULLY_CANCELED when EINTR.
365 (curses_cmd_handler): Always setup SIGINT handler.
366 * tty/pinentry-tty.c (tty_cmd_handler): Always setup SIGINT handler.
367
368 curses: Fix timeout handling.
369 + commit 08408498b3fefe9a8b810978977e9f7937af38c0
370 * pinentry/pinentry-curses.c (dialog_run): Remove NO_INPUT.
371
372 2023-07-28 NIIBE Yutaka <[email protected]>
373
374 build: Update libassuan.m4 for libassuan version 3 in future.
375 + commit a39ba412ab24721d4edb6476156371f8bf1d3ff9
376 * m4/libassuan.m4: Update from libassuan master.
377
378 2023-07-20 NIIBE Yutaka <[email protected]>
379
380 Update GPL2 for new FSF address. Use URL for license.
381 + commit 66abf7cb1e1bde1ec71e13690dc6d6944c89cae9
382 * COPYING: Update to newer revision for the FSF address.
383 * m4/curses.m4: Use URL for GPL text.
384 * efl/pinentry-efl.c: Likewise. Add SPDX identifier.
385
386 2023-04-05 NIIBE Yutaka <[email protected]>
387
388 build: Update gpg-error.m4.
389 + commit 21e85333f9669ef369376e83eb80ccd7a8933842
390 * m4/gpg-error.m4: Update from libgpg-error master.
391
392 Fix for modern compiler.
393 + commit 3870ecc99340fff9bee1c5e9166d73b4d5864714
394 * pinentry/argparse.c (show_version): It takes no argument.
395 * secmem/util.c (drop_privs): Likewise.
396
397 2023-03-29 Werner Koch <[email protected]>
398 Sabrosa
399
400 w32: Fix non-focused window and simplify code.
401 + commit abbecc67d9a9b007b77295c599c90b37ddee275c
402 * w32/main.c: Remove all WindowsCE stuff. Include unistd.h.
403 (move_mouse_and_click): Remove. This does not seem to work anymore
404 correctly.
405 (dlg_proc, w32_cmd_handler): Remove the Foregound window stuff. If we
406 really want this we need to use the hack from our QT Pinentry which
407 has meanwhile been included into QT proper.
408 (main): No more need to dynload a syscall.
409
410 * tty/pinentry-tty (button): Make use of isalnum more robust.
411
412 2023-03-20 Werner Koch <[email protected]>
413
414 Fix problem with inclusion of wrong memory.h.
415 + commit 8ab1682e80a2b4185ee9ef66cbb44340245966fc
416 * secmem/memory.h: Rename to ...
417 * secmem/secmem.h: this.
418 * pinentry/pinentry.h: Include secmem.h. Remove almost all inclusions
419 of memory.h or replace them by "../secmem/secmem.h".
420
421 2023-03-05 Ben Kibbey <[email protected]>
422
423 curses: Fix quality bar percentage logic.
424 + commit 6e66bebecb25865b646011fbc47f4201e956dcb4
425 * pinentry/pinentry-curses.c (dialog_input): Fix and show percentage of
426 passphrase quality.
427
428 curses: Add SETREPEATOK and quality bar colors.
429 + commit 2f109972e4a2855e99685d7653cfabe96adce2f8
430 * pinentry/pinentry.h (struct pinentry): Add string and color members.
431 * pinentry/pinentry.c (cmd_setrepeatok): New.
432 * pinentry/pinentry-curses.c (draw_error): Handle repeat strings and
433 colors depending on match.
434 (dialog_run): Init colors.
435 (dialog_input): Update quality bar using color pairs.
436
437 2023-03-02 Ben Kibbey <[email protected]>
438
439 curses: Fix line graphics with error string present.
440 + commit 3a7eaa2262f996ac2ddd61410940dfdfd1f20039
441 * pinentry/pinentry-curses.c (draw_error): Fix logic.
442
443 2023-03-01 Ben Kibbey <[email protected]>
444
445 curses: Add password quality meter.
446 + commit 2923707e7553861aaefeb4f98ca1eae56c46fdd2
447 * pinentry/pinenetry-curses.c (dialog_input): Call
448 pinentry_inq_quality().
449 (dialog_t): Add quality_x, quality_y and quality_size.
450 (dialog_create): Add quality bar graphics.
451
452 Needs to have SETREPEAT enabled to make it visible.
453
454 2023-02-27 Ben Kibbey <[email protected]>
455
456 pinentry-curses: Handle SETREPEAT.
457 + commit 00765e9320e099a6b6775df62e9fcd69a3660d54
458 * pinentry/pinentry-curses.c (DIALOG_POS_REPEAT_PIN): New.
459 (dialog_t): Separate members for repeat.
460 (dialog_create): Create passphrase repeat field.
461 (dialog_switch_pos): Handle DIALOG_POS_REPEAT_PIN.
462 (dialog_input): Modify to handle the repeat field.
463 (test_repeat): New.
464 (dialog_run): Skip OK when changing fields and passphrases do not match.
465
466 2022-12-06 NIIBE Yutaka <[email protected]>
467
468 build: Emit warning for pinentry-emacs.
469 + commit a7e78e1753a486eb7ec6c4f42bece497d6328b1e
470 * configure.ac: Don't build pinentry-emacs any more, please.
471
472 2022-11-02 NIIBE Yutaka <[email protected]>
473
474 build: Update libassuan.m4.
475 + commit d8ca98aec634256cf4f6801874b6730eda12c5c5
476 * m4/libassuan.m4: Update from libassuan master.
477
478 2022-10-28 Ingo Klöcker <[email protected]>
479
480 qt: Remove focus indication by text selection.
481 + commit f9e9cdae9b14e8beff06348faa6acd1ec9259664
482 * qt/accessibility.cpp, qt/accessibility.h (selectLabelText): Remove.
483 * qt/pinentryconfirm.cpp, qt/pinentryconfirm.h (focusNextPrevChild):
484 Remove.
485 * qt/pinentrydialog.cpp: Remove class TextLabel.
486 (PinEntryDialog::PinEntryDialog): Use QLabel for all labels.
487
488 qt: Use same focus indication for labels as Kleopatra.
489 + commit edc17d497d67062235f6e9de65e26d7ea6be4654
490 * qt/focusframe.cpp, qt/focusframe.h, qt/keyboardfocusindication.cpp,
491 qt/keyboardfocusindication.h: New.
492 * qt/Makefile.am: Add new files.
493 * qt/main.cpp (main): Add KeyboardFocusIndication to the application.
494
495 build: Remove unused defines.
496 + commit 2fa1883d9449a9055d72d85309a4e274985dfcf4
497 * configure.ac (PINENTRY_QT5, PINENTRY_QT4): Remove.
498
499 build: Prepare building a Qt6 version of pinentry.
500 + commit 9fbecc223cf1755ac12f1a8a0cbbff54aa22a325
501 * m4/qt.m4: Rename to m4/qt5.m4.
502 * m4/qt5.m4 (FIND_QT): Rename function to FIND_QT5.
503 (PINENTRY_QT): Rename module variable to PINENTRY_QT5 and associated
504 variables to PINENTRY_QT5_*.
505 (MOC): Rename tool variable to MOC5.
506 (RCC): Rename tool variable to RCC5.
507 * configure.ac: Rename local variable pinentry_qt to pinentry_qt5. Call
508 FIND_QT5 instead of FIND_QT. Update variables to substitute to new names.
509 (BUILD_PINENTRY_QT): Rename conditional to BUILD_PINENTRY_QT5.
510 (PINENTRY_QT): Rename define to PINENTRY_QT5.
511 * Makefile.am, qt/Makefile.am: Update renamed variables.
512 * m4/Makefile.am (EXTRA_DIST): Update renamed file.
513
514 qt4: Add missing qt4.m4 to tarball.
515 + commit da3144a702acab04cc5cc6812dcdfbfc78e1383c
516 * m4/Makefile.am (EXTRA_DIST): Add qt4.m4.
517
518 2022-10-24 NIIBE Yutaka <[email protected]>
519
520 build: Update gpg-error.m4.
521 + commit 0eb585050fb11126beac389ed0d53f5576be9f9e
522 * m4/gpg-error.m4: Update from libgpg-error 1.46.
523
524 2022-09-08 NIIBE Yutaka <[email protected]>
525
526 Fix secmem for modern C compiler.
527 + commit bc115547e0e9cf1bd0f7c534dc6ea1b9bbc52bab
528 * secmem/secmem.c (secmem_realloc): Use offsetof for address
529 calculation. Cast to (void *).
530 (secmem_free): Likewise.
531 (secmem_term, secmem_dump_stats): It's no args.
532
533 2022-08-24 Ingo Klöcker <[email protected]>
534
535 qt: Do not set accessible name and description of dialog.
536 + commit 1b60a7e5a39edf506e17edf80fb6e5739eafae7b
537 * qt/pinentryconfirm.cpp (PinentryConfirm::PinentryConfirm): Do not
538 set accessible name and description.
539
540 qt: Do not set accessible description of text labels.
541 + commit 0f8e361f433108934b3ffa31f6321bbb80f6a7b4
542 * qt/pinentrydialog.cpp (PinEntryDialog::setDescription,
543 PinEntryDialog::setError, PinEntryDialog::setQualityBar): Do not set
544 accessible description.
545
546 qt: Do not set accessible description of buttons.
547 + commit b2208048be77596e7d750f277ed98bf283824708
548 * qt/pinentrydialog.cpp (PinEntryDialog::setOkText,
549 PinEntryDialog::setCancelText): Do not set accessible description.
550
551 2022-08-24 Werner Koch <[email protected]>
552
553 Release 1.2.1.
554 + commit 338961541fa9416937092d6e7720246b3cd7465a
555
556
557 2022-08-12 Andre Heinecke <[email protected]>
558
559 qt: Use Dialogs foregroundwindow code in confirm.
560 + commit 835b690cbd857eb699f24745ee13371b4d379683
561 * qt/pinentryconfirm.cpp (PinentryConfirm): Minimize and raise on
562 start.
563 (showEvent): Do not call raiseWindow.
564
565 2022-08-05 Ingo Klöcker <[email protected]>
566
567 qt4: Add recipe for container for testing build for Qt4.
568 + commit 0cb17ea14e533655e17c9daff1058a211ff9087e
569 * docker: New.
570
571 qt4: Make it compile with Qt 4.8.7 and without C++11.
572 + commit 825819b754f50b79e238efc8c9613653315872bb
573 * qt4/main.cpp (qt_cmd_handler): Replace nullptr with NULL.
574 * qt4/pinentrydialog.cpp (PinEntryDialog::generatePin): Replace auto with
575 type name.
576 * qt4/pinlineedit.cpp (PinLineEdit::keyPressEvent): Replace
577 Qt::Key::Key_Backspace with Qt::Key_Backspace.
578
579 qt,qt4: Separate build of pinentry with Qt5 and Qt4.
580 + commit 08a7391fc024530fa619fabbd16f900ad42108e6
581 * Makefile.am (pinentry_qt4): New.
582 (SUBDIRS): Add pinentry_qt4.
583 * configure.ac: Add arg pinentry-qt4. Check for Qt4 libraries.
584 Substitute variables PINENTRY_QT4_CFLAGS, PINENTRY_QT4_LIBS,
585 PINENTRY_QT4_LDFLAGS, MOC4.
586 (BUILD_PINENTRY_QT4): New conditional.
587 (PINENTRY_QT4): New define.
588 * m4/qt.m4: Remove check for Qt4 libraries.
589 * m4/qt4.m4: New.
590 * qt4/Makefile.am: Check for BUILD_PINENTRY_QT4 instead of
591 BUILD_PINENTRY_QT.
592 (bin_PROGRAMS): Change pinentry-qt to pinentry-qt4.
593 (AM_CXXFLAGS): Change PINENTRY_QT_CFLAGS to PINENTRY_QT4_CFLAGS.
594 (pinentry_qt_LDADD): Renamed to pinentry_qt4_LDADD.
595 (pinentry_qt4_LDADD): Change PINENTRY_QT_LIBS to PINENTRY_QT4_LIBS.
596 (pinentry_qt_LDFLAGS): Renamed to pinentry_qt4_LDFLAGS.
597 (pinentry_qt4_LDFLAGS): Change PINENTRY_QT_LDFLAGS to
598 PINENTRY_QT4_LDFLAGS.
599 (pinentry_qt_SOURCES): Renamed to pinentry_qt4_SOURCES.
600 (nodist_pinentry_qt_SOURCES): Renamed to nodist_pinentry_qt4_SOURCES.
601 (.h.moc): Change MOC to MOC4.
602
603 qt4: Add old copy of source code of pinentry-qt for building with Qt4.
604 + commit 70388f18958c5df7a45911e0fade23d19acb38e8
605 * qt4: New.
606
607 2022-07-21 NIIBE Yutaka <[email protected]>
608
609 Fix for modern Autoconf.
610 + commit 34709975debde7afc0927f30c8541c40af0cc481
611 * m4/curses.m4: Use AS_HELP_STRING. Use AC_LINK_IFELSE.
612 * m4/qt.m4: Use AS_HELP_STRING.
613
614 build: Update config.guess, config.sub, and config.rpath.
615 + commit e1cdfc733757b9cc801b628185f1404494d5000c
616 * build-aux/config.guess: Update from upstream.
617 * build-aux/config.sub: Ditto.
618 * build-aux/config.rpath: Update from gettext 0.21.
619
620 build: Fix for internal secmem.
621 + commit 55353112cdc7a9fb84ad5d6d430e218ae81710b4
622 * acinclude.m4 (GNUPG_CHECK_TYPEDEF): Remove.
623 (GNUPG_CHECK_MLOCK): Update from libgcrypt.
624 * configure.ac: Use AC_CHECK_TYPES for byte, ulong, and u64.
625 * secmem/secmem.c: Use HAVE_U64.
626
627 build: Update gpg-error.m4.
628 + commit 4f26b1fa994c8d013fc7516e16e2f1488212e0e7
629 * m4/gpg-error.m4: Update from libgpg-error.
630
631 2022-06-01 NIIBE Yutaka <[email protected]>
632
633 Remove old code which makes sure NUL-termination of strings.
634 + commit 523a4f2d5d1c37df5ea7922f9545823afb3cb762
635 * gnome3/pinentry-gnome3.c (create_prompt): Remove putting 0.
636 * gtk+-2/pinentry-gtk-2.c (changed_text_handler): Ditto.
637 * pinentry/pinentry.c (get_cmdline, pinentry_get_title): Ditto.
638 (my_strusage, write_status_error, cmd_getinfo): Ditto.
639 * w32/main.c (w32_strerror): Ditto.
640
641 Remove USE_CAPABILITIES.
642 + commit 0d3be7b81eb1fea6b51144d2381eaa318a63e761
643 * configure.ac: Remove --with-libcap.
644 * curses/Makefile.am, efl/Makefile.am: Remove LIBCAP.
645 * emacs/Makefile.am, fltk/Makefile.am: Ditto.
646 * gnome3/Makefile.am, gtk+-2/Makefile.am: Ditto.
647 * qt/Makefile.am, tqt/Makefile.am: Ditto.
648 * tty/Makefile.am: Ditto.
649
650 secmem: Remove use of cap_set_proc.
651 + commit 88cad4621be36fa70596abb803252b844d1b5d42
652 * secmem/secmem.c (lock_pool): Clean up.
653
654 2022-06-01 Jakub Jelen <[email protected]>
655
656 pinentry: Remove dead code.
657 + commit 96771ae57e86756a2f079202cf069a1ce6cc4357
658 * pinentry/pinentry.c (pinentry_get_title): Remove needless check for
659 null on static array
660
661 pinentry: Terminate the buffer in the right place.
662 + commit cd753c8560cde013981466c7298e0376e27b6364
663 * pinentry/pinentry.c (get_pid_name_for_uid): Terminate the buffer in
664 the right place.
665
666 secmem: Do not pass negative values to strerr.
667 + commit c2e7cc560bdbcdaa9861ae8d37f28be5b342a64d
668 secmem/secmem.c (lock_pool): Pass the correct variable to strerr
669
670 2022-05-25 NIIBE Yutaka <[email protected]>
671
672 Mark with ASSUAN_CONFIDENTIAL flag.
673 + commit c405add93a77f332273fa844bba36dade3f6422b
674 * pinentry/pinentry.c (cmd_getpin): Call assuan_begin_confidential
675 and assuan_end_confidential.
676
677 2022-05-12 Ingo Klöcker <[email protected]>
678
679 qt: Update the cursor position when reformatting the text.
680 + commit 555cd94a2b2bb294a658a1c6ff9574f8a4ff3186
681 * qt/pinlineedit.cpp (PinLineEdit::textEdited): Update cursor position
682 after reformatting the text.
683
684 2022-03-24 NIIBE Yutaka <[email protected]>
685
686 w32,curses: Supply simple replacement for nl_langinfo.
687 + commit 41884436bec05997ffe21e93bcee604e53b9d120
688 * pinentry/pinentry-curses.c [HAVE_W32_SYSTEM] (nl_langinfo): New.
689
690 curses: Move pinentry_utf8_to_local/pinentry_local_to_utf8.
691 + commit 4612fd45f56963abf6052ef44a3575a1f98bf08a
692 * pinentry/pinentry-curses.c (pinentry_utf8_to_local): Now here.
693 (pinentry_local_to_utf8, lc_ctype_unknown_warning): Likewise.
694 * pinentry/pinentry.c: Moved to pinentry-curses.c.
695 (pinentry_get_pgmname): New.
696
697 build,w32: Fix build on Windows.
698 + commit 9a8a38d28d36cf49b057fcd730de878acbd5fae3
699 * Makefile.am: Add EXEEXT.
700 * secmem/secmem.c [HAVE_MMAP] (pool_is_mmapped): Only enabled with
701 HAVE_MMAP.
702 (init_pool): The variable PGSIZE is only used with HAVE_MMAP.
703
704 2022-03-02 Ingo Klöcker <[email protected]>
705
706 build: Do not list the same files thrice in qt/Makefile.am.
707 + commit 5531e1c682382f42ef8f0545596a4fd3635e8484
708 * qt/Makefile.am (CLEANFILES, nodist_pinentry_qt_SOURCES): Set to
709 $(BUILT_SOURCES).
710
711 qt: Make text label in pinentry message box focusable.
712 + commit 42af54bece51f3c4c70eab0b2f67a03cc8951dff
713 * qt/main.cpp (qt_cmd_handler): Set text format of message box to
714 PlainText. Set text interaction flags of message box to
715 TextSelectableByMouse.
716 * qt/qt/pinentryconfirm.h (class PinentryConfirm): Derive from
717 QAccessible::ActivationObserver interface; add d'tor; override
718 focusNextPrevChild method of QMessageBox and accessibilityActiveChanged
719 method of QAccessible::ActivationObserver interface.
720 * qt/pinentryconfirm.cpp (messageBoxLabel): New.
721 (PinentryConfirm::PinentryConfirm): Register as activation observer.
722 (PinentryConfirm::~PinentryConfirm): New.
723 (PinentryConfirm::focusNextPrevChild): New.
724 (PinentryConfirm::accessibilityActiveChanged): New.
725
726 qt: Extract function for selecting the text of a QLabel.
727 + commit b6370f87d247cfeb4d4161a248fa91661d08af37
728 * qt/accessibility.h, qt/accessibility.cpp (selectLabelText): New.
729 * qt/pinentrydialog.cpp (TextLabel::focusInEvent): Use new function.
730
731 qt: Modernize code.
732 + commit e7bcc0894e3a9e7cf5ae460af0269033c5b421cd
733 * qt/pinentryconfirm.h, qt/pinentryconfirm.cpp
734 (PinentryConfirm::PinentryConfirm): Remove timeout argument. Add flags
735 argument. Rename argument desc to text.
736 (PinentryConfirm::setTimeout, PinentryConfirm::timeout): New.
737 (PinentryConfirm::showEvent): Mark as override.
738 (class PinentryConfirm): Hold field _timer by value instead of by
739 pointer. Initialize _timed_out in-class. Use Q_SLOTS instead of slots.
740 * qt/pinentryconfirm.cpp (PinentryConfirm::PinentryConfirm):
741 Use QTimer::callOnTimeout() for setting the timeout handler. Do not
742 start the timer.
743 (PinentryConfirm::showEvent): Make timer a single-shot timer and start it.
744 * qt/main.cpp (qt_cmd_handler): Set timeout with new setter.
745
746 qt: Fix reaction to Escape key and close button of window.
747 + commit 4435e9fa206f29b2fbc45e24b85c5604c4eefdbd
748 * qt/pinentryconfirm.cpp (PinentryConfirm::showEvent): Call the
749 overridden method of the direct super class.
750
751 qt: Use better icon for signalling an error.
752 + commit 774e8a72cd1e10f6e81592fe8e47c13c3167cd77
753 * qt/icons/data-error.svg: New.
754 * qt/icons/Makefile.am, qt/pinentryrc.qrc: Add new file.
755 * qt/pinentrydialog.h, qt/pinentrydialog.cpp (icon): Rename to
756 applicationIconPixmap. Change optional parameter to QIcon.
757 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog,
758 PinEntryDialog::setDescription): Adjust to renaming of icon().
759 (PinEntryDialog::setError): Use new icon as overlay for application icon.
760 * qt/main.cpp (qt_cmd_handler): Adjust to renaming of icon().
761
762 2022-03-02 Andre Heinecke <[email protected]>
763
764 qt: Add Makefile.am for icons subdir.
765 + commit 62efdca5e5cc354e53bbf4d39ca84031a9706086
766 * qt/icons/Makefile.am: New.
767
768 2022-03-01 Ingo Klöcker <[email protected]>
769
770 qt: Modernize code: Use in-class initializers for all members.
771 + commit 09e0111f02853c210b2106410eedf62734c1ec35
772 * qt/pinentrydialog.h (class PinEntryDialog): Use in-class initializers
773 for all POD members.
774 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Remove
775 superfluous member initializers. Flag argument 'name' as unused. Remove
776 superfluous initialization by assignment of _timed_out and _timer.
777
778 qt: Modernize code: Use type-safe, new-style connects.
779 + commit d63355949f27787b131c34c8213666ea75a738ce
780 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Use new-style
781 connects.
782
783 qt: Fix giving focus to repeat field after Enter in first field.
784 + commit 8671cc814ca0c148bdfbd67816e211aa27462ca1
785 * qt/pinentrydialog.h, qt/pinentrydialog.cpp
786 (PinEntryDialog::keyPressEvent): New.
787 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Remove
788 connection to QLineEdit::returnPressed signal.
789 (PinEntryDialog::focusChanged): Remove code changing the default property
790 of the Ok button.
791
792 qt: Fix compiler warning.
793 + commit 3157e27ebbd62a08a813d4f8e2dac7051e3b1059
794 * qt/pinentrydialog.h (class PinEntryDialog): Mark showEvent as override.
795
796 qt: Allow text of all labels to be selected with the mouse.
797 + commit c75350edce1b0580caacbe8a30d8e52885ae6366
798 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Set text
799 interaction flags of all text labels to TextSelectableByMouse.
800 (PinEntryDialog::accessibilityActiveChanged): Keep ClickFocus in focus
801 policy of labels.
802
803 qt: Do not set an empty tool tip.
804 + commit e19dc862774e30206cb55662214273d068d9dc89
805 qt/pinentrydialog.cpp (PinEntryDialog::setConstraintsOptions): Check
806 if options.longHint is empty.
807
808 qt: Ensure visual feedback when a text label gets focus.
809 + commit 09f92e7123c22fb7354ad26a67b404f3cb4028a4
810 qt/pinentrydialog.cpp (class TextLabel): New.
811 qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Set text format
812 of all text labels to PlainText. Change all text labels that shall be
813 able to receive focus from QLabel to TextLabel.
814 (PinEntryDialog::setFormattedPassphrase): Set text format of
815 mFormattedPassphraseHint to RichText.
816
817 qt: Make text labels focusable if accessibility is active.
818 + commit 50ad2196d3f62a2fe078e4554b34e75b423374ee
819 qt/pinentrydialog.h (class PinEntryDialog): Derive from
820 QAccessible::ActivationObserver interface; add d'tor; override
821 accessibilityActiveChanged function of QAccessible::ActivationObserver
822 interface.
823 qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Register the
824 dialog as activation observer.
825 (PinEntryDialog::~PinEntryDialog): New.
826 (PinEntryDialog::accessibilityActiveChanged): New.
827
828 qt: Create all widgets in tab order.
829 + commit dd9f765258230cad6704afb4fab6c3deb4a8de56
830 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Initialize
831 _have_quality_bar with member initializer; rework setup of UI
832
833 2022-02-10 Andre Heinecke <[email protected]>
834
835 qt: Embed icons to avoid theme searches.
836 + commit 7d5c123f802abce11c711d57e8796d58d6ff1a16
837 * m4/qt.m4: Check for RCC tool
838 * qt/qrc_pinentry.cpp: Remove not used file.
839 * qt/document-encrypt.png: Move to icons subfolder
840 * qt/icons/*.svg: New.
841 * qt/main.cpp: Use new path for window icon.
842 * qt/pinentryrc.qrc: Real ressource file.
843 * qt/pinentrydialog.cpp: Use embedded icons.
844
845 2022-01-19 Daniel Kahn Gillmor <[email protected]>
846
847 avoid typo.
848 + commit 8b07ddf3460acd613db66f4c1230636da6ea191b
849
850
851 2022-01-17 Andre Heinecke <[email protected]>
852
853 qt: Install translator and translations.
854 + commit 8f239a2b133cae8ca9c1876c732d4e00d06c7d26
855 * qt/qti18n.cpp: New. Based on KDE framework ki18n.
856
857 2021-12-22 NIIBE Yutaka <[email protected]>
858
859 build: Fix configure.ac for newer autoconf/automake.
860 + commit ac338b99fd63ddfa8a7b6ae07933cfda6b108162
861 * configure.ac (AC_CONFIG_HEADERS): Use it, instead of obsolete
862 AM_CONFIG_HEADER.
863 (AC_HEADER_STDC): Remove.
864
865 2021-10-15 NIIBE Yutaka <[email protected]>
866
867 curses: Fix the previous commit.
868 + commit b713f31c5b042ff9d7b10c64bbc7ab02e195fbc9
869
870
871 2021-10-13 NIIBE Yutaka <[email protected]>
872 David Stes <[email protected]>
873
874 curses: Specify fg/bg when an extention of Ncurses is not available.
875 + commit d937ccfe4445394f0ca0da24fe46429a29ae48ce
876 * pinentry/pinentry-curses.c (dialog_run): Support original Curses.
877
878 2021-09-30 NIIBE Yutaka <[email protected]>
879
880 curses: Handle an error at curses initialization.
881 + commit d22c49140b86880bbea2bb55542297984792b40a
882 * pinentry/pinentry-curses.c (dialog_run): Detect an error of newterm.
883
884 2021-09-14 Ingo Klöcker <[email protected]>
885
886 qt: Support building with Qt 5.9.
887 + commit c68d80e23a860a06e7b22b6c0d72aed5d049faef
888 * qt/pinlineedit.cpp (class PinLineEdit::Private): Add field q.
889 (PinLineEdit::Private::Private): New.
890 (PinLineEdit::Private::copyToClipboard): Remove obsolete parameter.
891 Use new field q instead.
892 (PinLineEdit::Private::selectionEnd): New.
893 (PinLineEdit::PinLineEdit): Pass this to Private.
894 (PinLineEdit::setFormattedPassphrase): Use new selectionEnd.
895 (PinLineEdit::copy): Call copyToClipboard without parameter.
896
897 2021-08-25 Werner Koch <[email protected]>
898
899 Release 1.2.0.
900 + commit aaf5d44f26e39f57bb47ae09dd3d575fcc51d9f5
901
902
903 2021-08-18 Werner Koch <[email protected]>
904
905 Accept percent escaped formatted-passphrase-hint option.
906 + commit 008fb9337a52730b5533c6c3ddc93128f8c5395b
907 * pinentry/pinentry.c (option_handler): Unescape
908 formatted_passphrase_hint.
909
910 2021-08-18 Ingo Klöcker <[email protected]>
911
912 qt: Change group size for passphrase formatting to 5.
913 + commit 5a6d70cf7d7bdd42505400bb1838c56812a22e56
914 * qt/pinlineedit.cpp (static const int FormattedPassphraseGroupSize):
915 Set to 5.
916
917 2021-08-16 Ingo Klöcker <[email protected]>
918
919 qt: Make sure the message box is centered on top of the pinentry.
920 + commit d285c2cb1f61df77427967ea96c1df02adcae8df
921 * qt/pinentrydialog.cpp (PinEntryDialog::checkConstraints): Set
922 parent of message box.
923
924 2021-08-12 Ingo Klöcker <[email protected]>
925
926 qt: Make pinentry compile again with QT_NO_ACCESSIBILITY.
927 + commit 141b5776a90675877bdf63c17946170a7b20e5c6
928 * qt/accessibility.cpp, qt/accessibility.h: New.
929 * qt/Makefile.am (pinentry_qt_SOURCES): Add new files.
930 * qt/main.cpp (qt_cmd_handler): Use new Accessibility helpers.
931 * qt/pinentryconfirm.cpp (PinentryConfirm::PinentryConfirm): Use new
932 Accessibility helpers.
933 * qt/pinentrydialog.cpp (PinEntryDialog::setDescription,
934 PinEntryDialog::setError, PinEntryDialog::setOkText,
935 PinEntryDialog::setCancelText, PinEntryDialog::setQualityBar,
936 PinEntryDialog::setGenpinLabel, PinEntryDialog::setCapsLockHint,
937 PinEntryDialog::setConstraintsOptions): Use new Accessibility helpers.
938 (PinEntryDialog::textChanged, PinEntryDialog::checkCapsLock): Guard
939 code using accessibility features with #ifndef QT_NO_ACCESSIBILITY.
940
941 qt: Always make passphrase visible after generating it.
942 + commit e0b4e552638ed0d18a166a1337d9caa32744520e
943 * qt/pinentrydialog.cpp (PinEntryDialog::generatePin): Trigger
944 visibility action or check visibility checkbox.
945
946 qt: Prevent possible crash when generating pin.
947 + commit 146fc0444b1fd30b85bac1f97607a9691164faa0
948 * qt/pinentrydialog.cpp (PinEntryDialog::toggleVisibility): Check
949 visibility action for nullptr.
950
951 qt: Change calculation of end of selection when enabling formatting.
952 + commit 1349fb7bcb5c84f3e0474ae209c5a058c12ff6e9
953 * qt/pinlineedit.cpp (PinLineEdit::Private::formattedSelection):
954 Do not include trailing separator in selection.
955
956 qt: Fix calculation of end of selection when disabling formatting.
957 + commit 1ae88d75321898901a692df95799a3c7e7b2f038
958 * qt/pinlineedit.cpp (PinLineEdit::Private::unformattedSelection):
959 Fix calculation.
960
961 qt: Remove checkbox for passphrase formatting.
962 + commit 06190adba5ac544bce77c4e5af75b44896850145
963 * qt/main.cpp (qt_cmd_handler): Pass changed formatted passphrase
964 options to the dialog.
965 * qt/pinentrydialog.h (PinEntryDialog): Add field mFormatPassphrase.
966 Remove field mFormattedPassphraseCB.
967 (enum PinEntryDialog::FormattedPassphraseMode): Remove.
968 (struct PinEntryDialog::FormattedPassphraseOptions): Remove fields
969 mode, label, tooltip. Add field formatPassphrase.
970 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Initialize
971 mFormatPassphrase.
972 (PinEntryDialog::setFormattedPassphrase): Set mFormatPassphrase.
973 Update widgets.
974 (PinEntryDialog::toggleFormattedPassphrase): Use mFormatPassphrase
975 instead of state of removed checkbox.
976
977 Make passphrase formatting a simple flag.
978 + commit c42c6371fcf8ff2e856fa6059261617644e32a57
979 * pinentry/pinentry.h (struct pinentry): Remove fields
980 formatted_passphrase_label, formatted_passphrase_tt.
981 * pinentry/pinentry.c (pinentry_reset): Remove free'ing of removed
982 fields.
983 (option_handler): Treat option "formatted-passphrase" as simple flag.
984 Remove options "formatted-passphrase-label", "formatted-passphrase-tt".
985
986 2021-08-11 Ingo Klöcker <[email protected]>
987
988 qt: Add missing header files to sources.
989 + commit 990afda6a9a1633297882da4f9c255b60a1cc338
990 * qt/Makefile.am (pinentry_qt_SOURCES): Add header files.
991
992 qt: Add logging category.
993 + commit 3086964f103d19b035f8df95114905a82fb4eb89
994 * qt/pinentry_debug.cpp, qt/pinentry_debug.h: New.
995 * qt/Makefile.am (pinentry_qt_SOURCES): Add new files.
996 * qt/main.cpp (main): Use logging category for debug messages.
997
998 qt: Fix crash when setting repeat error.
999 + commit d71d890ec23e718f339dc5a3f141a3f04a38e020
1000 * qt/pinentrydialog.cpp (PinEntryDialog::setRepeatErrorText): Check
1001 for nullptr.
1002
1003 qt: Change type and title of "Passwords do not match" notification.
1004 + commit b8f1d2cc4202b4a76b199c356f2957df8acc37f5
1005 * qt/pinentrydialog.cpp (PinEntryDialog::onAccept): Make notification
1006 an "information". Use repeat error text as title.
1007
1008 qt: Avoid HTML markup in accessible descriptions and names.
1009 + commit 639725b68b8a57fdad610fbe570029f151b138cb
1010 * qt/pinentrydialog.cpp (PinEntryDialog::setFormattedPassphrase,
1011 PinEntryDialog::setConstraintsOptions):
1012 Set accessible descriptions and accessible names without HTML markup.
1013
1014 qt: Select generated password explicitly after giving focus to input.
1015 + commit 70b14b29d53291245dd72281e2b94a43f5834328
1016 qt/pinentrydialog.cpp (PinEntryDialog::generatePin): Select text in
1017 input field.
1018
1019 2021-08-10 Ingo Klöcker <[email protected]>
1020
1021 qt: Make the generate password action accessible.
1022 + commit 42c0d3ee935de67b5a261b1bd0fa62b1b519cbd4
1023 * qt/pinentrydialog.h (PinEntryDialog): Remove unused field mGenerateTT.
1024 Remove field mGenerateActionEdit. Add field mGenerateButton.
1025 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Initialize
1026 new field. Set up new push button.
1027 (PinEntryDialog::setGenpinLabel): Set accessible name and update
1028 visibility of new push button.
1029 (PinEntryDialog::setGenpinLabel): Set tooltip of new push button.
1030 (PinEntryDialog::setGenpinLabel): Update visibility of new push button.
1031 (PinEntryDialog::generatePin): Focus password input field.
1032
1033 2021-08-09 Ingo Klöcker <[email protected]>
1034
1035 qt: Improve accessibility when entering new password.
1036 + commit 8acf47ea46a6c2aa1fc5254b81c6cf57ad506b9c
1037 * qt/pinentrydialog.h (PinEntryDialog): Change type of field
1038 mRepeatError from QString to QLabel*.
1039 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Initialize
1040 mRepeatError. Add widget for "entered passwords do not match"
1041 error. Do not make the Ok button the default button. Connect to
1042 returnPressed signal of (first) password input field.
1043 (PinEntryDialog::focusChanged): Update default state of Ok button.
1044 (PinEntryDialog::textChanged): Remove code disabling the Ok button
1045 and setting a tooltip.
1046 (PinEntryDialog::setRepeatErrorText): Set text of "entered passwords
1047 do not match" widget.
1048 (PinEntryDialog::onAccept): Show error if entered passwords do not
1049 match.
1050
1051 2021-08-06 Andre Heinecke <[email protected]>
1052
1053 qt: Mask caps lock toggle bit on windows.
1054 + commit e5d4738a76b44c4732ddb57b7a3f3e25001ef006
1055 * qt/capslock_win.cpp (capsLockState): Mask toggle bit.
1056
1057 2021-08-02 Ingo Klöcker <[email protected]>
1058
1059 qt: Try harder to find out whether we are running in a GUI session.
1060 + commit 956ee260f541790e0ecf01feb9d91f8f1617aa0e
1061 * qt/main.cpp (main): Check more environment variables on Unix systems.
1062
1063 Fix typo.
1064 + commit 0735afa87e90c160bd3092605598c204b7dc38c3
1065
1066
1067 qt: Improve message shown if passphrase does not satisfy constraints.
1068 + commit fefd730651b6881aba374c548ff253517063747a
1069 qt/pinentrydialog.cpp (PinEntryDialog::checkConstraints): Use
1070 property-based API of QMessageBox.
1071
1072 qt: Ensure that malloced strings are free'd.
1073 + commit 6191d4f06c8b46232e7d1bb3e12e3a3736fa6582
1074 * qt/main.cpp (qt_cmd_handler): Use unique_malloced_ptr for malloced
1075 strings.
1076 * qt/pinentrydialog.cpp (PinEntryDialog::generatePin,
1077 PinEntryDialog::checkConstraints): Use unique_malloced_ptr for malloced
1078 strings.
1079 * qt/util.h: New.
1080
1081 qt: Cancel timeout on more user interactions.
1082 + commit f622321df5bbaedef882c3451307ff1727c4cd2d
1083 * qt/pinentrydialog.h, qt/pinentrydialog.cpp
1084 (PinentryDialog::cancelTimeout): New.
1085 * qt/pinentrydialog.cpp (PinEntryDialog::onBackspace): Cancel timeout.
1086 (PinEntryDialog::updateQuality, PinEntryDialog::textChanged): Cancel
1087 timeout in PinEntryDialog::textChanged instead of
1088 PinEntryDialog::updateQuality.
1089 (PinEntryDialog::onAccept): Cancel timeout.
1090
1091 2021-07-28 Ingo Klöcker <[email protected]>
1092
1093 qt: Check passphrase constraints before accepting passphrase.
1094 + commit b0969ef692ac729c3e3d9d8d5f34579f2116438a
1095 * qt/main.cpp (qt_cmd_handler): Pass constraints options to the dialog.
1096 * qt/pinentrydialog.h (PinEntryDialog): Add struct ConstraintsOptions.
1097 Add enum PassphraseCheckResult. Add fields mEnforceConstraints,
1098 mConstraintsHint, mConstraintsErrorTitle.
1099 * qt/pinentrydialog.h, qt/pinentrydialog.cpp
1100 (PinEntryDialog::setConstraintsOptions, PinEntryDialog::onAccept,
1101 PinEntryDialog::checkConstraints): New.
1102 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Initialize
1103 new fields. Call onAccept() on click on Ok. Add widget for constraints
1104 hint.
1105 (PinEntryDialog::checkCapsLock): Constify variable.
1106
1107 Add support for passphrase constraints options and checkpin inquiry.
1108 + commit 8f5d4532fbd6e3ed460386bdcda2cdac066a0556
1109 * pinentry/pinentry.h (struct pinentry): Add fields constraints_enforce,
1110 constraints_hint_short, constraints_hint_long, constraints_error_title.
1111 * pinentry/pinentry.h, pinentry/pinentry.c (pinentry_inq_checkpin):
1112 New.
1113 * pinentry/pinentry.c (pinentry_reset): Take care of the new fields.
1114 (do_unescape_inplace): New.
1115 (option_handler): New options "constraints-enforce",
1116 "constraints-hint-short", "constraints-hint-long",
1117 "constraints-error-title".
1118
1119 2021-07-26 Ingo Klöcker <[email protected]>
1120
1121 Mention Caps Lock warning in NEWS file.
1122 + commit 134f75516d9511d7012e7dd3567e45b00ce4cb9a
1123
1124
1125 qt: Add support for Caps Lock hint on Wayland.
1126 + commit 3e803ebf640e73d9fb485fbb8b69b845a80fc695
1127 * configure.ac: Check for KF5WaylandClient. Add "-fpic" to CFLAGS.
1128 Define PINENTRY_QT_WAYLAND if pinentry-qt should use KF5WaylandClient.
1129 * qt/Makefile.am (BUILT_SOURCES, CLEANFILES, nodist_pinentry_qt_SOURCES):
1130 Add capslock.moc.
1131 (pinentry_qt_SOURCES): Add capslock.cpp.
1132 * qt/capslock.cpp: New.
1133 * qt/capslock.h (class CapsLockWatcher): New.
1134 * qt/capslock_p.h: New.
1135 * qt/capslock_unix.cpp (watchingWayland): New static.
1136 (capsLockState): Log hint for using CapsLockWatcher on Wayland.
1137 (CapsLockWatcher::Private::*): New.
1138 * qt/pinentrydialog.cpp: Include config.h.
1139 (PinEntryDialog::PinEntryDialog): Set up CapsLockWatcher.
1140
1141 qt: Differentiate unknown Caps Lock state from off state.
1142 + commit a074c90c78a6dfed3b7d8f32434bcf9f9f2b56dc
1143 * qt/capslock.h (enum class LockState): New.
1144 * qt/capslock.h, qt/capslock_unix.cpp, qt/capslock_win.cpp
1145 (capsLockIsOn, capsLockState): Rename former to latter. Change return
1146 type to LockState.
1147 * qt/capslock_unix.cpp (capsLockState): Remove check for qApp.
1148 * qt/pinentrydialog.cpp (checkCapsLock): Adapt to changed function name
1149 and return type of capsLockIsOn/capsLockState.
1150
1151 2021-07-22 Ingo Klöcker <[email protected]>
1152
1153 qt: Fix showing of pinentry window on Wayland.
1154 + commit 9dd46926f8d50cca059bbf5ea7aa003b9199a05f
1155 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Skip the
1156 minimize+raise trick on Wayland.
1157
1158 2021-07-21 Ingo Klöcker <[email protected]>
1159
1160 qt: Show hint if Caps Lock is on.
1161 + commit 78e4284e8d93502f301cf0c2eab384094680d444
1162 * configure.ac: Check for libX11. Define PINENTRY_QT_X11 if pinentry-qt
1163 should use x11.
1164 * m4/qt.m4: Check for Qt5X11Extras if libX11 is available.
1165 * qt/Makefile.am (pinentry_qt_platform_SOURCES): New.
1166 (pinentry_qt_SOURCES): Add pinentry_qt_platform_SOURCES.
1167 * qt/capslock.h, qt/capslock_unix.cpp, qt/capslock_win.cpp: New.
1168 * qt/main.cpp (qt_cmd_handler): Pass caps lock hint to the dialog.
1169 * qt/pinentrydialog.cpp, qt/pinentrydialog.h
1170 (PinEntryDialog::setCapsLockHint, PinEntryDialog::keyReleaseEvent,
1171 PinEntryDialog::checkCapsLock): New.
1172 * qt/pinentrydialog.h (PinEntryDialog): Use Q_SLOTS instead of slots.
1173 Add field mCapsLockHint.
1174 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Initialize
1175 new field. Add new widgets to GUI. Connect to applicationStateChanged()
1176 signal. Call checkCapsLock().
1177
1178 Add support for Caps Lock hint.
1179 + commit 672260f15bf88f7aadc88e5ed2717ed22abc510e
1180 * pinentry/pinentry.h (struct pinentry): Add field 'default_capshint'.
1181 * pinentry/pinentry.cpp (pinentry_reset): Take care of this field.
1182 (option_handler): New option "default-capshint".
1183
1184 2021-07-15 Ingo Klöcker <[email protected]>
1185
1186 Fix Assuan commands mentioned in comments.
1187 + commit 621500c872585b60d2b31e2ce529c916b2f1d64c
1188 pinentry/pinentry.h (struct pinentry): Fix comments.
1189
1190 qt: Keep selection when enabling/disabling passphrase formatting.
1191 + commit d875dba1cf87623d0d1240465cd43c660956eb2a
1192 * qt/pinlineedit.cpp (struct Selection): New.
1193 (PinLineEdit::Private::formattedSelection,
1194 PinLineEdit::Private::formattedSelection): New.
1195 (PinLineEdit::setFormattedPassphrase): Restore adjusted selection after
1196 setting formatted/unformatted passphrase.
1197
1198 qt: Enable formatted passphrase after generating passphrase.
1199 + commit 64695a5e6f7bf59a1c161a60805dcfe5f3e5d720
1200 * qt/pinentrydialog.cpp (PinEntryDialog::generatePin): Enable formatted
1201 passphrase option.
1202
1203 qt: Select passphrase after generation.
1204 + commit 5a5a4de1a32ebfc6364aedfe00702eee9374d63e
1205 qt/pinentrydialog.cpp (PinEntryDialog::generatePin): Select text in
1206 input field.
1207
1208 qt: Enable passphrase generation.
1209 + commit 742462d8a4d124936650901fe57b928a6518957c
1210 qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Set icon for
1211 generate action to a valid icon.
1212
1213 qt: Show hint if passphrase is shown and formatting is enabled.
1214 + commit 85b180f1b0148a07d51d244deb1a1245c9008cc3
1215 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Initialize
1216 new fields.
1217 (PinEntryDialog::PinEntryDialog): Add new widgets to GUI.
1218 (PinEntryDialog::setFormattedPassphrase): Set text of the hint.
1219 (PinEntryDialog::toggleFormattedPassphrase): Show/hide hint and spacer
1220 as needed.
1221 * qt/pinentrydialog.h (PinEntryDialog): Add fields
1222 mFormattedPassphraseHint, mFormattedPassphraseHintSpacer.
1223
1224 qt: Copy passphrase without separators to clipboard.
1225 + commit 8ad23d6f18cecf4fd0ba1f357a1845c36c9abc97
1226 * qt/pinlineedit.cpp, qt/pinlineedit.h (PinLineEdit::copy,
1227 PinLineEdit::cut): New.
1228 * qt/pinlineedit.cpp (PinLineEdit::Private::copyToClipboard): New.
1229 (PinLineEdit::keyPressEvent): Handle more key sequences.
1230
1231 qt: Support passphrase formatting.
1232 + commit de70241567773a96195882002ce916e54a3639c1
1233 * qt/main.cpp (qt_cmd_handler): Pass formatted passphrase options to
1234 the dialog.
1235 * qt/pinentrydialog.cpp, qt/pinentrydialog.h
1236 (PinEntryDialog::setFormattedPassphrase,
1237 PinEntryDialog::toggleFormattedPassphrase): New.
1238 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Initialize
1239 new field. Construct widgets in the order they appear on the screen.
1240 Add widget for enabling passphrase formatting.
1241 (PinEntryDialog::setPin, PinEntryDialog::generatePin): Use
1242 PinLineEdit::setPin() instead of setText().
1243 (PinEntryDialog::pin, PinEntryDialog::textChanged,
1244 PinEntryDialog::repeatedPin): Use PinLineEdit::pin() instead of text().
1245 (PinEntryDialog::toggleVisibility): Call toggleFormattedPassphrase().
1246 * qt/pinentrydialog.h (enum PinEntryDialog::FormattedPassphraseMode,
1247 struct PinEntryDialog::FormattedPassphraseOptions): New.
1248 * qt/pinentrydialog.h (PinEntryDialog): Change type of field mRepeat.
1249 Add field mFormattedPassphraseCB.
1250 * qt/pinlineedit.cpp, qt/pinlineedit.h (PinLineEdit::~PinLineEdit,
1251 PinLineEdit::setPin, PinLineEdit::pin,
1252 PinLineEdit::setFormattedPassphrase, PinLineEdit::textEdited,
1253 class PinLineEdit::Private): New.
1254 * qt/pinlineedit.cpp: Add static constants FormattedPassphraseGroupSize,
1255 FormattedPassphraseSeparator.
1256 (PinLineEdit::PinLineEdit): Initialize new field. Connect textEdited
1257 signal.
1258 * qt/pinlineedit.h (PinLineEdit::PinLineEdit): Add explicit specifier.
1259 Make argument optional.
1260 (PinLineEdit::keyPressEvent): Add override specifier.
1261 (PinLineEdit): Make inherited QLineEdit::setText and QLineEdit::text
1262 private. Add field d.
1263
1264 Add support for formatted passphrase options.
1265 + commit deb97f3eb65f64ccabffee74c037a3dca81a3f49
1266 * pinentry/pinentry.h (struct pinentry): Add fields
1267 formatted_passphrase, formatted_passphrase_label,
1268 formatted_passphrase_tt, formatted_passphrase_hint.
1269 * pinentry/pinentry.c (pinentry_reset): Free the fields.
1270 (option_handler): Add options "formatted-passphrase",
1271 "formatted-passphrase-label", "formatted-passphrase-tt",
1272 "formatted-passphrase-hint".
1273
1274 2021-04-16 NIIBE Yutaka <[email protected]>
1275 Jakub Jelen <[email protected]>
1276
1277 tty: Fix error return paths and its resource leaks.
1278 + commit 7f7fd8bcfd74919091cc318b27b8617a9ef2ac82
1279 * tty/pinentry-tty.c (tty_cmd_handler): Only call do_touch_file
1280 on successful interaction. Fix closing file.
1281
1282 2021-04-15 NIIBE Yutaka <[email protected]>
1283
1284 build: Update m4/gpg-error.m4.
1285 + commit 6b697bd3e9f859cea338936894079241f2e15ffc
1286 * m4/gpg-error.m4: Update from libgpg-error.
1287
1288 Let autogen.sh create the VERSION file.
1289 + commit 1c0c177fa5aee63bc2c12ba2074a337555254d99
1290 * autogen.sh: Update from Libgpg-error
1291 * configure.ac: Use autogen.sh --find-version.
1292 * Makefile.am (dist-hook): Do not create VERSION.
1293 (EXTRA_DIST): Add VERSION.
1294 * autogen.rc: Remove obsolete use of --with-gpg-error-prefix and
1295 --with-libassuan-prefix, which is not needed any more.
1296
1297 2021-04-14 Jakub Jelen <[email protected]>
1298
1299 core,emacs,tty,curses: Fix memory leaks, invalid accese, and mistake.
1300 + commit a87d9e8f89f946a733c756c72bf5ec41e0a738b8
1301 * pinentry/pinentry-curses.c (dialog_create): Free NEW.
1302 [HAVE_NCURSESW] (dialog_run): Free OLD_CTYPE on error.
1303 * pinentry/pinentry.c (pinentry_inq_genpin): Free VALUE on error.
1304 * tty/pinentry-tty.c (tty_cmd_handler): Don't access closed FDs.
1305 * pinentry/pinentry-emacs.c (set_labels): Fix for ->default_cancel.
1306
1307 2021-02-23 Damien Goutte-Gattat <[email protected]>
1308
1309 qt: Honor the --disable-rpath option.
1310 + commit 6e8ad3150566d16a20cb3b54267191bcb0c14208
1311 * m4/qt.m4: Do not set rpath if --disable-rpath has been specified
1312 at configure time.
1313
1314 2021-02-19 Ingo Klöcker <[email protected]>
1315
1316 build: Make EFL libraries optional unless EFL is explicitly wanted.
1317 + commit d09e7de3df65b22ae2e606e5c9e32dda260c8bef
1318 * configure.ac: Build pinentry-efl if EFL libraries are found. If EFL
1319 libraries are not found, then warn or error out depending on whether EFL
1320 is explicitly requested or not.
1321
1322 2021-02-18 Daniel Kahn Gillmor <[email protected]>
1323
1324 build: Simplfy use of pkg-config when testing for EFL.
1325 + commit 19a18ba5fee049aac87b5114763095aaeb42430f
1326 * configure.ac: use standard PKG_CONFIG macros when testing for EFL
1327 libraries.
1328
1329 GnuPG-Bug-Id: T5308
1330
1331 2021-02-16 Bertrand Jacquin <[email protected]>
1332
1333 efl: Convert pinentry description to markup.
1334 + commit d6a3a048f172cf79869d1a0c0bc1e1c659e5dab7
1335 * efl/pinentry-efl.c (create_window): Convert all UI strings to markup
1336 text.
1337
1338 2021-02-13 Bertrand Jacquin <[email protected]>
1339
1340 efl: Ensure pinentry window is activated.
1341 + commit 8fcbc9f40102d083db7a4acff2445e546ff5ec8b
1342 * efl/pinentry-efl.c (create_window): Call elm_win_activate.
1343
1344 2021-01-26 Andre Heinecke <[email protected]>
1345
1346 qt: Fix build against Qt4.
1347 + commit 2859eddfb0c935d3f9eb9ccc1b42c121621123e9
1348 * qt/main.cpp: Ifdef out QWindow usage.
1349 * qt/pinentrydialog.cpp: Only call the raiseWindow delayed when
1350 using Qt5.
1351
1352 2021-01-18 Damien Goutte-Gattat <[email protected]>
1353
1354 build: Fix make dist with newer Automake.
1355 + commit b3e83681119e74a7a084310cd1ab14170cb549d5
1356 * qt/Makefile.am: Make sure .moc files are only built if needed.
1357 * tqt/Makefile.am: Likewise.
1358
1359 2020-12-21 NIIBE Yutaka <[email protected]>
1360
1361 gtk+-2: Avoid use of deprecated API.
1362 + commit de1829f81f31df37912198dda4a0c31c75a79c01
1363 * gtk+-2/pinentry-gtk-2.c (create_window): Use
1364 gtk_widget_set_can_default.
1365
1366 2020-11-20 Andre Heinecke <[email protected]>
1367
1368 qt: Disable generate button for now.
1369 + commit 749529cac2b050586518d8de145a55901d6158cd
1370 * qt/pinentrydialog.cpp: Disable generate until we make it
1371 prettier.
1372
1373 2020-11-18 NIIBE Yutaka <[email protected]>
1374
1375 build: Update to newer autoconf constructs.
1376 + commit 5c83f6314e3fe6cb78d92e353263ac519821c927
1377 * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE.
1378 Use AS_HELP_STRING instead of AC_HELP_STRING.
1379 * m4/gpg-error.m4: Update from libgpg-error.
1380 * m4/libassuan.m4: Update from libassuan.
1381
1382 2020-11-06 Andre Heinecke <[email protected]>
1383
1384 qt: Improve focus and frontness.
1385 + commit a421ae8c4d2a0ce182e099e634e49ccdad454627
1386 * qt/pinentrydialog.cpp (raiseWindow): Use QtWindowsWindowFunctions
1387 to get a more agressive bring to frontness.
1388 (PinEntryDialog::PinEntryDialog): Start minimized.
1389
1390 qt: Fix crash when generate icon was not found.
1391 + commit cd2e69bfcf2630d7a61c4499b49c21790a1821d1
1392 * qt/pinentrydialog.cpp (PinEntryDialog::setGenpinLabel)
1393 (PinEntryDialog::setGenpinTT): Check for NULL.
1394
1395 qt: Silence deprecation warning.
1396 + commit e4f1681550b1c42c062bc0e209947f13351cf02c
1397 * qt/pinentrydialog.cpp (PinEntryDialog::setDescription): QString::null
1398 is deprecated.
1399
1400 qt: Add genpin suppport.
1401 + commit 340e3ef6f4fc1136bc38691745aeb651cbf263a1
1402 * pinentry/pinentry.c (pinentry_inq_genpin): New. Based on
1403 inq_quality.
1404 (cmd_setgenpin_tt, cmd_setgenpin_label): New string helpers.
1405 (register_commands): Register stringhelper commands.
1406 * pinentry/pinentry.h (struct pinentry): Add new variables for
1407 label and tooltips.
1408 * qt/main.cpp (qt_cmd_handler): Set up labels.
1409 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Add
1410 generate action if label is provided.
1411 (PinEntryDialog::setGenpinLabel): New.
1412 (PinEntryDialog::setGenpinTT): New.
1413 (PinEntryDialog::textChanged): Hide generate action if text
1414 is entered.
1415 (PinEntryDialog::generatePin): Inquire generate.
1416 (PinEntryDialog::toggleVisibility): Allow calls from other
1417 senders.
1418
1419 2020-05-08 Andre Heinecke <[email protected]>
1420
1421 curses: Fix build with ncurses 6.2.
1422 + commit ae584040d14a4d7d6eed8be77844126130ef0118
1423 * pinentry/pinentry-curses.c (curses_cmd_handler): Use
1424 renamed variable.
1425 * pinentry/pinentry.c (pinentry_reset, pinentry_parse_opts)
1426 (option_handler, cmd_getinfo) Use renamed variable.
1427 * pinentry/pinentry.h (struct pinentry): Rename ttytype to
1428 ttytype_l.
1429
1430 2020-01-10 David Faure <[email protected]>
1431
1432 qt: Add rpath so the Qt libs are found at runtime.
1433 + commit 971d1365ab16279bb33312583c320008e391f26e
1434 * configure.ac: Add PINENTRY_QT_LDFLAGS variable.
1435 * m4/qt.m4: Check qt libdir and add it to LDFLAGS.
1436 * qt/Makefile.am: Use PINENTRY_QT_LDFLAGS.
1437
1438 2019-12-05 NIIBE Yutaka <[email protected]>
1439
1440 build: Require newer GTK+2 (>= 2.12.0).
1441 + commit 099b79fc2d6638598b94161e1162a55af8a95531
1442 * configure.ac: Check gtk+-2.0 >= 2.12.0.
1443
1444 gtk: Remove support of old GTK+2 (< 2.12.0).
1445 + commit edbd0d61b35fe7408cb879c0bd81daf42accb5ed
1446 * gtk+-2/pinentry-gtk-2.c (tooltips): Remove
1447 (create_window): Remove use of tooltips, but use
1448 gtk_widget_set_tooltip_text.
1449
1450 2019-11-14 Werner Koch <[email protected]>
1451
1452 core: Allow to query info about the emacn integration.
1453 + commit 02a4f2fa0d8c8a63e72b9b9924b2817bfacce09a
1454 * pinentry/pinentry-emacs.c (pinentry_emacs_status): New.
1455 * pinentry/pinentry.c (cmd_getinfo): Add emacs info getinfo.
1456
1457 emacs: Handle options before trying to conenct to emacs.
1458 + commit f4b896ab75ba6536e78c56d377ad5ab6ff69b944
1459 * emacs/pinentry-emacs.c (main): Parse options first.
1460
1461 2019-07-25 Andre Heinecke <[email protected]>
1462
1463 qt: Fix use of dangling pointer in QApplication.
1464 + commit 0e2e53c8987d6f236aaef515eb005e8e86397fbc
1465 * qt/main.cpp (main): Use a new variable for argc that stays
1466 valid.
1467
1468 2019-07-10 NIIBE Yutaka <[email protected]>
1469
1470 curses: Fix more.
1471 + commit dad35d65f05eb1c15589a7e4755dcae6aed2d6cf
1472 * pinentry/pinentry-curses.c (dialog_create): Reverting was not
1473 enough. Correctly check with the character at len - 1.
1474
1475 2019-07-09 NIIBE Yutaka <[email protected]>
1476
1477 curses: Fix handling of newline in description.
1478 + commit a03f3920714830b1f09b48f41be5a0aa8177f11a
1479 * pinentry/pinentry-curses.c (collect_line): LEN including the
1480 newline/null character.
1481 (dialog_create): Fix the caluculation.
1482
1483 curses: Fix width calculation.
1484 + commit 67a7cfa12d1525097d9822124c9bd05207204a60
1485 * pinentry/pinentry-curses.c (collect_line): Fix caluculation
1486 where skipping the first character and adding 1 column.
1487
1488 curses: Fix calculation of columns for CJK text.
1489 + commit 9298cca67742df946efb9ba268a04904339454f1
1490 * pinentry/pinentry-curses.c (STRWIDTH): New.
1491 (collect_line): Let return value for columns width.
1492 LEN minus one.
1493 (dialog_create): Calculate for the columns with STRWIDTH.
1494
1495 2019-06-27 NIIBE Yutaka <[email protected]>
1496
1497 tty: Confirmation is not by line edit mode.
1498 + commit f6e84ce0a34c5314999ac9af2f1d360c157b1ed5
1499 * tty/pinentry-tty.c (terminal_setup): Support single char mode.
1500
1501 tty: Support line editing by system.
1502 + commit 531b92300c58aee665b55d1dffa7ffb4027cba20
1503 * tty/pinentry-tty.c (terminal_setup): Not cbreak, but only no echo.
1504 (confirm, read_password): Don't do editing here.
1505 [HAVE_DOSISH_SYSTEM] (confirm, read_password): Return
1506 GPG_ERR_FULLY_CANCELED when EINTR and it's not timed out.
1507 (tty_cmd_handler): Call sigaction for SIGINT.
1508
1509 Exit the loop on an error with GPG_ERR_FULLY_CANCELED.
1510 + commit b176a8ac0dcd682549084cbf02876a550226d722
1511 * pinentry/pinentry.c (cmd_getpin, cmd_confirm): Set
1512 ASSUAN_FORCE_CLOSE flag when GPG_ERR_FULLY_CANCELED.
1513
1514 tty: Factor out terminal setup into tty_cmd_handler.
1515 + commit 89add7b733138d7fe86d348be57873936cab3112
1516 * tty/pinentry-tty.c (terminal_save, terminal_restore): New.
1517 (terminal_setup): Rename from cbreak.
1518 (confirm, read_password): Don't touch terminal setting here.
1519 (tty_cmd_handler): Do terminal setting/restore here.
1520
1521 2019-06-10 Ineiev <[email protected]>
1522
1523 tty: Show supplied message when using default.
1524 + commit 95743b2cd7361aab10c5eb4f430928d09ce9c214
1525 * tty/pinentry-tty.c (fputs_highlighted): New function.
1526 (button): Display the supplied text when falling back to default; the
1527 default text is shown in braces and provides the accelerator.
1528
1529 2019-05-13 NIIBE Yutaka <[email protected]>
1530
1531 build: Update m4/iconv.m4.
1532 + commit 42c32e08d5a428627e5f74e0ab2bf4102e511b40
1533 * m4/iconv.m4: Update from gettext 0.20.1.
1534
1535 2019-04-17 Daniel Kahn Gillmor <[email protected]>
1536
1537 gnome3: correctly detect when no GNOME screenlock exists.
1538 + commit f74c4673e6b60508012c14f7574dbc3215345210
1539 * gnome3/pinentry-gnome3.c (pe_gnome_screen_locked): skip
1540 G_IO_ERROR_IS_DIRECTORY responses, not G_IO_ERROR_TIMED_OUT responses
1541 from dbus.
1542
1543 2019-04-17 Zephaniah E. Loss-Cutler-Hull <[email protected]>
1544
1545 gnome3: Use the default dbus timeout when checking for screenlock.
1546 + commit 65d2c6d5911ab04b19f953153d01116198cc4cb8
1547 * gnome3/pinentry-gnome3.c (pe_gnome_screen_locked): use default dbus
1548 timeout instead of 0ms.
1549
1550 2019-03-04 NIIBE Yutaka <[email protected]>
1551
1552 Update gpg-error.m4 and libassuan.m4 from corresponding repos.
1553 + commit 6ddcc92cf6e9a904a5c98982709edeb42034843d
1554 * m4/gpg-error.m4: Update.
1555 * m4/libassuan.m4: Update.
1556
1557 2019-02-10 Damien Goutte-Gattat <[email protected]>
1558
1559 build: Add --disable-doc option.
1560 + commit 8f8d907f53b2749642ee273e2cec28f7d68f26ff
1561 * configure.ac (BUILD_DOC): Add new am_conditional.
1562 * Makefile.am: Skip doc subdir if BUILD_DOC is not set.
1563
1564 2019-02-10 Damien Goutte-Gattat <[email protected]>
1565 Michael Bäuerle
1566
1567 fltk: Handle '_' in button labels as keyboard shortcuts.
1568 + commit 21f0883059c84de7145d402877cd178fcfed44e3
1569 * fltk/main.cxx (convert_accel_utf8): New method.
1570 (fltk_cmd_handler): Calls previous method to escape button labels.
1571
1572 2019-02-10 Daniel Kahn Gillmor <[email protected]>
1573
1574 fltk: Fix formatting escapes.
1575 + commit a60e4f8142159b3e2df10d8d725b9680be5b4616
1576 * fltk/main.cxx (fltk_cmd_handler): Fix calls to fl_message()
1577 and fl_choice() functions.
1578
1579 2018-08-22 Damien Goutte-Gattat via Gnupg-devel <[email protected]>
1580
1581 Disallow echo disabling when prompting for a PIN.
1582 + commit d0eaec8ef60be9b4d1aa5993c11d261a35202a2e
1583 * gtk+-2/pinentry-gtk-2.c (create_window): Do not setup
1584 the backspace handler when prompting for a PIN.
1585 callback only when not prompting for a PIN.
1586 * qt/pinentrydialog.h (_got_input): Rename field to
1587 _disable_echo_allowed.
1588 * qt/pinentrydialog.cpp (PinEntryDialog::setPrompt): Disallow
1589 echo disabling when prompting for a PIN.
1590 * tqt/pinentrydialog.h (_got_input): Rename field to
1591 _disable_echo_allowed.
1592 * tqt/pinentrydialog.cpp (PinEntryDialog::setPrompt): Disallow
1593 echo disabling when prompting for a PIN.
1594
1595 2018-08-15 Damien Goutte-Gattat via Gnupg-devel <[email protected]>
1596
1597 tqt: Disable echoing if backspace is pressed first.
1598 + commit 0fb3392f61569cb93e52c81465bc8e4636bca3b7
1599 * tqt/secqlineedit.h (backspacePressed): New signal.
1600 * tqt/secqinternal.cpp (SecTQLineEdit::backspace): Emit new signal.
1601 * tqt/pinentrydialog.h (_got_input): New member field.
1602 (onBackspace): New slot.
1603 * tqt/pinentrydialog.cpp (onBackspace): New slot.
1604 (PinEntryDialog::updateQuality): Prevent echo disabling as soon as
1605 the text has been edited.
1606
1607 qt: Disable echoing if backspace is pressed first.
1608 + commit a75786a11666a080cae67f6e386163fcf93ff233
1609 * qt/pinlineedit.h: New file.
1610 * qt/pinlineedit.cpp: New file.
1611 * qt/Makefile.am: Add new source files.
1612 * qt/pinentrydialog.cpp (PinEntryDialog): New member _got_input;
1613 Type of _edit member changed to PinLineEdit.
1614 (PinEntryDialog::onBackspace): New slot.
1615
1616 gtk: Disable echoing if backspace is pressed first.
1617 + commit 4b06bc6009011a84e5e8d4da2f01659f35e5a2d5
1618 * gtk+-2/pinentry-gtk-2.c (backspace_handler): New callback.
1619 (create_window): Attach previous callback to "backspace" signal.
1620
1621 curses: Disable echoing if backspace is pressed first.
1622 + commit fd22facabd784586f72eeecc72830620a534929c
1623 * pinentry/pinentry-curses.c (struct dialog): New fields got_input,
1624 no_echo.
1625 (dialog_input): Disable echoing and display instead "[no echo]" if
1626 the backspace key is pressed first.
1627
1628 2018-06-13 Werner Koch <[email protected]>
1629
1630 core: Add info about tty mode etc to 'getinfo ttyinfo'
1631 + commit 779b8e6df7d2678d40bc61ba9e9ff35324a40d03
1632 * configure.ac: Check for 'stat'.
1633 * pinentry/pinentry.c: Include types.h and stat.h.
1634 (device_stat_string): New.
1635 (cmd_getinfo): Print more info.
1636
1637 2018-05-29 William L. Thomson Jr <[email protected]>
1638
1639 efl: Add an EFL-based pinentry.
1640 + commit 948105b7a34ec9a9e5479d376b7c86bafee50a01
1641 * NEWS: Update.
1642 * Makefile.am: Add new efl subdirectory.
1643 * configure.ac: Add --enable-pinentry-efl option.
1644 * efl/Makefile.am: New file.
1645 * efl/pinentry-efl.c: New file.
1646
1647 2018-03-05 Andre Heinecke <[email protected]>
1648
1649 qt: Try again to fix Windows Window Management.
1650 + commit fa817f00363cdc305728ece6139d76361c77f361
1651 * qt/pinentrydialog.cpp (raiseWindow): Activate Window and
1652 disable windows hacks.
1653 (PinEntryDialog::PinEntryDialog): Delay setFocus after the
1654 event loop returns.
1655
1656 2018-03-01 Andre Heinecke <[email protected]>
1657
1658 qt: Renable Windows Foreground Window hacks.
1659 + commit 141fd941a58f70692cb6244f011e54b005d2195c
1660 * qt/main.cpp, qt/pinentryconfirm.cpp: Use raiseWindow again.
1661 * qt/pinentrydialog.cpp: Renable Foreground Window hacks.
1662
1663 2018-02-28 Andre Heinecke <[email protected]>
1664
1665 qt: Clean up foreground window code.
1666 + commit 84d473f5c323a3001374b0db736af9be4e3478a3
1667 * qt/main.cpp (ForeignWidget): Remove. This did nothing
1668 with Qt 5.
1669 (setup_foreground_window): New helper to set parent and
1670 window flags.
1671 (qt_cmd_handler): Use setup_foreground_window.
1672 * qt/pinentrydialog.cpp: Disable Windows API hacks.
1673
1674 2018-02-06 Daniel Kahn Gillmor <[email protected]>
1675
1676 tqt: use UTF-8 instead of ISO-8859-1.
1677 + commit 822c66815b5072281563fc4faa055493d20d660d
1678
1679
1680 2017-12-03 Werner Koch <[email protected]>
1681
1682 Release 1.1.0.
1683 + commit 02df3d26b986c8f2850eeba47efcb3aca9d5dbcb
1684
1685
1686 2017-11-22 Damien Goutte-Gattat <[email protected]>
1687 "deloptes" <[email protected]>
1688
1689 tqt: Add a TQt-based pinentry.
1690 + commit 985e5cad6f60de8e60d8ae410cffcd7e2d84f3a2
1691 * NEWS: Update.
1692 * Makefile.am: Add new tqt subdirectory.
1693 * configure.ac: Add --enable-pinentry-tqt option.
1694 * tqt/Makefile.am: New file.
1695 * tqt/main.cpp: New file.
1696 * tqt/pinentrydialog.cpp: New file.
1697 * tqt/pinentrydialog.h: New file.
1698 * tqt/secqinternal.cpp: New file.
1699 * tqt/secqinternal_p.h: New file.
1700 * tqt/secqlineedit.cpp: New file.
1701 * tqt/secqlineedit.h: New file.
1702 * tqt/secqstring.cpp: New file.
1703 * tqt/secqstring.h: New file.
1704
1705 2017-11-21 Werner Koch <[email protected]>
1706
1707 w32: Allow building for Windows again.
1708 + commit 8ea3a6c3f8e72ebece2af9b1b05ea1da4865a786
1709 * pinentry/pinentry.c [W32]: Do not include utsname.h
1710 (WITH_UTF8_CONVERSION): New macro.
1711 (lc_ctype_unknown_warning): Move that var to the top and define only
1712 if needed.
1713 (pinentry_utf8_to_local, pinentry_local_to_utf8): Simplyfy by using
1714 the new macro.
1715 (get_cmdline) [W32]: Do not build.
1716 (get_pid_name_for_uid) [W32]: Do not build.
1717 (pinentry_get_title) [W32]: Do not use the new utsname code.
1718 (option_handler) <debug-wait>: Ignore for any Windows version.
1719
1720 2017-11-20 Werner Koch <[email protected]>
1721
1722 Add SPDX-License-Identifier to most files.
1723 + commit 622f876784239c9524a598e6486181bcd0ee64b2
1724
1725
1726 Add copyright info for AUTHORS.
1727 + commit 738ab548f13cc032f01ca5da1f8dc3ea221b209d
1728
1729
1730 2017-11-16 Damien Goutte-Gattat <[email protected]>
1731
1732 fltk: Fix compilation and distcheck errors.
1733 + commit 89ae5378d1cc54be0825bcfa3ea567b1caa4a247
1734 * fltk/Makefile.am (AM_CXXFLAGS): Add -std=c++11 flag.
1735 (pinentry_fltk_SOURCES): Add header files.
1736 (EXTRA_DIST): Add icon files.
1737 * .gitignore: Ignore autoconf-generated files in fltk/.
1738
1739 2017-10-19 Daniel Kahn Gillmor <[email protected]>
1740
1741 core: Expect (and verify) a uid on "owner" option.
1742 + commit 6aafa61b199ab9091d6c9e190129f2ead2a647c7
1743 * pinentry/pinentry.h (struct pinentry): Add field 'owner_uid'.
1744 * pinentry/pinentry.c (pinentry_reset): Handle this new field.
1745 (get_pid_name_for_uid): New. Atomic check for the base process name
1746 contingent on process ownership.
1747 (pinentry_get_title): Only scan for full commandline if the process
1748 actually belongs to the claimed uid.
1749 (option_handler): Option "owner" now expects "pid/uid hostname".
1750
1751 2017-10-12 Daniel Kahn Gillmor <[email protected]>
1752
1753 core: Only scan for the command line if probably on the same host.
1754 + commit 1f5b351531205214e9513a0aed170660dc822ceb
1755 * pinentry/pinentry.c (pinentry_get_title): Check the current hostname
1756 and make sure it matches. If it does not, do not bother looking for
1757 the command line.
1758
1759 core: Clean up command line extraction.
1760 + commit 242b658289488696d371c639c1da631712bd774c
1761 * pinentry/pinentry.c (get_cmdline): Avoid trailing space, and return
1762 NULL when no bytes were read from /proc.
1763
1764 tty: correct comments.
1765 + commit d7c54372512fbbd77709a3ea913b902061e5d45d
1766 * tty/Makefile.am, tty/pinentry-tty.c: comments were copy/pasted from
1767 pinentry-curses; correcting them.
1768
1769 2017-08-23 Damien Goutte-Gattat <[email protected]>
1770
1771 gtk: Really always set the window as transient.
1772 + commit 2b1fb2f30a94a967dacec298e3c7d8a80b4c3194
1773 * gtk+-2/pinentry-gtk-2.c (make_transient): Set the window as
1774 transient even if we do not grab the keyboard.
1775
1776 2017-08-23 Marcus Brinkmann <[email protected]>
1777
1778 core: Supress compiler warnings.
1779 + commit 858bde1fbbc5e14f2d6410da05869188bdc36ee3
1780 * pinentry/password-cache.c (password_cache_save, password_cache_lookup,
1781 password_cache_clear) [!HAVE_LIBSECRET]: Suppress unused parameter
1782 warnings.
1783
1784 2017-08-04 Damien Goutte-Gattat <[email protected]>
1785
1786 gtk: Disable tooltips in keyboard-grabbing mode.
1787 + commit 1590b664d88be8386a4664c2994b685187d1eb25
1788 * gtk+-2:/pinentry-gtk-2.c (show_hide_button): Do not show the
1789 tooltip if we attempt to grab the keyboard.
1790 (create_window): Likewise.
1791
1792 2017-07-12 Daiki Ueno <[email protected]>
1793
1794 doc: Make Emacs frontend description more accurate.
1795 + commit ebfa54e6044420ae12a090cdef9df7e7b0d961d2
1796 * doc/pinentry.texi (Front ends): Remove false assertions on
1797 insecurity of Emacs, and mention allow-emacs-pinentry option of
1798 gpg-agent.
1799
1800 2017-07-12 Marcus Brinkmann <[email protected]>
1801
1802 core: Disable "save passphrase" checkbox without secret service.
1803 + commit e57bcb7a2acff3a61a342d24e6a55407bf736631
1804 * pinentry/password-cache.c (password_cache_lookup): New argument
1805 FATAL_ERROR. Set it on fatal error.
1806 * pinentry/password-cache.h (password_cache_lookup): New argument
1807 FATAL_ERROR in declaration.
1808 * pinentry/pinentry.c (cmd_getpin): On fatal error, disallow
1809 external password store.
1810 * NEWS: Update.
1811
1812 2017-07-11 Alon Bar-Lev <[email protected]>
1813
1814 Use pkg-config consistently.
1815 + commit 6053cb4f3873897acf5d899bc6f02046d0748a0f
1816 * configure.ac: Invoke PKG_PROG_PKG_CONFIG. Consistently use
1817 PKG_CHECK_MODULES for GTK+2.0, Gnome 3 and libsecret.
1818 * gnome3/Makefile.am (AM_CPPFLAGS, LDADD): Adjust Gnome 3 flags.
1819 * gtk+-2/Makefile.am (AM_CPPFLAGS, LDADD): Adjust Gtk+2.0 flags.
1820
1821 2017-07-11 Marcus Brinkmann <[email protected]>
1822
1823 curses: Add option to beep or flash terminal on dialog.
1824 + commit 1dba96fafa123f3631c0a50bb01835306c23b903
1825 * pinentry/pinentry-curses.c (dialog_run): Beep or flash terminal.
1826 * pinentry/pinentry.c (pinentry_reset): Reset ttyalert option.
1827 (pinentry_parse_opts): Parse option ttyalert.
1828 (option_handler): Handle option ttyalert.
1829 * pinentry/pinentry.h (struct pinentry): New option ttyalert.
1830
1831 2017-07-05 Damien Goutte-Gattat <[email protected]>
1832
1833 gtk: Always set the window as transient.
1834 + commit f69dadc6ccea7672869436291ab5c1f58d545466
1835 * gtk+-2/pinentry-gtk-2.c (create_window): Setup the make_transient
1836 callback whether we ask for a passphrase or not.
1837
1838 2017-05-03 Andre Heinecke <[email protected]>
1839
1840 qt: Improve width of pinentryconfirm.
1841 + commit 4101806bf73caf25c8ce4e455b154901da1fe788
1842 * qt/pinentryconfirm.cpp (PinentryConfirm::showEvent): Add spacer
1843 item for text width.
1844
1845 qt: Fix build with Qt4.
1846 + commit 8bf41fe086438de9fa223ccf4162ed9d98e54646
1847 * qt/main.cpp (main): Don't use Q_NULLPTR.
1848
1849 2017-03-08 Justus Winter <[email protected]>
1850
1851 fltk: Remove commented-out code.
1852 + commit 5c3f796798d655b5583257f9dfc81ae9c1427fb3
1853 * fltk/main.cxx: Remove commented-out code.
1854
1855 fltk: Fix warning.
1856 + commit 2b2bbc9f67115baf518514281d3911b727b1caf9
1857 * fltk/main.cxx (fltk_cmd_handler): Use a 'std::unique_ptr' instead of
1858 a deprecated 'std::auto_ptr'.
1859
1860 2017-03-08 Anatoly madRat L. Berenblit <[email protected]>
1861
1862 fltk: Add a FLTK-based pinentry.
1863 + commit 6c45eed62214b44fcc11e642b19df7b6ca0da0bd
1864 * NEWS: Update.
1865 * Makefile.am: Add new subdirectory.
1866 * configure.ac: Add configuration for FLTK.
1867 * fltk/Makefile.am: New file.
1868 * fltk/encrypt.xpm: Likewise.
1869 * fltk/icon.xpm: Likewise.
1870 * fltk/main.cxx: Likewise.
1871 * fltk/passwindow.cxx: Likewise.
1872 * fltk/passwindow.h: Likewise.
1873 * fltk/pinwindow.cxx: Likewise.
1874 * fltk/pinwindow.h: Likewise.
1875 * fltk/qualitypasswindow.cxx: Likewise.
1876 * fltk/qualitypasswindow.h: Likewise.
1877
1878 2017-02-13 Andre Heinecke <[email protected]>
1879
1880 qt: Fix pinentry-curses fallback for qt5.
1881 + commit cd7b35e8ff106993b9ce98ea99a5210d637f3452
1882 * qt/main.cpp (main): Initialize QApplication later.
1883
1884 2017-02-03 Werner Koch <[email protected]>
1885
1886 core: Show the command line in the titlebar.
1887 + commit e467a000f87e87582f5838964b6f1e0a960d4445
1888 * pinentry/pinentry.c (get_cmdline): New.
1889 (pinentry_get_title): Add the cmdline to the title.
1890
1891 Use a shared function to construct the title.
1892 + commit 36d32fbdedb07b285d01871b3ee66400c81681d3
1893 * pinentry/pinentry.c (pinentry_get_title): New.
1894 * qt/main.cpp (qt_cmd_handler): Use that function for the title.
1895 * tty/pinentry-tty.c (confirm, password): Ditto.
1896 * gnome3/pinentry-gnome3.c (create_prompt): Ditto.
1897 * gtk+-2/pinentry-gtk-2.c (create_window): Ditto.
1898 * pinentry/pinentry-emacs.c (set_labels): Ditto.
1899
1900 gtk: Unless SETTITLE is used show the pid in the titlebar.
1901 + commit c0d60e130b9bbd21801c8e71e80ab7c36f4ad6bd
1902 * gtk+-2/pinentry-gtk-2.c (create_window): Display the pid as title.
1903
1904 core: New Assuan option "owner".
1905 + commit 61cde37b3e6a41bd24476d3c285288c12da0ed60
1906 * pinentry/pinentry.h (struct pinentry): Add fields 'owner_pid' and
1907 'owner_host'.
1908 * pinentry/pinentry.c (pinentry_reset): Take care of these fields.
1909 (option_handler): New option "owner".
1910
1911 curses: Do not return OK on error.
1912 + commit ce745a292192b01203ba5f557205a6f000bff953
1913 * pinentry/pinentry.c (cmd_confirm): Take care not to return OK if the
1914 RESULT is negative.
1915 * pinentry/pinentry-curses.c (dialog_create): Amend error reporting by
1916 setting specific_err_loc.
1917 (dialog_run): Use new var confirm_mode for clearness. In confirm mode
1918 return Cancel instead of error. This is how the gtk Pinentry does it.
1919
1920 core: New command getinfo/ttyinfo.
1921 + commit cd45d74d07512f8ec8d2b3306a1804457dd12964
1922 * pinentry/pinentry.c (remember_display): New var.
1923 (pinentry_have_display): Peek at --display.
1924 (pinentry_parse_opts): Set pinentry.display.
1925 (cmd_getinfo): Add sub-command "ttyinfo".
1926
1927 2017-02-03 Werner Koch <[email protected]>
1928 Vincent Lefevre <[email protected]>
1929
1930 gtk2: Fix a problem with fvwm.
1931 + commit b0e0bdeac5d40ca645afc9017778b39a26303523
1932 * gtk+-2/pinentry-gtk-2.c (grab_pointer): Take care of
1933 GDK_GRAB_ALREADY_GRABBED.
1934
1935 2017-01-16 Justus Winter <[email protected]>
1936
1937 gnome3: Use the program name as default title.
1938 + commit 8e3aa3204e74e8d7a7538e0d0f04e555f140131b
1939 * gnome3/pinentry-gnome3.c (create_prompt): If no title is requested,
1940 use the program name as the default title. This mimics what the GTK+2
1941 variant does (although the GTK+2 pinentry seems to use
1942 basename(argv[0])).
1943
1944 2017-01-13 NIIBE Yutaka <[email protected]>
1945
1946 gnome3: Fix CONFIRM condition.
1947 + commit c725fdd260b0c2291660ff954e6b2250006ec08f
1948 * gnome3/pinentry-gnome3.c (gnome3_cmd_handler): No buffer for PIN means
1949 it's not passphrase input but confirmation dialog.
1950
1951 2016-12-19 Raphael Kubo da Costa <[email protected]>
1952
1953 Qt: Make sure extended grep is used with '|'.
1954 + commit 1acb06aac3dd08f573d7c2e3be75226346e61ed2
1955 * m4/qt.m4: Use grep -E when using the alternation character.
1956
1957 2016-12-01 Werner Koch <[email protected]>
1958
1959 Fix linkage problem in tty and emacs pinentries.
1960 + commit c5c7bee68730c9f66a27f9bb0d023480623a2bfb
1961 * emacs/pinentry-emacs.c (curses_cmd_handler): Remove var.
1962 * tty/pinentry-tty.c (curses_cmd_handler): Remove var.
1963 * pinentry/pinentry.c (flavor_flag): New local var.
1964 (pinentry_set_flavor_flag): New function.
1965 (cmd_getinfo): Use FLAVOR_FLAG for the "flavor" sub-command.
1966 * gnome3/pinentry-gnome3.c (main): Call pinentry_set_flavor_flag.
1967 * gtk+-2/pinentry-gtk-2.c (main): Ditto.
1968 * pinentry/pinentry-emacs.c (initial_emacs_cmd_handler): Ditto.
1969 * qt/main.cpp (main): Ditto.
1970
1971 2016-11-22 Werner Koch <[email protected]>
1972
1973 Create SWDB entry during make distcheck.
1974 + commit d015020b56dc11848d638d8a0f22c11971f896ea
1975 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Build emacs flavor.
1976 (distcheck-hook): New.
1977
1978 Release 1.0.0.
1979 + commit 5eb55801a70148111a78a7ffd8ee459790f1aafe
1980
1981
1982 emacs: Add curses handler stub.
1983 + commit d126036671e7dd631babc118cb4113f723f15748
1984 * emacs/pinentry-emacs.c (curses_cmd_handler): New stub.
1985
1986 2016-11-08 Daniel Kahn Gillmor <[email protected]>
1987
1988 gnome3: Tighten up error messages when GNOME screensaver is absent.
1989 + commit cf8885fd5a61654a164f470fa3e7095b8e424258
1990 * gnome3/pinentry-gnome3.c (pe_gnome_screen_locked): clean up error
1991 messages when GNOME screensaver is absent or misbehaving.
1992
1993 2016-11-07 Werner Koch <[email protected]>
1994
1995 Add fail-safe string termination for snprintf.
1996 + commit 8f51108a17d0080c33fae182f1e4b9259f10a9e5
1997 * gtk+-2/pinentry-gtk-2.c (changed_text_handler): Make sure an
1998 snprintf buffer is always ternminated.
1999 * pinentry/pinentry.c (my_strusage): Ditto.
2000 (write_status_error): Ditto.
2001 (cmd_getinfo): Ditto.
2002 * w32/main.c (w32_strerror): Ditto.
2003
2004 2016-11-07 Daniel Kahn Gillmor <[email protected]>
2005
2006 gnome3: Avoid risk of uinitialized memory access.
2007 + commit 15a6fd9f1ee0e3bc62daf143546f5186ce947700
2008 * gnome3/pinentry-gnome3.c (_propagate_g_error_to_pinentry): Ensure
2009 that pinentry->specific_err_info is null-terminated.
2010
2011 tty: Declare dummy curses_cmd_handler.
2012 + commit e4e3a9cc88704dcffac660d0b92fd1ed8abecc11
2013 * tty/pinentry-tty.c: Declare a dummy handler for the
2014 curses_cmd_handler for fallback.
2015
2016 gnome3: Fall back to curses if screensaver is locked.
2017 + commit e353f4d1ac31e58f46eeba29279adf809dfb96a9
2018 * gnome3/pinentry-gnome3.c (pe_gnome_screen_locked): New Function.
2019 Returns true only if we can talk to a GNOME screensaver over D-Bus and
2020 it assures us that it is locked.
2021 (main): If GNOME screensaver is locked, fall back to curses.
2022
2023 2016-11-05 Daniel Kahn Gillmor <[email protected]>
2024
2025 gnome3: Test if Gcr System Prompter is available at startup.
2026 + commit 2e17565fd9cb94afe840050780d28db75e5c4053
2027 * gnome3/pinentry-gnome3.c (gcr_system_prompt_available): New. Tests
2028 whether it is possible to create a GcrSystemPrompt.
2029 (main): Use gcr_system_prompt_available() to decide whether to fall
2030 back to curses or not.
2031
2032 build: Avoid unnecessary dependency on gtk+-2 for GNOME3 development.
2033 + commit b945576fe906ffcd5bcc50b4322ef2f34d8fb89f
2034 * configure.ac: There is no reason to reject building the GNOME3
2035 pinentry if GTK+-2 development libraries are not present. GNOME3 does
2036 not require GTK+-2.
2037
2038 2016-11-05 Werner Koch <[email protected]>
2039
2040 gnome3: Avoid using gnome and gcr symbol namespace.
2041 + commit 799116010a57aec9a86c5529388111d54aff3c55
2042 * gnome3/pinentry-gnome3.c (struct _gnome3_run): Rename to
2043 pe_gnome3_run_s.
2044 (_gcr_prompt_password_done): Rename to pe_gcr_prompt_password_done.
2045 (_gcr_prompt_confirm_done): Rename to pe_gcr_prompt_confirm_done.
2046 (_gcr_timeout_done): Rename to pe_gcr_timeout_done.
2047
2048 2016-11-05 Daniel Kahn Gillmor <[email protected]>
2049
2050 gnome3: Honor timeout.
2051 + commit f7b99ff5f7f78db45350308bf409ea4a9e94f161
2052 * gnome3/pinentry-gnome3.c (create_prompt): Use timeout to determine
2053 how long to wait for Gcr to provide a system prompt before giving up.
2054 (_gcr_timeout_done): New. Record that a timeout has elapsed.
2055 (gnome3_cmd_handler): Set up a timeout before launching the prompt,
2056 and tear it down afterward.
2057 (_gcr_prompt_password_done): Report timeout differently from normal
2058 cancellation.
2059 (_gcr_prompt_confirm_done): Report timeout differently from normal
2060 cancellation.
2061
2062 gnome3: Convert password/confirmation to asynchronous model.
2063 + commit d0fe54d592a8d2be6fc82b26290a644bb3629214
2064 * gnome3/pinentry-gnome3.c (gnome3_cmd_handler): Convert main part of
2065 password or confirmation fetching into asynchronous code by moving
2066 completion into...
2067 (_gcr_prompt_password_done): ... here and...
2068 (_gcr_prompt_confirm_done): ... here.
2069
2070 qt: Report timeout.
2071 + commit 102832a2c1f3ffa432e2a169791611bb3ca13a04
2072 * qt/pinentryconfirm.h (PinentryConfirm): Add _timed_out, timedOut().
2073 * qt/pinentrydialog.h (PinentryDialog): Add _timed_out, timedOut().
2074 * qt/pinentryconfirm.cpp (slotTimeout): Record elapsed timeout.
2075 (PinentryConfirm): Initialize _timed_out to false.
2076 (timedOut): New. Returns value of _timed_out.
2077 * qt/pinentryDialog.cpp (slotTimeout): Record elapsed timeout.
2078 (PinentryDialog): Initialize _timed_out to false.
2079 (timedOut): New. Returns value of _timed_out.
2080 * qt/main.cpp (qt_cmd_handler): Report if canceled due to timeout.
2081
2082 curses: Report timeout.
2083 + commit 784c4e0a3acace39a4a632bf443c794752297d54
2084 * pinentry/pinentry-curses.c (dialog_run): Report if canceled due to
2085 timeout.
2086
2087 gtk2: Report timeout.
2088 + commit 93b4454f4fe4d97dd89efccd64dbdd02bd002f77
2089 * gtk+-2/pinentry-gtk-2.c (create_window): Send pointer to pinentry
2090 into timeout_cb.
2091 (timeout_cb): Report if canceled due to timeout.
2092
2093 tty: Report timeout.
2094 + commit 3be5b4fabaabf86f085b0b5303a1312abb7d0617
2095 * tty/pinentry-tty.c (confirm): Report if canceled due to timeout.
2096 (password): Report if canceled due to timeout.
2097
2098 gnome3: Propagate GError messages to pinentry.
2099 + commit 19c2110557d0504c1b406bde24e86cb5eb552fc7
2100 * gnome3/pinentry-gnome3.c (_propagate_g_error_to_pinentry): New. Send
2101 GError messages back out to pinentry error reporting.
2102 (create_prompt): Use _propagate_g_error_to_pinentry on error.
2103 (gnome3_cmd_handler): Use _propagate_g_error_to_pinentry on error.
2104
2105 gnome3: Set parent window.
2106 + commit 96e3c5fcf210e971fe1ba66b9127ad51144fcc49
2107 * gnome3/pinentry-gnome3.c (create_prompt): Tell Gcr about the caller
2108 window, if we know it.
2109
2110 2016-11-05 Werner Koch <[email protected]>
2111
2112 core: Add command getinfo/flavor.
2113 + commit 553af04cf9c103c2e2cd5085b0d5fb647a608d51
2114 * pinentry/pinentry.c: Inlcude pinentry-curses.h.
2115 (cmd_getinfo): Add sub-command "flavor"
2116
2117 2016-11-03 Daniel Kahn Gillmor <[email protected]>
2118
2119 Convert to UTF-8.
2120 + commit 7b0a822460eb6f4bf28f85f38c64a86bb8f80d3d
2121
2122
2123 2016-10-11 Daiki Ueno <[email protected]>
2124
2125 core: Don't report error on setting option 'allow-emacs-pinentry'.
2126 + commit a383ddeb76463ddcf5aca2fb38847ea3158c42a7
2127 Previously "OPTION allow-emacs-pinentry" returned an error if the Emacs
2128 pinentry is not compiled in. Since it is merely an option, it would
2129 make more sense to just return OK.
2130
2131 2016-10-04 Werner Koch <[email protected]>
2132
2133 gnome3: Drop unnecessary use of gtk.
2134 + commit 65d8e0ec19795d9ec60d7f37f1511f65135cfd84
2135 * configure.ac: pinentry-gnome3 only needs gcr-base, not gcr.
2136 * gnome3/pinentry-gnome3.c (main): Instead of testing whether GTK can
2137 be loaded, check for DBUS_SESSION_BUS_ADDRESS.
2138 (create_prompt): Use fprintf (stderr, ...) instead of g_warning (...),
2139 to align with the rest of pinentry.c.
2140
2141 core: Add a way to print ERROR status lines.
2142 + commit 777650b9b021342ba887543396c67f9148218caf
2143 * pinentry/pinentry.h (struct pinentry): New fields SPECIFIC_ERR_LOC
2144 and SPECIFIC_ERR_INFO.
2145 * pinentry/pinentry.c (pinentry_reset): Free the new field.
2146 (write_status_error): New.
2147 (cmd_getpin): Use new fields.
2148 (cmd_confirm): Ditto.
2149 * gnome3/pinentry-gnome3.c (create_prompt): Set error for failed
2150 GCR_PROMPT.
2151
2152 2016-10-03 Ineiev <[email protected]>
2153
2154 tty: Provide default text for "notok".
2155 + commit db3b2bf0c7ae4d3d0fbeecfe6a9a77ea4ed0f84e
2156 * tty/pinentry-tty.c (confirm): Provide default text for "notok".
2157
2158 tty: Fix underscore processing in accelerators.
2159 + commit f0ae2986708614bce9070eec77309e838c403db7
2160 * tty/pinentry-tty.c (button): Fix underscore processing in
2161 accelerators.
2162
2163 tty: Refactor usage of tolower.
2164 + commit aa969a09a1225f8fb683ba8d0c3ccc099dd8d1d3
2165 * tty/pinentry-tty.c (button): Apply tolower to the result.
2166 * tty/pinentry-tty.c (confirm): Compare lowercased character instead of
2167 converting them every time.
2168
2169 2016-09-01 Werner Koch <[email protected]>
2170
2171 curses: Return better error codes for bad ttynames.
2172 + commit 4c5ae72d481ffd24ff93accee0b42e9b264285f2
2173 * pinentry/pinentry-curses.c (dialog_create): Return better error
2174 codes.
2175
2176 2016-08-18 Andre Heinecke <[email protected]>
2177
2178 Qt: Add SetWindowPos based foreground hack for Win.
2179 + commit c032ea2dcb4ac3ce970e62eae88fd24bec822f9c
2180 * qt/pinentrydialog.cpp(raiseWindow): Add another fallback for
2181 our foreground window hacks.
2182
2183 2016-08-12 Andre Heinecke <[email protected]>
2184
2185 Qt: Disable automatic wrap for desc and errors.
2186 + commit 300755c1a10eec1f8bccd4182ed15c569473982c
2187 * qt/pinentrydialog.cpp (PinEntryDialog): Disable WordWrap.
2188
2189 2016-08-12 Kristian Fiskerstrand <[email protected]>
2190
2191 Qt: Append -std=c++11 if building against Qt 5.7.
2192 + commit fa97de673bd36758ae4ce151923435318f7c8877
2193 * m4/qt.m4: Append -std=c++11 to CFLAGS if building against Qt 5.7
2194
2195 2016-08-04 Ben Kibbey <[email protected]>
2196
2197 Fix ncurses build.
2198 + commit 2227f67af53f38d3d7f97760f2553d2c9ed05969
2199 * pinentry/Makefile.am: Add NCURSES_CFLAGS.
2200
2201 2016-08-02 Justus Winter <[email protected]>
2202
2203 gtk2: Also grab the pointer.
2204 + commit 2f1f1f06c1885d2f5a30ea734359613609be0743
2205 * gtk+-2/pinentry-gtk-2.c (grab_pointer): New function.
2206 (ungrab_keyboard): Rename to 'ungrab_inputs' and also release the
2207 pointer grab.
2208 (create_window): Also grab the pointer.
2209
2210 2016-08-01 Justus Winter <[email protected]>
2211
2212 gtk2: Be more persistent trying to grab the keyboard.
2213 + commit ad390f29df34ef73f2393a8ad97cbe2d60af31e7
2214 We seem to get the 'visibility-notify' event before X is willing to
2215 let us grab the keyboard, insisting that the target window is not
2216 viewable (sic).
2217
2218 * gtk+-2/pinentry-gtk-2.c (grab_keyboard): Retry grabbing the
2219 keyboard.
2220
2221 gtk2: Print keyboard grabbing errors.
2222 + commit fe5bb475da08cb46242825d5abe5b4d27e6086e3
2223 * gtk+-2/pinentry-gtk-2.c (grab_strerror): New function.
2224 (grab_keyboard): Use the new function to print the error.
2225
2226 gtk2: Avoid possible format string troubles.
2227 + commit abf4f9924412c7afb6ce6c08eeda81b4c5365ab5
2228 * gtk+-2/pinentry-gtk-2.c (confirm_unhiding): Do not use message as
2229 format string.
2230
2231 2016-04-25 Andre Heinecke <[email protected]>
2232
2233 Qt: Only use one line action for visibility.
2234 + commit ed066c261594de69c3c2aeaac98aeaf74bbb5f9e
2235 * qt/pinentrydialog.cpp (PinEntryDialog::toggleVisibility): Toggle
2236 both lines in repeat mode.
2237 (PinEntryDialog::PinEntryDialog): Remove repeat line action.
2238
2239 Qt: Move qualitybar below repeat.
2240 + commit d580304566b5b1c4e7c97c060d7a7b8c0b810ae3
2241 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Move
2242 quality bar below repeat.
2243
2244 Qt: Do not take icon from theme.
2245 + commit 1532b60dcc5a45a74195cfbc20225006d027e7fa
2246 * qt/main.cpp (main): Revert changes to take icon from theme.
2247
2248 2016-04-15 Andre Heinecke <[email protected]>
2249
2250 Qt: Change qualitybar position back to below.
2251 + commit e925e8955b0a82f1a0e3c697704007c503a5f8b7
2252 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog): Change
2253 position back to below the entry. Fix label alignment.
2254
2255 gtk2: Add a button to show/hide the passphrase.
2256 + commit f4b5049c68a79d5e4faba06447db5440936cefeb
2257 * gtk+-2/pinentry-gtk-2.c (HIG_TINY): New.
2258 (confirm_unhiding): New.
2259 (show_hide_button_toggled): New.
2260 (create_show_hide_button): New.
2261 (create_window): Add a show/hide button.
2262
2263 2016-04-14 Andre Heinecke <[email protected]>
2264
2265 Revert "GTK: Add visibility toggle button"
2266 + commit 3a10a0beddc059ce4b0d75bacf6d7f4e3148fcff
2267 This reverts commit 71b51e02cf20174ba7144765e985f7e889eaa429.
2268
2269 GTK: Add visibility toggle button.
2270 + commit 71b51e02cf20174ba7144765e985f7e889eaa429
2271 * gtk+-2/pinentry-gtk-2.c (create_window): Create checkbox.
2272 (show_passphrase_toggled): New. Do the toggling.
2273
2274 Qt: Restrict list of icon themes to try.
2275 + commit 287d40e879f767dbcb3d19b3629b872c08d39cf4
2276 * qt/main.cpp (main): Only search in select icon themes.
2277
2278 Qt: Add actions to make passphrase visible.
2279 + commit 49a7ac5209aa54f3b91209acc899463e8097f808
2280 * qt/main.cpp (qt_cmd_handler): Support visibility tooltips.
2281 * qt/pinentrydialog.cpp (PinEntryDialog::PinEntryDialog):
2282 Add a checkbox or line actions.
2283 (PinEntryDialog::checkRepeat): Renabed to textChanged.
2284 (PinEntryDialog::toggleVisibility): New. Toggle echo mode.
2285 * qt/pinentrydialog.h: Update accordingly.
2286
2287 Add support for visibility string options.
2288 + commit 15685a9c1471eb01066e0bbdb7d6b929a8fcc314
2289 * doc/pinentry.texi: Note new values.
2290 * pinentry/pinentry.c (pinentry): Add default_cf_visi,
2291 default_tt_visi and default_tt_hide.
2292 (option_handler): Parse new values.
2293 * pinentry/pinentry.h (pinentry_t): Add new values.
2294
2295 Qt: Implement repeat and improve grabbing.
2296 + commit 04115b3289dcc9b02044f88c08580618c055a571
2297 The keyboard is now only grabbed if an edit has input focus.
2298
2299 * qt/main.cpp (qt_cmd_handler): Parse repeat values. Set repeat_okay.
2300 * qt/pinentrydialog.cpp (PinentryDialog::PinentryDialog): Update
2301 layout. Add repeat label and edit. Connect focusChanged.
2302 (PinEntryDialog::hideEvent): Remove grabbing hack.
2303 (PinEntryDialog::focusChanged): New. Properly handle grabbing.
2304 (PinEntryDialog::checkRepeat): New. Enable Ok if repeat matches.
2305 (PinEntryDialog::repeatedPin): New. Getter for repeated pin.
2306 (PinEntryDialog::setRepeatErrorText): Setter for error.
2307 * qt/pinentrydialog.h: Update accordingly.
2308
2309 Qt: Respect icon themes and only fallback to own.
2310 + commit c6b43bd147186deee84dcccbc14f5763db67a0f3
2311 * m4/qt.m4: Raise version requirement.
2312 * qt/main.cpp (main): Use QIcon::fromTheme to get the icon.
2313
2314 Qt: Unify coding style and encoding.
2315 + commit 8d801fe2c74041f2f8c563785ed7cba73f47500e
2316 * qt/main.cpp, qt/pinentryconfirm.cpp, qt/pinentryconfirm.h,
2317 qt/pinentrydialog.cpp, qt/pinentrydialog.h: Use KDE coding style.
2318 Encode as UTF-8.
2319
2320 2016-03-04 Andre Heinecke <[email protected]>
2321
2322 Qt: Fix Windows foreground window hacks for Qt5.
2323 + commit 30aa1046afe9a745c918fc1311c1f598c91bf913
2324 * qt/pinentrydialog.cpp: Use Q_OS_WIN instead of Q_WS_WIN
2325 (SetForegroundWindowEx): Handle new Wid type with casts.
2326
2327 2016-02-15 Stef Walter <[email protected]>
2328
2329 pinentry: Use stderr to print failures in password-cache.c.
2330 + commit 2f5bfa071ab5eaf86f64404bff448ca29cd0bdb6
2331 Otherwise this interferes with the assuan protocol expected
2332 on stdout.
2333
2334 2016-01-05 Andre Heinecke <[email protected]>
2335
2336 Qt: Fix use after free in quality calculation.
2337 + commit 954da56c2325c3a5ca628cfc2e3086c1e146a390
2338 * qt/pinentrydialog.cpp (PinEntryDialog::updateQuality): Keep UTF8
2339 byte array alive after conversion.
2340
2341 2015-12-07 Werner Koch <[email protected]>
2342
2343 Release 0.9.7.
2344 + commit 97b6ea59de0ca33323aa204eb47d45fd412a8ff2
2345
2346
2347 2015-12-01 Werner Koch <[email protected]>
2348
2349 Remove unused code.
2350 + commit bd3781f92bb0989bfbc33a89fe1f6db3c89cdf31
2351 * secmem/util.c (lower_privs, raise_privs): Remove commented
2352 functions.
2353
2354 2015-11-27 Neal H. Walfield <[email protected]>
2355
2356 tty: Fix formatting.
2357 + commit 999162e7c38d4b8c76270e7b6790417fd6439ef3
2358 * tty/pinentry-tty.c (password): Remove trailing space.
2359
2360 2015-11-18 Neal H. Walfield <[email protected]>
2361
2362 tty: Flush output. Show an error if an invalid option is selected.
2363 + commit f238a58772b7d51362ca7d819e1648a64ff50d57
2364 * tty/pinentry-tty.c (confirm): Flush the output after printing the
2365 prompt. Echo what the user typed. If the user's selection is
2366 invalid, indicate as much.
2367
2368 2015-10-22 Dirk Mueller <[email protected]>
2369
2370 Qt: Do not use temporary reference to utf8 pin.
2371 + commit f143d216eff4eac3f05a85640b9f91431aec5588
2372 * qt/main.cpp (qt_cmd_handler): Keep utf8 pin byte array.
2373
2374 2015-10-02 Andre Heinecke <[email protected]>
2375
2376 Qt: Fix assignment of have_qt5_libs variable.
2377 + commit 48ab8cdccff4eefec4d8fa2e23b933c2277bc30c
2378 * m4/qt.m4 (FIND_QT): Remove spaces in variable assignment.
2379
2380 Qt: Fix quoting of have_qt5_libs init in FIND_QT.
2381 + commit e9d063e2371540ad9c1d7a727c44f9dcc1e9e400
2382 * m4/qt.m4 (FIND_QT): Quote initialization of have_qt5_libs var.
2383
2384 2015-09-25 Andre Heinecke <[email protected]>
2385
2386 Add option to disable looking for qt5.
2387 + commit 08ec9556c8a384ea7bb5d42d3f6aab6c2f6a8786
2388 * m4/qt.m4 (FIND_QT): Add --disable-pinentry-qt5 option to
2389 disable qt5 support even if it is available.
2390
2391 2015-09-16 Werner Koch <[email protected]>
2392
2393 Add option "invisible-char".
2394 + commit 9cc13bbd6954928f8a7dae022728c13415816a67
2395 * pinentry/pinentry.h (struct pinentry): Add field invisible_char.
2396 * pinentry/pinentry.c (pinentry_reset): Restore that.
2397 (option_handler): Add option "invisible-char".
2398 * gtk+-2/pinentry-gtk-2.c (create_window): Set the invisible char if
2399 given.
2400
2401 2015-09-10 Werner Koch <[email protected]>
2402
2403 Release 0.9.6.
2404 + commit 192ee8ad5bd9c4950d749cf9bb1efd9369836257
2405
2406
2407 2015-08-24 Neal H. Walfield <[email protected]>
2408
2409 tty: When reading the password, print any supplied error message.
2410 + commit bfd4cf3bee8c9e4a3af825c95694b8af098b1cb2
2411 * tty/pinentry-tty.c (password): Print any supplied error message.
2412
2413 tty: Refactor the code for printing error messages.
2414 + commit 7e91e5f71c86c3899c7f256d7ae9d872e692dd28
2415 * tty/pinentry-tty.c (dump_error_text): New function to display error
2416 messages.
2417 (confirm): Use it.
2418 (password): Likewise.
2419
2420 2015-08-18 Andre Heinecke <[email protected]>
2421
2422 Clarify comment about fds in pinentry_loop2.
2423 + commit 13e09800a997845906bfb10ac3379bad00e6e63d
2424 * pinentry/pinentry.h (pinetry_loop2): Clarify comment.
2425
2426 Qt: Make it possible to build qt5 variant static.
2427 + commit 11886c530de3b0a7c4dcd932c5c23762f3ccc4b0
2428 * qt/main.cpp: Import static platform plugins when necessary.
2429
2430 Respect SYSROOT variable when looking for assuan.
2431 + commit 8d73d2a55a0043202c08beaed9972343b1021327
2432 * m4/libassuan.m4: Respect SYSROOT Variable.
2433
2434 Fix pinentry for Windows.
2435 + commit 78afb80e5742f8542f21537307c6f39c05c1a7f3
2436 * pinentry/pinentry.c (pinentry_loop2): Use assuan_fdopen for pipe fds.
2437 * pinentry/pinentry.h (pinentry_loop2): Mention this in the comment.
2438
2439 2015-08-11 Neal H. Walfield <[email protected]>
2440
2441 tty: Correctly implement the repeat passphrase functionality.
2442 + commit 1532bf3fa57f624c80ea1e9f958d88fedc377e68
2443 * tty/pinentry-tty.c (password): If the user repeated the passphrase
2444 and they matched, then set PINENTRY->REPEAT_OKAY.
2445
2446 tty: Fix buffer resizing bug.
2447 + commit ffd37b673b3cbe05fac037ac02c1424a76772b3f
2448 * tty/pinentry-tty.c (read_password): Fix buffer resizing bug.
2449
2450 2015-07-28 Andre Heinecke <[email protected]>
2451
2452 Qt4: Rename to pinentry-qt and add Qt5 Support.
2453 + commit abb59f50abf698ff1e56490fb39bcc98c26ab44b
2454 * qt4: Moved to qt.
2455 * Makefile.am: Change qt4 suffix to qt.
2456 * m4/qt.m4: Remove old qt lookup functions.
2457 (FIND_QT): New. Use pkg-config to find either Qt5 or Qt4
2458 * configure.ac: Change qt4 suffix to qt. Use new FIND_QT function.
2459 * qt/Makefile.am: Change qt4 suffix to qt. Use new FLAGS / LIBS.
2460 * qt/pinentrydialog.cpp, qt/qrc_pinentry.cpp: Fix whitespace.
2461 * .gitignore: Change qt4 paths to qt.
2462 * README: Update accordingly.
2463 * autogen.rc: Change qt4 to qt.
2464 * qt/main.cpp (qt_cmd_handler, main): Change qt4 to qt.
2465
2466 2015-07-28 Neal H. Walfield <[email protected]>
2467
2468 doc: Describe the frontends and their security implications.
2469 + commit 43f975bf0348663dc8b01737dee5b15244ef7ee8
2470 * doc/pinentry.texi: Describe the frontends and their security
2471 implications.
2472
2473 2015-07-28 Andre Heinecke <[email protected]>
2474
2475 qt4: Replace the custom, secure entry widget with the standard widget.
2476 + commit a4694dcda0fe27852be20db3017f9313adf361a3
2477 * configure.ac: Remove enable-pinentry-qt4-clipboard option.
2478 * qt4/qsecurelineedit.cpp, qt4/qsecurelineedit.h,
2479 qt4/qsecurelineedit_p.h, qt4/secstring.cpp,
2480 qt4/secstring.h: Removed.
2481 * qt4/Makefile.am: Update accordingly.
2482 * qt4/main.cpp (qt_cmd_handler): Use QString instead of secqstring.
2483 * qt4/pinentrydialog.cpp (PinentryDialog::PinentryDialog),
2484 (PinEntryDialog::error, PinEntryDialog::pin),
2485 (PinEntryDialog::updateQuality): Use QLineEdit and QString
2486 instead of secmem variants.
2487 * qt4/pinentrydialog.cpp (PinentryDialog::PinentryDialog):
2488 Set echo mode to password.
2489 * qt4/pinentrydialog.h: Update accordingly.
2490
2491 2015-07-26 Neal H. Walfield <[email protected]>
2492
2493 gtk2: Use gtk_widget_get_window instead of accessing the struct.
2494 + commit d70a106d71dbcaf90e2246ed8e72c14d9c2cf266
2495 * gtk+-2/pinentry-gtk-2.c (make_transient): Don't directly access the
2496 window field of WIN. Use gtk_widget_get_window instead.
2497 (grab_keyboard): Likewise.
2498 (ungrab_keyboard): Likewise.
2499
2500 gtk2: Use newer tooltips functions, if available.
2501 + commit c9c3576b5e2e3139fd9f6af3426b5f5e727deadd
2502 * gtk+-2/pinentry-gtk-2.c (tooltips): Don't declare for Gtk+ >=2.12.0.
2503 (create_window): Gtk+ >=2.12.0, use gtk_widget_set_tooltip_text
2504 instead of gtk_tooltips_set_tip.
2505
2506 Don't build the emacs pinentry program by default.
2507 + commit 676b1ac38d0c1db754492b6817bbc6195dcef300
2508
2509
2510 gtk2: Replace the custom, secure entry widget with the standard widget.
2511 + commit f9db93786cbdbc0f5f6edf0ae996ec405931decf
2512 * gtk+-2/Makefile.am (pinentry_gtk_2_SOURCES): Remove gtksecentry.c,
2513 gtksecentry.h and gseal-gtk-compat.h.
2514 * gtk+-2/gseal-gtk-compat.h: Remove file.
2515 * gtk+-2/gtksecentry.c: Remove file.
2516 * gtk+-2/gtksecentry.h: Remove file.
2517 * gtk+-2/pinentry-gtk-2.c: Don't include "gtksecentry.h".
2518 (button_clicked): Use gtk_entry_get_text instead of
2519 gtk_secure_entry_get_text.
2520 (changed_text_handler): Use gtk_entry_get_text instead of
2521 gtk_secure_entry_get_text and use gtk_entry_set_text instead of
2522 gtk_secure_entry_set_text.
2523 (create_window): Use gtk_entry_new instead of gtk_secure_entry_new.
2524 Disable text visibility on ENTRY and REPEAT_ENTRY.
2525 (main): Don't override the memory allocation functions.
2526
2527 gtk2: Simplify focus / default entry management.
2528 + commit ae74440c8a3469e1e69882cd26a742d41f28e37b
2529 * gtk+-2/pinentry-gtk-2.c (create_window): Don't have ENTRY or
2530 REPEAT_ENTRY explicitly grab the focus. The default is fine. Don't
2531 add the GDK_ENTER_NOTIFY_MASK and GDK_LEAVE_NOTIFY_MASK events to
2532 QUALITYBAR. Only set GTK_CAN_DEFAULT on the ok button. In pin entry
2533 mode, make the ok button the default.
2534
2535 gtk2: Have enter in the text entry, send the focus to the repeat entry.
2536 + commit af3de269bc0f56058eefcd46bce1b03d9466d1b4
2537 * gtk+-2/pinentry-gtk-2.c (enter_callback): Rename anentry to
2538 next_widget. If NEXT_WIDGET is not NULL, send the focus to it.
2539 Otherwise, call button_clicked.
2540 (create_window): Initialize repeat_entry to NULL. When connecting the
2541 enter_callback entry to REPEAT_ENTRY, set the user data paramter to
2542 NULL. Connect the entry_callback entry to ENTRY after initializing
2543 REPEAT_ENTRY (if applicable) and set the user data parameter to
2544 REPEAT_ENTRY.
2545
2546 gtk2: Simplify: combine confirm_button_clicked and button_clicked.
2547 + commit 5dfb7f5662917c9d2f8a4772045074544bd4d472
2548 * gtk+-2/pinentry-gtk-2.c (confirm_mode): New global static.
2549 (confirm_button_clicked): Fold this function...
2550 (button_clicked): ... into this one. Update all callers.
2551 (create_window): Remove argument confirm_mode.
2552 (gtk_cmd_handler): Set confirm_mode.
2553
2554 2015-07-01 Werner Koch <[email protected]>
2555
2556 Release 0.9.5.
2557 + commit 404943e465beeb34d71039f64f2b7e214d2d9368
2558
2559
2560 w32: Adjust for use of standard libassuan.
2561 + commit 380757782373c2069c182550d9093f995bea2f13
2562 * autogen.rc: Add gpg-error and libassuan prefix options.
2563 * w32/Makefile.am (AM_CPPFLAGS): Use COMMON_FLAGS.
2564 (pinentry_w32_LDADD): Use COMMON_LIBS.
2565
2566 Distribute files in m4/
2567 + commit 11cd8aff6e1720d4a37c92fb6d4cf2613eb17a10
2568
2569
2570 2015-06-24 Gergely Imreh <[email protected]>
2571
2572 curses: remove hard-wired ncursesw include path.
2573 + commit f0db3192463cccf4541820de36d985629c4df6ee
2574 * pinentry/pinentry-curses.c: pkg-config finds the correct include
2575 paths so should not hard-wire the path for the ncursesw header file.
2576
2577 2015-06-23 Neal H. Walfield <[email protected]>
2578
2579 emacs: Don't link against ../assuan/libassuan.a.
2580 + commit 266f1c9e3542627b1cbd191141af4e6f76f706fe
2581 * emacs/Makefile.am (LDADD): Don't link against ../assuan/libassuan.a.
2582 We now use the system libassuan.
2583
2584 curses: Recognize ASCII DEL as backspace.
2585 + commit 6ce1d0c0d4106c359eee65d7cf27d522d3f8b72a
2586 * pinentry/pinentry-curses.c (dialog_input): Recognize ASCII DEL as
2587 backspace.
2588
2589 2015-06-17 Daiki Ueno <[email protected]>
2590
2591 Add inside-Emacs mode to GUI pinentry programs.
2592 + commit 3ef5d07873ab917e66c299521e85cff12fbbf40c
2593 * configure.ac: Add --enable-pinentry-emacs and
2594 --enable-inside-emacs option.
2595 (BUILD_LIBPINENTRY_EMACS): New conditional.
2596 (BUILD_PINENTRY_EMACS): New conditional.
2597 (INSIDE_EMACS): New conditional.
2598 * Makefile.am (pinentry_emacs): New.
2599 (SUBDIRS): Add "emacs" subdir if PINENTRY_EMACS is set.
2600
2601 * pinentry/pinentry-emacs.h: New file.
2602 * pinentry/pinentry-emacs.c: New file.
2603 * pinentry/Makefile.am: New file.
2604 * pinentry/pinentry.c (option_handler): Handle the allow-emacs-prompt
2605 Assuan option.
2606
2607 * emacs/pinentry-emacs.c: New file.
2608 * emacs/Makefile.am: New file.
2609
2610 2015-06-16 Neal H. Walfield <[email protected]>
2611
2612 If we fail to initialize gtk, fallback to the curses frontend.
2613 + commit 34f3cdbf5aa0b7b8647a3bcedef7e1a51746b5ed
2614 * gnome3/pinentry-gnome3.c (main): Use gtk_init_check instead of
2615 gtk_init. If it fails, fallback to the curses frontend.
2616
2617 Fix comment for pinentry_cmd_handler_t.
2618 + commit 34539f97a6ddc552295b5cb64676eee9dab5bd30
2619 * pinentry/pinentry.h (pinentry_cmd_handler_t): Fix comment.
2620
2621 Describe default-prompt in the implementation section of the manual.
2622 + commit 56fe7ef451ee473407b7dc604e3d73a6a5771c5d
2623 * doc/pinentry.texi (Implementation Details): Describe default-prompt.
2624
2625 Remove internal mini-libassuan implementation and link to libassuan.
2626 + commit 302903f76b8d62b1e07219a203f7219cb3aff7d8
2627 * assuan/ChangeLog-old: Remove file.
2628 * assuan/Makefile.am: Remove file.
2629 * assuan/README.1st: Remove file.
2630 * assuan/assuan-buffer.c: Remove file.
2631 * assuan/assuan-defs.h: Remove file.
2632 * assuan/assuan-handler.c: Remove file.
2633 * assuan/assuan-listen.c: Remove file.
2634 * assuan/assuan-pipe-server.c: Remove file.
2635 * assuan/assuan-util.c: Remove file.
2636 * assuan/assuan.h: Remove file.
2637 * assuan/mkerrors: Remove file.
2638
2639 * configure.ac: Check for libgpg-error and libassuan.
2640 (COMMON_CFLAGS): Add $GPG_ERROR_CFLAGS and $LIBASSUAN_CFLAGS.
2641 (COMMAND_LIBS): Add $GPG_ERROR_LIBS and $LIBASSUAN_LIBS.
2642 (GPG_ERR_ENABLE_GETTEXT_MACROS): Define this macro.
2643 (GPG_ERR_ENABLE_ERRNO_MACROS): Likewise.
2644 (GNUPG_LIBASSUAN_VERSION): Likewise.
2645 (AC_CONFIG_FILES): Don't generate assuan/Makefile.
2646 (config.h): Define GPG_ERR_SOURCE_DEFAULT.
2647 * Makefile.am (SUBDIRS): Remove assuan.
2648 * curses/Makefile.am (LDADD): Remove ../assuan/libassuan.a.
2649 * gnome3/Makefile.am (AM_CPPFLAGS): Remove -I$(top_srcdir)/assuan.
2650 (LDADD): Remove ../assuan/libassuan.a.
2651 * gtk+-2/Makefile.am (LDADD): Remove ../assuan/libassuan.a.
2652 * pinentry/Makefile.am: Remove -I$(top_srcdir)/assuan.
2653 * qt4/Makefile.am (AM_CPPFLAGS): Remove -I$(top_srcdir)/assuan.
2654 (pinentry_qt4_LDADD): Remove $(top_builddir)/assuan/libassuan.a.
2655 * tty/Makefile.am (LDADD): Remove ../assuan/libassuan.a.
2656
2657 * gnome3/pinentry-gnome3.c: Include <assuan.h>, not "assuan.h".
2658 Replace ASSUAN_General_Error, etc. with gpg_error or
2659 gpg_error_from_syserror.
2660 * pinentry/pinentry-curses.c: Likewise.
2661 * pinentry/pinentry.c: Likewise.
2662 (pinentry_assuan_reset_handler): Change return type to gpg_error_t.
2663 Change type of argument CTX from ASSUAN_CONTEXT to assuan_context_t.
2664 Return 0.
2665 (pinentry_inq_quality): Change variable CTX's type from ASSUAN_CONTEXT
2666 to assuan_context_t.
2667 (assuan_malloc_hooks): New variable.
2668 (pinentry_init): Call gpgrt_check_version. Change use of
2669 assuan_set_malloc_hooks to match libassuan's semantics.
2670 (option_handler): Return a gpg_error_t, not an int. Replace use of
2671 ASSUAN_Out_Of_Core, etc. with gpg_error or gpg_error_from_syserror.
2672 (cmd_setdesc): Return a gpg_error_t, not an int. Change argument
2673 CTX's type from ASSUAN_CONTEXT to assuan_context_t. Replace use of
2674 ASSUAN_Out_Of_Core, etc. with gpg_error or gpg_error_from_syserror.
2675 GPG_ERR_ENOMEM), etc.
2676 (cmd_setprompt): Likewise.
2677 (cmd_setkeyinfo): Likewise.
2678 (cmd_setrepeat): Likewise.
2679 (cmd_setrepeaterror): Likewise.
2680 (cmd_seterror): Likewise.
2681 (cmd_setok): Likewise.
2682 (cmd_setnotok): Likewise.
2683 (cmd_setcancel): Likewise.
2684 (cmd_settimeout): Likewise.
2685 (cmd_settitle): Likewise.
2686 (cmd_setqualitybar): Likewise.
2687 (cmd_setqualitybar_tt): Likewise.
2688 (cmd_getpin): Likewise.
2689 (cmd_confirm): Likewise.
2690 (cmd_message): Likewise.
2691 (cmd_getinfo): Likewise.
2692 (cmd_clear_passphrase): Likewise.
2693 (register_commands): Likewise. Change use of assuan_register_command
2694 to match libassuan's semantics.
2695 (pinentry_loop2): Change variable RC's type from int to gpg_error_t.
2696 Change variable CTX's type from ASSUAN_CONTEXT to assuan_context_t.
2697 Use assuan_new to initialize CTX. Change use of
2698 assuan_init_pipe_server to match libassuan's semantics. Replace use
2699 of assuan_strerror with gpg_strerror. Call assuan_release instead of
2700 assuan_deinit_server.
2701
2702 2015-06-16 Andre Heinecke <[email protected]>
2703
2704 Qt4: Fix GCC compile warnings.
2705 + commit 5026d0b9ac08d8366c82beec6c4425fb7f7b11e5
2706 * qt4/qsecurelineedit.cpp (QSecureLineEdit::sizeHint),
2707 (QSecureLineEdit::minimumSizeHint): Remove unused Q_D macros.
2708 (QSecureLineEdit::setCursorPosition, QSecureLineEditPrivate::setText),
2709 (QSecureLineEditPrivate::hasAcceptableInput): Explicitly cast length to int.
2710 (QSecureLineEditPrivate::maskString): Use unsigned type for strIndex.
2711 (QSecureLineEditPrivate::maskString): Remove uneccesary casts.
2712 * qt4/secstring.cpp (toUtf8): Remove unused variable.
2713
2714 2015-06-07 Neal H. Walfield <[email protected]>
2715
2716 gnome3: Actually respect the user's choice of using a password manager.
2717 + commit 444598586d0abf70d5a27d2aafcd6c14989621db
2718 * gnome3/pinentry-gnome3.c (create_prompt) [HAVE_LIBSECRET]: Only show
2719 the libsecret prompt in this case.
2720 (gnome3_cmd_handler) [HAVE_LIBSECRET]: Set PE->MAY_CACHE_PASSWORD
2721 according to the user's choice.
2722
2723 2015-06-05 Werner Koch <[email protected]>
2724
2725 Release 0.9.4.
2726 + commit 29d7c5ffda648e61431b42964e773c13f77bf501
2727
2728
2729 2015-06-05 Neal H. Walfield <[email protected]>
2730
2731 secmem: When clearing memory, don't clear beyond the end of the buffer.
2732 + commit 554250b56ae00d590d05b1c5af7892314f0e72d8
2733 * secmem/secmem.c (secmem_malloc): Only clear the user memory; don't
2734 clear beyond the end of the buffer.
2735
2736 2015-06-04 Daniel Kahn Gillmor <[email protected]>
2737
2738 Make pinentry_setbufferlen always return the pin buffer.
2739 + commit c29c5657fd77e212799715c23806a0cb6e1cfd47
2740 * pinentry/pinentry.c (pinentry_setbufferlen): When the pin buffer is
2741 already large enough, return the buffer instead of NULL.
2742
2743 2015-06-02 Werner Koch <[email protected]>
2744
2745 Fixed compiler warnings - mostly unused parameter.
2746 + commit ee23924390a45700b35ab37a75278cfeb965b8c8
2747
2748
2749 Add more GCC warnings flags.
2750 + commit f74e40465f979749af6df5b9ea325324a428a669
2751 * configure.ac: Add GCC specific -W flags.
2752
2753 2015-06-02 Daniel Kahn Gillmor <[email protected]>
2754
2755 use g_debug(format, ...) safely.
2756 + commit 87e6811f2d1e72c501d14670ad911245a41c0828
2757 * pinentry/password-cache.c (password_cache_clear): use g_debug safely
2758 in case error->message is malformed.
2759
2760 2015-06-01 Werner Koch <[email protected]>
2761
2762 Release 0.9.3.
2763 + commit 9f98bbfa7f05f1c7e02443bc8d0bd74a61eb39bc
2764
2765
2766 2015-05-31 Stanislav Ochotnicky <[email protected]>
2767
2768 Fix qt4 pinentry window created in the background.
2769 + commit eab03a469d82018e53380f26390594f47bb4c5c8
2770 This is probably just a workaround. Proper fix is being investigated.
2771 See:
2772 https://bugzilla.redhat.com/show_bug.cgi?id=589532
2773 http://stackoverflow.com/questions/2788518/calling-activatewindow-on-qdia
2774
2775 2015-05-20 Werner Koch <[email protected]>
2776
2777 Improve configure log messages for ncurses/ncursesw.
2778 + commit 55ea554b2020b1e7b0996bd9f7bb38c8af2b03f3
2779 * m4/pkg.m4: Print the moule name not the variable name.
2780
2781 Allow building without ncursesw and other minor fixes.
2782 + commit 0c1af8e9af59d01936924c91c5d2d45133923d6d
2783 * pinentry/password-cache.c (password_cache_clear): s/debug/g_debug/.
2784 * pinentry/pinentry-curses.c (dialog_input): Actually bail out.
2785 (dialog_run) [!HAVE_NCURSESW]: Define alt.
2786
2787 2015-05-19 Neal H. Walfield <[email protected]>
2788
2789 gtk+-2: Make sure the save-passphrase-externally checkbox is not checked.
2790 + commit 54dd881a9a733074bafee4062f8591f4fe69cad5
2791 * gtk+-2/pinentry-gtk-2.c (create_window): Make sure the check button
2792 to save the passphrase externally is not checked by default.
2793
2794 Provide an Assuan command to clear a cached password.
2795 + commit 72b653d8088ce508ab688c68d88c363832d50eb7
2796 * pinentry/password-cache.c (password_cache_clear): New function.
2797 * pinentry/password-cache.h (password_cache_clear): New declaration.
2798 * pinentry/pinentry.c (cmd_getinfo): New function.
2799 (register_commands): Have the Assuan command "CLEARPASSPHRASE" call
2800 it.
2801
2802 If there is an error message, show it and don't read from the cache.
2803 + commit 516e01049e9829020b40ddbcf387d4c5c05b1c3f
2804 * pinentry/pinentry.c (cmd_getpin): If PINENTRY.ERROR is not NULL,
2805 don't read the password from the cache.
2806
2807 2015-05-18 Neal H. Walfield <[email protected]>
2808
2809 curses: When creating the button text, respect underscores.
2810 + commit 6fdcad6a1f91bc769b03d2cb32f0b8001ed3ae19
2811 * pinentry/pinentry-curses.c (MAKE_BUTTON): When creating the button
2812 text, respect underscores.
2813
2814 curses: Make control-l repaint the screen.
2815 + commit cade1ae102d5f4972f68b5bef0003f1ad1b3bde3
2816 * pinentry/pinentry-curses.c (dialog_input): Make control-l repaint
2817 the screen.
2818
2819 curses: Make control-h an alias for backspace.
2820 + commit 85646e9c08875214f6888df507c6f9ceb463a000
2821 * pinentry/pinentry-curses.c (dialog_input): Add control-h an alias
2822 for backspace.
2823
2824 When checking for ncurses, first try using PKG_CHECK_MODULES.
2825 + commit 25e77c0fd10e9a1d26c31c0a8ec1917b51da5cd2
2826 * m4/curses.m4: When checking for ncurses, first try using
2827 PKG_CHECK_MODULES.
2828
2829 Purge dead code enabled by ENABLE_ENHANCED.
2830 + commit e89c36a6546515c2a19645356d8f80dd459f2075
2831
2832
2833 2015-05-16 Neal H. Walfield <[email protected]>
2834
2835 gtk+-2: If gtk fails to initialize, fallback to the curses backend.
2836 + commit edd9a884604ff76e63d238504ede9b118655c55b
2837 * gtk+-2/pinentry-gtk-2.c (main): Use gtk_init_check instead of
2838 gtk_init. If gtk_init_check fails, fallback to the curses backend.
2839
2840 curses: Handle control-u, control-w and alt-backspace.
2841 + commit d3c52a144b5b23d0d841a99a310090dcafe2074b
2842 * pinentry/pinentry-curses.c (dialog_input): Take additional argument,
2843 alt. Update callers. If passed control-u, erase the whole line. If
2844 passed alt-backspace or control-w, erase any white space the the
2845 previous word.
2846 (dialog_run): Detect when alt is pressed.
2847
2848 secmem: Clear the buffer before returning it from secmem_malloc.
2849 + commit 1d3583a2562e83496ac515276e9bd63a7f1abbc7
2850 * secmem/secmem.c (secmem_malloc): In case wipememory2 gets optimized
2851 away in secmem_free, clear the buffer before returning it.
2852
2853 curses: NUL terminate the pin entry buffer.
2854 + commit 97a47ee99e14e0c8c6a2c3c5eec0434e6eac77e0
2855 * pinentry/pinentry-curses.c (dialog_run): NUL terminate the pin entry
2856 buffer.
2857
2858 curses: Make sure the pin entry buffer is larger enough.
2859 + commit c33073eb40ee4bb6e079605dbf2f343de50390d7
2860 * pinentry/pinentry-curses.c (dialog_input): Make sure the pin entry
2861 buffer is large enough.
2862
2863 curses: Avoid aliasing the pin buffer.
2864 + commit c7736745f5683b820ebbd11e30ddb425748c16ab
2865 * pinentry/pinentry-curses.c (struct dialog): Remove field pin. Add
2866 field pinentry.
2867 (dialog_create): Don't set DIALOG->PIN to PINENTRY->PIN. Set
2868 DIALOG->PINENTRY to PINENTRY and access PIN via
2869 DIALOG->PINENTRY->PIN. Update other users.
2870
2871 gtk+-2: When the dialog is destroyed, remove any pending timers.
2872 + commit 88772ddaac96303a63c97a45c26144d93a942798
2873 * gtk+-2/pinentry-gtk-2.c (timeout_source): New variable.
2874 (timeout_cb): Set it to 0.
2875 (create_window): When setting up the timeout, save the source
2876 identifier in TIMEOUT_SOURCE.
2877 (gtk_cmd_handler): If TIMEOUT_SOURCE is not 0, remove the timeout.
2878
2879 curses: If an error occurs while reading input, cancel the operation.
2880 + commit f3cb78985c3c7f96401a06a73412fb704c5efaab
2881 * pinentry/pinentry-curses.c (dialog_run) [! HAVE_DOSISH_SYSTEM]: If
2882 an error occurs while reading input, cancel the operation.
2883
2884 tty: ok takes precedence over default-ok. Likewise for cancel.
2885 + commit ae3352566994623d54723283e887bc5f74766e1c
2886 * tty/pinentry-tty.c (confirm): When creating the ok button,
2887 pinentry->ok takes precedence over pinentry->default-ok. Likewise for
2888 pinentry->cancel and pinentry->default_cancel.
2889
2890 Don't use a static initializer to initialize PINENTRY.
2891 + commit de3241ae0bc9072cfef204ea638171a3a95380a3
2892 * pinentry/pinentry.c (pinentry): Don't use a static initializer.
2893 (pinentry_reset): Initialize PINENTRY here.
2894 (pinentry_parse_opts): Call pinentry_reset here.
2895 (pinentry_assuan_reset_handler): New function.
2896 (pinentry_loop2): Register it as the assuan reset handler.
2897
2898 Don't emit the LC_CTYPE-not-set warning more than once.
2899 + commit 9fdb05554b5fc9c6f6621d606ccf21c038c7b6cb
2900 * pinentry/pinentry.c (lc_ctype_unknown_warning): New variable.
2901 (pinentry_utf8_to_local): Only emit the LC_CTYPE warning if
2902 lc_ctype_unknown_warning is not set. After emitted such a warning,
2903 set lc_ctype_unknown_warning.
2904 (pinentry_local_to_utf8): Likewise.
2905
2906 curses: Use default-ok and default-cancel if set.
2907 + commit 222866894993041ceaca3ca4ef33373ab78bfdff
2908 * pinentry/pinentry-curses.c (default_notok): New macro.
2909 (MAKE_BUTTON): Also check if default variant is set.
2910
2911 curses: Don't show the notok button in pin entry mode.
2912 + commit 3d97b18ba928677550a8f7eaa938551aad42dacf
2913 * pinentry/pinentry-curses.c (dialog_create): Don't show the notok
2914 button in pin entry mode.
2915
2916 2015-05-16 Daniel Kahn Gillmor <[email protected]>
2917
2918 Avoid implicit declaration of function addnwstr.
2919 + commit 21e83f422667e431c1283b9ae3356fded3523e50
2920 * pinentry/pinentry-curses.c [HAVE_NCURSESW]: Include <ncursesw/curses.h>.
2921 [! HAVE_NCURSESW]: Only include <curses.h> in this case.
2922
2923 2015-05-13 Neal H. Walfield <[email protected]>
2924
2925 tty: Handle the case where the user needs to repeat the passphrase.
2926 + commit 4549998627ee04e74f8d1c94aef55e3ed17f14d9
2927 * tty/pinentry-tty.c: Include "memory.h".
2928 (read_password): Break into two functions: read_password and password.
2929 (read_password): Just read the password from the terminal and return
2930 it in secure memory (or NULL if the user canceled the entry or there
2931 was an error).
2932 (password): Improve output. Handle the repeat passphrase case (i.e.,
2933 when pinentry->repeat_passphrase is set).
2934 * tty/Makefile.am (AM_CPPFLAGS): Add "-I$(top_srcdir)/secmem".
2935
2936 Add a new helper function, pinentry_setbuffer_use.
2937 + commit c68a6854aadaf8c271648f369f14b4943e684ecf
2938 * pinentry/pinentry.c (pinentry_setbuffer_use): New function.
2939 * pinentry/pinentry.h (pinentry_setbuffer_use): New declaration.
2940
2941 tty: Always call do_touch_file if we (potentially) touched the screen.
2942 + commit 960317ec86c06bc737e1ff3c1b571dc8f4194763
2943 * tty/pinentry-tty.c (tty_cmd_handler): Always call do_touch_file.
2944
2945 tty: Improve confirmation mode functionality.
2946 + commit dd0307be51587a9a7866981ce00eed474bee6e14
2947 * tty/pinentry-tty.c: Include <ctype.h>.
2948 (UNDERLINE_START): Define.
2949 (ALERT_START): Define.
2950 (NORMAL_RESTORE): Define.
2951 (button): New function.
2952 (confirm): Rewrite to include all confirmation mode functionality.
2953 (tty_cmd_handler): Don't include any confirmation mode functionality.
2954 Just call confirm.
2955
2956 Fix linking order to work when linked with --as-needed.
2957 + commit 496235af8dfd373b54e5610f86bf1cada175ac23
2958 * curses/Makefile.am (LDADD): Add $(COMMON_LIBS) after all of the
2959 local objects and object archives.
2960 * gnome3/Makefile.am (LDADD): Likewise.
2961 * gtk+-2/Makefile.am (LDADD): Likewise.
2962 * qt4/Makefile.am (pinentry_qt4_LDADD): Likewise.
2963 * tty/Makefile.am (LDADD): Likewise.
2964
2965 Don't interpret the handler's return value as the passphrase's length.
2966 + commit 3062742b945f95d72001896f8ba5468b9e63aa9b
2967 * pinentry/pinentry.c (cmd_getpin): Don't interpret the return value
2968 as the passphrase length. Use strlen instead.
2969
2970 Make the management of pinentry.pin more explicit.
2971 + commit bdd81974633f8e31d582b62999ef9b004bc3b95e
2972 * pinentry/pinentry.c: Include <assert.h>.
2973 (pinentry): Set pin_len to 0.
2974 (pinentry_setbufferlen): If len is less than 2048, set it to 2048.
2975 Add an assertion.
2976 (pinentry_setbuffer_clear): New function that releases the pin buffer.
2977 (pinentry_setbuffer_init): New function that initializes the pin
2978 buffer.
2979 (cmd_getpin): Use pinentry_setbuffer_init and pinentry_setbuffer_clear
2980 instead of manual memory management.
2981 (cmd_confirm): Use pinentry_setbuffer_clear instead of manual memory
2982 management.
2983
2984 Better document struct pinentry.
2985 + commit ae7dfae00df81a683adf0292a52b63632491319e
2986 * pinentry/pinentry.h (struct pinentry): Better document the various
2987 fields.
2988
2989 2015-05-12 Neal H. Walfield <[email protected]>
2990
2991 Fix some documentation details.
2992 + commit 2582cb9eb23ca287520caa04a12f83f10c268f71
2993 * doc/pinentry.texi: Fix some details.
2994
2995 Add a GNOME3 pinentry based on gcr.
2996 + commit be87785005d256b7f3dacc607ba5ea0a14de8593
2997 * configure.ac (--enable-pinentry-gnome3): Option to enable the GNOME3
2998 pinentry.
2999 (pinentry_gnome_3): Set to yes if enabled and gcr-3 and gcr-base-3 gcr
3000 is available.
3001 (GNOME3CFLAGS): Define and AC_SUBST.
3002 (GNOME3LIBS): Define and AC_SUBST.
3003 (GCR_API_SUBJECT_TO_CHANGE): Define.
3004 (BUILD_PINENTRY_GNOME_3): Define.
3005 * Makefile.am (pinentry_gnome_3): Define.
3006 (SUBDIRS): Add ${pinentry_gnome_3}.
3007 * gnome3/Makefile.am: New file.
3008 * gnome3/pinentry-gnome3.c: New file.
3009
3010 Add new chapter to documentation describing implementation details.
3011 + commit 14b95bd6d92ba699c3d263ac1f9140973d8c9156
3012 * doc/pinentry.texi: Add new chapter describing some implementation
3013 details.
3014
3015 Simplify code.
3016 + commit 831782b3b625ca81624fae0ee184da0d2fc46d96
3017 * pinentry/pinentry.c (cmd_confirm): Don't use nested ternary
3018 expressions.
3019
3020 Implement cmd_confirm in terms of cmd_message.
3021 + commit 29236f84aca64be72c97a9b5513457a4e45afbc6
3022 * pinentry/pinentry.c (cmd_confirm): Implement cmd_confirm in terms of
3023 cmd_message.
3024
3025 Fix memory allocation in pinentry_setbufferlen.
3026 + commit aa04dac66f2ee949e8789a3c91090b01646f2e57
3027 * pinentry/pinentry.c (pinentry_setbufferlen): Set PIN->PIN to a
3028 buffer that is LEN bytes large, not 2 * PIN->PIN_LENGTH.
3029
3030 2015-05-11 Werner Koch <[email protected]>
3031
3032 Release 0.9.2.
3033 + commit 8e52ddc874838ad512ed76cdc1c34057da328fba
3034
3035
3036 Return better error codes.
3037 + commit 726c00514be4a0c2831dd775e306f7d5243bab8b
3038 * assuan/assuan.h (ASSUAN_Too_Short): New
3039 (ASSUAN_ENOENT, ASSUAN_ENOTTY): New.
3040 * pinentry/pinentry-curses.c: Include assuan.h.
3041 (dialog_create, dialog_run): Set specific error codes.
3042 * pinentry/pinentry.h (struct pinentry): Add field specific_err.
3043 * pinentry/pinentry.c (cmd_getpin): Return specific_err.
3044 (cmd_confirm, cmd_message): Ditto.
3045
3046 curses: Reset tty state on failed dialog creation.
3047 + commit d7f2081fdd605b0d0789bcb6984decfea3777f23
3048 * pinentry/pinentry-curses.c (dialog_run): Cleanup on dialog_create
3049 error.
3050
3051 gtk: Use a description string from gpg-agent for libsecret.
3052 + commit 319e1a32e3ab67cb0624c0586d7519c16c76d43b
3053 * pinentry/pinentry.h (struct pinentry): Add field default_pwmngr.
3054 * pinentry/pinentry.c (option_handler): Set it.
3055 * gtk+-2/pinentry-gtk-2.c (create_window) [HAVE_LIBSECRET]: Use new
3056 string.
3057
3058 gtk: Silence compiler warning.
3059 + commit 3d02645d757e573e4628a1caf2e36bb92d523e77
3060
3061
3062 2015-05-07 Neal H. Walfield <[email protected]>
3063
3064 Don't use asprintf.
3065 + commit 1a8af55b76d8235ce891f44808064e7f846e193c
3066 * pinentry/password-cache.c (keygrip_to_label): Don't use asprintf.
3067
3068 Improve documentation.
3069 + commit 09203147bef487c9a85f55f8cc96d265197b0bf5
3070 * doc/pinentry.texi: Improve description of SETKEYINFO's format.
3071
3072 Minor documentation cleanups.
3073 + commit 3a8daef81c49dc3c04b6703a0384381cb43eb91b
3074
3075
3076 Add support for saving the passphrase with libsecret.
3077 + commit c6eaa7bf8300f524de41956a339ca0ed3af4656e
3078 * configure.ac (COMMON_CFLAGS): New variable. AC_SUBST it.
3079 (COMMON_LIBS): Likewise. AC_SUBST it.
3080 (LIBSECRET_CFLAGS): Likewise.
3081 (LIBSECRET_LIBS): Likewise.
3082 (--enable-libsecret): Add option to enable support for libsecret. If
3083 enabled, check for its presense.
3084 * pinentry/password-cache.h: New field.
3085 * pinentry/password-cache.c: New field.
3086 * pinentry/pinentry.h (struct pinentry): Add fields pin_from_cache,
3087 allow_external_password_cache, tried_password_cache, keyinfo, and
3088 may_cache_password.
3089 * pinentry/pinentry.c: Include "password-cache.h".
3090 (pinentry): Initialize new fields.
3091 (option_handler): Handle the "allow-external-password-cache" option.
3092 (cmd_setkeyinfo): Implement it.
3093 (cmd_getpin): Read the password from the cache, if appropriate. Save
3094 it to the cache, if appropriate.
3095 * pinentry/Makefile.am (AM_CPPFLAGS): Add $(COMMON_CFLAGS).
3096 (LDADD): Add $(COMMON_LIBS).
3097 (libpinentry_a_SOURCES): Add password-cache.h
3098 password-cache.c.
3099 * gtk+-2/pinentry-gtk-2.c (may_save_passphrase_toggled): New function.
3100 (create_window): Take additional parameter, the pinentry's context.
3101 Update callers.
3102 [HAVE_LIBSECRET]: Show a checkbox asking whether the passphrase should
3103 be saved.
3104 * gtk+-2/Makefile.am (AM_CPPFLAGS): Add $(COMMON_CFLAGS).
3105 (LDADD): Add $(COMMON_LIBS).
3106 * curses/Makefile.am (AM_CPPFLAGS): Add $(COMMON_CFLAGS).
3107 (LDADD): Add $(COMMON_LIBS).
3108 * tty/Makefile.am (AM_CPPFLAGS): Add $(COMMON_CFLAGS).
3109 (LDADD): Add $(COMMON_LIBS).
3110 * doc/pinentry.texi (Protocol): Update documentation. Describe the
3111 protocol and provide some justification.
3112
3113 2015-05-07 Werner Koch <[email protected]>
3114
3115 w32: Do not build gtk pinentry by default.
3116 + commit aa98f25ddcc3c36035f18249443cec15d16e8fa5
3117 * autogen.rc: Remove obsolete options.
3118
3119 2015-05-07 Neal H. Walfield <[email protected]>
3120
3121 Align secmem_realloc behavior with realloc's.
3122 + commit aaec7c7c50adfb51510962a14c0fa2179a34a01e
3123 * secmem/secmem.c (secmem_realloc): If passed a NULL pointer, then
3124 call secmem_malloc instead of crashing.
3125
3126 2015-05-05 Werner Koch <[email protected]>
3127
3128 w32: Minor changes to the dialog.
3129 + commit cbecc6d38a86f8fa7c052efab7649be07b5df334
3130 * w32/main.c (set_bitmap): New.
3131 (dlg_proc): Show error prompt in red.
3132 * w32/pinentry-w32.rc: Add icons and chnage dialog.
3133 * w32/logo-128.bmp: New.
3134 * w32/logo-32.bmp: New.
3135 * w32/logo-48.bmp: New.
3136 * w32/logo-64.bmp: New.
3137 * w32/logo-96.bmp: New.
3138
3139 pinentry-tty: Fix problem with zero length prompt.
3140 + commit a616bd9dec00e068185b6b37a35ced4ec12ac5a7
3141 * tty/pinentry-tty.c (read_password): Use default prompt also for an
3142 empty prompt argument.
3143
3144 2015-05-01 Neal H. Walfield <[email protected]>
3145
3146 Improve documentation.
3147 + commit 8b802cf928d199d9c09080f71a7dd1eb397f414a
3148 Improve documentation: clean up wording and add some minor
3149 improvements to the content.
3150
3151 Improve comment.
3152 + commit b9d529557b368548d6a55ae6c2df66ece7023e5f
3153 * tty/pinentry-tty.c (tty_cmd_handler): Add comment.
3154
3155 When reading the pin, correctly handle backspace.
3156 + commit 189ab07e94dc2d4103c1edf00e15e0156df89297
3157 * tty/pinentry-tty.c (read_password): Handle backspace.
3158
3159 Improve prompt for pin.
3160 + commit c7099565524010b86891fc14b723fc722509d4bb
3161 * tty/pinentry-tty.c (read_password): Improve prompt for pin.
3162
3163 2015-05-01 Daniel Kahn Gillmor <[email protected]>
3164
3165 fix small memory leak in pinentry-curses.
3166 + commit 03e4207f11e228a4c079af991f82507539793bae
3167 * pinentry/pinentry-curses.c: free internally allocated local string.
3168
3169 pinentry-tty: make confirm actions work.
3170 + commit 21d28d114259da9cb555ee612e053e6e68f37fd3
3171 * tty/pinentry-tty.c: treat the situation where no PIN is requested
3172 and one_button is not set as a confirmation prompt.
3173
3174 pinentry-tty: fix segfault on MESSAGE or CONFIRM.
3175 + commit 93bd60a3ca91581a1cf8e754c4fb51e54c9e7ce9
3176 * tty/pinentry-tty.c: avoid prompting for a PIN when one was not asked
3177 for.
3178
3179 pinentry-tty: handle designated tty outside of read_password.
3180 + commit b4bf75f24f1126a8ba8f8c1c025103c2dcee0710
3181 * tty/pinentry-tty.c: reorganize, wrapping read_password in tty
3182 open/close.
3183
3184 2015-04-16 Yuri D'Elia <[email protected]>
3185
3186 gtk: Make Escape key work.
3187 + commit 9d2d8b6bfaf2d5b07e7fb5be7188516e4158ed98
3188 * gtk+-2/pinentry-gtk-2.c: Include gdk/gdkkeysyms.h.
3189 (enter_callback): Pass confirm_value_t to button_clicked.
3190 (confirm_button_clicked): Use confirm_value_t cast.
3191 (cancel_callback): New.
3192 (create_window): Add accelerator for the Escape key.
3193
3194 2015-04-14 Werner Koch <[email protected]>
3195
3196 Add stub command SETKEYINFO.
3197 + commit 2bffbbff09177afb75ad667d949eed2a8cb846ea
3198 * pinentry/pinentry.c (cmd_setkeyinfo): New.
3199 (register_commands): Addd command.
3200
3201 2015-03-18 Werner Koch <[email protected]>
3202
3203 Release 0.9.1.
3204 + commit 0b2d5e435445e3b9f8dffcf2240a95313c3ce335
3205
3206
3207 Fix build problems on AIX.
3208 + commit 1cfcf9dadb73bccc52b7ece47616d621d9cbe044
3209 * pinentry/pinentry.c: Do not include getopt.h.
3210 * pinentry/pinentry-curses.c (dialog_run): Call use_default_colors
3211 only with ncurses.
3212
3213 Update to automake 1.14.
3214 + commit 2c56b16a18713786a7e66e408967f91388a008cb
3215
3216
3217 2015-03-17 Werner Koch <[email protected]>
3218
3219 Get rid of getopt_long and improve --help output.
3220 + commit 2f7b275b2b5d31df48f02ab2913ba3ff2e74b7a4
3221 * pinentry/argparse.c, pinentry/argparse.h: New. Taken from GnuPG
3222 master.
3223 * pinentry/Makefile.am (libpinentry_a_SOURCES): Add them.
3224 * pinentry/pinentry.c: Include argparse.h.
3225 (usage): Remove.
3226 (my_strusage): New.
3227 (pinentry_parse_opts): Rewrite. Do not return a value. Change call
3228 callers.
3229
3230 Use CH type instead of wchar_t for curses.
3231 + commit 8fa3ca90bfbaa84314443fab9865742b78eb85a9
3232 * pinentry/pinentry-curses.c (collect_line): Change second arg to CH.
3233 * pinentry/pinentry.c (pinentry_utf8_to_local): Make args const.
3234
3235 2014-12-15 Andre Heinecke <[email protected]>
3236
3237 qt4: Improve moc handling.
3238 + commit bb423620fca82159e60ab25de3c608a0243088b0
3239 * configure.ac: Disable pinentry-qt4 or exit if moc not found.
3240 * m4/qt.m4: Look for and prefer moc-qt4.
3241 * qt4/Makefile.am: Add moc files to nodist and clean them.
3242
3243 doc: Update gpl.texi to match version from gcrypt.
3244 + commit c911657710893643558f91ec497fac2831d91040
3245 * doc/gpl.texi: Use version from gcrypt.
3246
3247 2014-12-09 Vicente Olivert Riera <[email protected]>
3248
3249 pinentry-qt4: make the accessibility part optional.
3250 + commit 484465338ea6f5f12eb1341ca0ef84aa79224ed4
3251 Check if the Qt libraries have support for QT Accessibility before using
3252 it. Otherwise it will raise error like these one:
3253
3254 main.cpp: In function 'int qt_cmd_handler(pinentry_t)':
3255 main.cpp:220:51: error: 'class QAbstractButton' has no member named
3256 'setAccessibleDescription'
3257
3258 2014-10-26 Werner Koch <[email protected]>
3259
3260 Release 0.9.0.
3261 + commit 8943bc86d6cf8295d0ec4382480d886b1f2ec062
3262
3263
3264 gtk: Aboid segv for opaste keys.
3265 + commit 821dc21a241a27cc381c7d65be690e3858e2ddc6
3266 * gtk+-2/gtksecentry.c (gtk_secure_entry_class_init): Disable paste
3267 key bindings.
3268
3269 Remove support form QT3 and GTK+-1.
3270 + commit f2ed42297528f2a126d189c6181d3105ceecca22
3271 * configure.ac: Remove old qt and gtk+-1 support.
3272 * Makefile.am: Ditto.
3273
3274 2014-10-26 Stanislav Ochotnicky <[email protected]>
3275
3276 Check if we are on tty before initializing curses.
3277 + commit 3803fd15942f2f25108e400be6cd6faef791c8f7
3278 * pinentry/pinentry-curses.c (dialog_run): Check stant stdin and stout
3279 are connected to ttys.
3280
3281 2014-10-26 Werner Koch <[email protected]>
3282
3283 gtk: Allow pasting using the mouse.
3284 + commit 4f4af9056d1c100aa53363f019253160cd8d9ff0
3285 * gtk+-2/gtksecentry.h (_GtkSecureEntry): Add fields insert_pos,
3286 real_changed, cand change_count.
3287 (_GtkSecureEntryClass): Add field paste_clipboard.
3288 * gtk+-2/gtksecentry.c (PASTE_CLIPBOARD): New.
3289 (gtk_secure_entry_class_init): Set paste_clipboard and create
3290 paste-clipboard signal.
3291 (gtk_secure_entry_button_press): Call gtk_secure_entry_pase.
3292 (begin_change, end_change, emit_changed): New.
3293 (gtk_secure_entry_real_insert_text): Use emit_changed.
3294 (gtk_secure_entry_real_delete_text): Ditto.
3295 (paste_received, gtk_secure_entry_paste)
3296 (gtk_secure_entry_paste_clipboard): New.
3297
3298 2014-10-24 Werner Koch <[email protected]>
3299
3300 gtk+-2: Make current focus visible again.
3301 + commit 2ef788fb5dce2e49fa925264802388f4c002cd31
3302 * gtk+-2/pinentry-gtk-2.c (grab_keyboard): Return false
3303 (ungrab_keyboard): Ditto.
3304
3305 gtk+-2: Implement the SETREPEAT command.
3306 + commit e483abb883f65719ce8008a211f49b8d207ee4af
3307 * gtk+-2/pinentry-gtk-2.c (repeat_entry, error_label): New.
3308 (button_clicked): Implement repeat check.
3309 (changed_text_handler): Clear repeat field.
3310 (create_window): Add repeat entry.
3311
3312 Add commands to allow implementing a "repeat passphrase" field.
3313 + commit 9f78f0709d9ba60677129c179f7f0ef835c51c1d
3314 * pinentry/pinentry.c (cmd_setrepeat): New.
3315 (cmd_setrepeaterror): New.
3316 (register_commands): Add new commands.
3317 (cmd_getpin): Print "PIN_REPEATED" status.
3318
3319 2014-09-18 Werner Koch <[email protected]>
3320
3321 Release 0.8.4.
3322 + commit f610ea6248b5a77739d2e16052b8ddd78f95394e
3323
3324
3325 Add missing build support files and move them to build-aux.
3326 + commit f21dcb8083905efef8e82e1bf91dd01457af81d1
3327
3328
3329 Use generic autogen.sh script.
3330 + commit 549479d69363ca1ef5e7c676517e2327b8baadea
3331 * autogen.rc: New.
3332 * autogen.sh: New. Take from GnuPG.
3333 * Makefile.am (EXTRA_DIST): Add autogen.rc.
3334 (DISTCHECK_CONFIGURE_FLAGS): Disable qt4.
3335
3336 2014-08-12 Werner Koch <[email protected]>
3337
3338 common: Fix compiler warning.
3339 + commit 888591602fc359e2c1baaa49d92825e050426956
3340 * pinentry/pinentry.c (pinentry_utf8_to_local): Use cast for iconv arg.
3341 (pinentry_local_to_utf8): Ditto.
3342
3343 New pinentry-tty version for dumb terminals.
3344 + commit 12369b15c65fa64eef9dbc5e475b407e338641c7
3345 * Makefile.am: Add pinentry-tty.
3346 * NEWS: Add news about pinentry-tty.
3347 * README: Update.
3348 * configure.ac: Add support for this pinentry.
3349 * tty/Makefile.am: New.
3350 * tty/pinentry-tty.c: New.
3351
3352 2014-08-06 Andre Heinecke <[email protected]>
3353
3354 Check for MOC also if pinentry-qt is disabled.
3355 + commit 52cf95c4fd97dc38856e72aa3e42a135d010df06
3356 * configure.ac: Call QT_PATH_MOC if pinentry_qt4 is not no.
3357
3358 Add fallbacks for SetForegroundWindow.
3359 + commit f4d14ffcf2e04b1938c00a0ef1504e0e932631fd
3360 If that foreground window fails pinentry-qt now tries to
3361 attach to the current foreground process and then tries
3362 to set the foreground window again. If that fails it also
3363 calls ShowWindow as a last resort.
3364
3365 * qt4/pinentrydialog.cpp (raiseWindow): Add fallbacks in
3366 case SetForegroundWindow fails.
3367
3368 Use raiseWindow also for confirm dialogs.
3369 + commit 47476d2f288a22c29567ae2c179ce0472db4257e
3370 This should fix the case that the dialog opened
3371 in the foreground but a warning / confirm dialog
3372 opened in the background.
3373
3374 * qt4/pinentryconfirm.cpp, qt4/pinentryconfirm.h (showEvent):
3375 New overwrite base class method to call raiseWindow.
3376 * NEWS: Mention this.
3377
3378 2014-07-30 Andre Heinecke <[email protected]>
3379
3380 Set some accessibility information.
3381 + commit 41d046022e912c76cb424c906064745e732f01f3
3382 * qt4/main.cpp (qt_cmd_handler): Build buttons with accessibile
3383 Description.
3384 * qt4/pinentrydialog.cpp (setDescription, setError, setOkText)
3385 (setCancelText, setQualityBar): Set an accessible description.
3386 * qt4/pinentryconfirm.cpp (PinentryConfirm): Set message
3387 box contents also as accessible values.
3388 * NEWS: Mention it and the copy/paste change from last year.
3389
3390 2013-07-15 Andre Heinecke <[email protected]>
3391
3392 Lower paste length limit to 300.
3393 + commit 556d305b970ed60ef1dc2718fcafbf3bea6b7fea
3394 This should be more then enough and avoids possible problems
3395 with libassuan cmd line lenght or percent escaping etc.
3396
3397 * qt4/qsecurelineedit.cpp (insert): Lower paste limit
3398
3399 Limit paste length to 1023 characters.
3400 + commit 9b154c9f87abd3ea5df4b763c958e538b19d0904
3401 * qt4/qsecurelineedit.cpp (insert): Check for a maximum
3402 length before allocation the secmem string.
3403
3404 Fix contextmenu support for pasting.
3405 + commit 4d56651dd4ab2568f8adc7e4448bb1239dbdbfb0
3406 MOC ignores preprocessor definitions so we can not conditionally
3407 declare SLOTS. So we now move the ifdefs in the definition and
3408 always declare the SLOTS.
3409
3410 * qt4/qsecurelinedit.cpp (cut, copy, paste): Do nothing if
3411 QT_NO_CLIPBOARD is defined.
3412 * qt4/qsecurelinedit.h: Always declare cut, copy and paste slots
3413
3414 Remove check for RTL extensions.
3415 + commit d4feabe153b096db896dfe25bd1bf763d23123d7
3416 Our code does nothing RTL specific there anyway. And the
3417 qt_use_rtl_extensions symbol has been removed.
3418
3419 * qt4/qsecurelinedit.cpp: Remove check for RTL extensions.
3420
3421 2013-07-12 Werner Koch <[email protected]>
3422
3423 Fix for commit fb38be9 to allow for "make distcheck".
3424 + commit 54b9b92c13a496a33868501dec893bc8d82b1a8d
3425 * qt4/Makefile.am: Make correct use of BUILT_SOURCES.
3426
3427 2013-05-29 Andre Heinecke <[email protected]>
3428
3429 Add pinentry-qt4-clipboard option.
3430 + commit 0b3a8568e14b994a8d1f4c1cb42aed4959dfc811
3431 Enabling this option will make it possible to paste a
3432 passphrase into pinentry-qt4. This defeats the secmem
3433 mechanism but drastically increases usability for some
3434 users.
3435
3436 * configure.ac: New option pinentry-qt4-clipboard.
3437 * qt4/qsecurelineedit.cpp, qt4/qsecurelineedit.h: Activate
3438 clipboard and context menu if PINENTRY_QT4_CLIPBOARD is defined.
3439
3440 Remove qt4 moc files and add moc to buildsystem.
3441 + commit fb38be960e837bb5854aa65bf8cbf9cbf535631e
3442 This is neccessary to conditionally enable signals/slots
3443 at build time.
3444
3445 * qt4/Makefile.am: Moc files automatically.
3446 * qt4/pinentryconfirm.moc, qt4/pinentrydialog.moc,
3447 qsecurelineedit.moc: Removed.
3448
3449 2013-04-26 Werner Koch <[email protected]>
3450
3451 Release 0.8.3.
3452 + commit ce7f2e69fa78d9afac96efc3009513b203668b4b
3453
3454
3455 2013-04-26 Andre Heinecke <[email protected]>
3456
3457 Switch to i686-w64-mingw32 as default Windows toolchain.
3458 + commit a421efcb91b80a37f58ae35687dc33db08a04b3d
3459 * autogen.sh <build-w32>: Insert i686-w64-mingw32.
3460 * configure.ac: Pretty print final info.
3461
3462 Fix declaration of lock_set_foreground_window for pinnetry-w32.
3463 + commit 369e774ab835ecf23da267cf55f9ecf8ae8c5585
3464 * w32/main.c (lock_set_foreground_window): Remove WINUSERAPI
3465 qualifier.
3466
3467 Fix ressource compilation of pinentry-w32.
3468 + commit 18b0d8849e51b6203b3f1dbc1cc1cc71e52f78b6
3469 * w32/pinentry-w32.rc: Include windows.h
3470
3471 2013-02-16 Ben Kibbey <[email protected]>
3472
3473 Curses build fix for DOS'ish systems.
3474 + commit 462f00dfc6636fbfe2e453c1b820d919ec1d0c99
3475
3476
3477 2013-02-14 Ben Kibbey <[email protected]>
3478
3479 Document the --timeout and SETTIMEOUT feature.
3480 + commit 31467f7c2cd748d6f822ccf627a2ce8870fb09c6
3481
3482
3483 Add timeout support to the Gtk+2 pinentry.
3484 + commit 8ce6e0c9cecd91d7b1dfe8bcc9942803c13c7afb
3485 * gtk+-2/pinentry-gtk-2.c (create_window): Add timer.
3486 (timeout_cb): New.
3487
3488 Add timeout support to the curses pinentry.
3489 + commit e3bed4f087304ac126e247053fc82a593bec31b6
3490 * pinentry/pinentry-curses.c (dialog_run): Set the window input to
3491 non-blocking.
3492 (catchsig): New.
3493 (main): Catch SIGALRM and set the timeout.
3494
3495 2013-01-06 Ben Kibbey <[email protected]>
3496
3497 Fix initializing the timeout timer.
3498 + commit d33537aef0358313cbcf1d010b227d93f3430900
3499 When timeout == 0 a segfault would occur.
3500
3501 2012-08-08 Werner Koch <[email protected]>
3502
3503 Release 0.8.2.
3504 + commit ffc59acd0188006b9c90d03b59fe93dc7e12fe51
3505
3506
3507 Distribute only bzip2 tarballs.
3508 + commit 94f356b2615a8cd2c5ce608b9f08a5fde3d02b26
3509 * Makefile.am (AUTOMAKE_OPTIONS): New.
3510
3511 qt4: Update all moc files to Qt version 4.8.2.
3512 + commit 7cbe87800fa8f84d7868da507010999cbc314beb
3513
3514
3515 Update config.guess and config.sub.
3516 + commit b3016d72478a57dd1132721a324b1a09ca23fed2
3517 * config.guess, config.sub: Update to version 2012-07-31 from gnulib.
3518
3519 Change build system to auto-generate the ChangeLog.
3520 + commit 826ca44db0d29bae54de8b5d4c0d67a3f22430ee
3521 * build-aux/gitlog-to-changelog: New script. Taken from GnuPG.
3522 * build-aux/git-log-fix: New file.
3523 * build-aux/git-log-footer: New file.
3524 * doc/HACKING: Describe the ChangeLog policy
3525 * ChangeLog: New file.
3526 * Makefile.am (EXTRA_DIST): Add new files.
3527 (gen-ChangeLog): New.
3528 (dist-hook): Run gen-ChangeLog.
3529
3530 Rename existing ChangeLog files to ChangeLog-old.
3531
3532 Switch to an automagic beta numbering scheme.
3533 + commit 19fae1e8652410712d52f1d926fb9bb40a506787
3534 * configure.ac: Add all the required m4 magic.
3535
3536 2012-08-08 Werner Koch <[email protected]>
3537
3538 NB: Changes done before August 8, 2012 are described in per
3539 directory files named ChangeLog-old. See doc/HACKING for
3540 details.
3541
3542 -----
3543 Copyright (C) 2002, 2003, 2010, 2012 g10 Code GmbH
3544
3545 Copying and distribution of this file and/or the original GIT
3546 commit log messages, with or without modification, are
3547 permitted provided the copyright notice and this notice are
3548 preserved.