pinentry.git
10 years agoPreparing a release pinentry-0.7.5
Werner Koch [Fri, 15 Feb 2008 10:31:04 +0000 (10:31 +0000)]
Preparing a release

10 years agoAdd command GETINFO.
Werner Koch [Thu, 14 Feb 2008 11:38:56 +0000 (11:38 +0000)]
Add command GETINFO.

10 years ago2008-01-10 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 10 Jan 2008 22:05:38 +0000 (22:05 +0000)]
2008-01-10  Marcus Brinkmann  <marcus@g10code.de>

* assuan-handler.c (dispatch_command): Use Syntax_Error instead of
Invalid_Command.
* assuan.h (assuan_error_t): Change all error codes to gpg-error
codes.

10 years ago2008-01-02 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 2 Jan 2008 16:01:06 +0000 (16:01 +0000)]
2008-01-02  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Use PKG_CONFIG instead of PKGCONFIG and
pkg-config.  Use AC_PATH_PROG instead of AC_CHECK_PROG.

* Makefile.am (install-exec-local): Add exe extension to link.

11 years ago2007-11-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 29 Nov 2007 14:11:33 +0000 (14:11 +0000)]
2007-11-29  Marcus Brinkmann  <marcus@g10code.de>

Released 0.7.4.

11 years ago.
Werner Koch [Thu, 29 Nov 2007 12:19:21 +0000 (12:19 +0000)]
.

11 years agoApplied patch from Bernhard Herzog to fix the Crash in Qt.
Werner Koch [Mon, 19 Nov 2007 19:29:54 +0000 (19:29 +0000)]
Applied patch from Bernhard Herzog to fix the Crash in Qt.
(really stupid error by me).
Typo fixes.

11 years agoApplied batch from Bernhard Herzog.
Werner Koch [Mon, 19 Nov 2007 12:36:53 +0000 (12:36 +0000)]
Applied batch from Bernhard Herzog.
Allow caller to set the toolip.

The QT versions still crashes - someone else might want to look into it. TIA.

11 years agoRemoved test code.
Werner Koch [Tue, 18 Sep 2007 17:52:39 +0000 (17:52 +0000)]
Removed test code.

11 years agoImplemented quality bar for QT.
Werner Koch [Tue, 18 Sep 2007 17:45:38 +0000 (17:45 +0000)]
Implemented quality bar for QT.

11 years agoAdd quality bar to the GTK-2 version.
Werner Koch [Tue, 18 Sep 2007 11:38:21 +0000 (11:38 +0000)]
Add quality bar to the GTK-2 version.
Doesn't look very pretty yet.

11 years agoApplied fixes for bug 798.
Werner Koch [Mon, 9 Jul 2007 07:36:40 +0000 (07:36 +0000)]
Applied fixes for bug 798.

11 years agoPost release updates.
Werner Koch [Fri, 6 Jul 2007 13:39:05 +0000 (13:39 +0000)]
Post release updates.

11 years ago. pinentry-0.7.3
Werner Koch [Fri, 6 Jul 2007 12:53:24 +0000 (12:53 +0000)]
.

11 years ago.
Werner Koch [Fri, 6 Jul 2007 12:52:11 +0000 (12:52 +0000)]
.

11 years agoPreparing a release.
Werner Koch [Fri, 6 Jul 2007 12:51:28 +0000 (12:51 +0000)]
Preparing a release.

11 years agoRevamped the SetFocus stuff. I am not sure whether this hack will work
Werner Koch [Wed, 27 Jun 2007 16:50:22 +0000 (16:50 +0000)]
Revamped the SetFocus stuff.  I am not sure whether this hack will work
under Vista.

11 years agoFixed focus issues.
Werner Koch [Tue, 26 Jun 2007 19:02:02 +0000 (19:02 +0000)]
Fixed focus issues.

11 years agoMade W32 version work. There are still some glitches but it works with
Werner Koch [Wed, 20 Jun 2007 14:29:22 +0000 (14:29 +0000)]
Made W32 version work.  There are still some glitches but it works with
gpg-agent.

11 years ago2007-05-10 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 10 May 2007 17:37:07 +0000 (17:37 +0000)]
2007-05-10  Marcus Brinkmann  <marcus@g10code.de>

* pinentry/pinentry.h (pinentry_color_t): New type.
(struct pinentry): New members COLOR_FG, COLOR_FG_BRIGHT,
COLOR_BG, COLOR_SO.
* pinentry/pinentry.c (pinentry_parse_opts): Support new option --colors.
(parse_color): New function.
* pinentry/pinentry-curses.c (USE_COLORS): New macro.
(pinentry_color): New static variable.
(dialog_create): Redo color management.

11 years ago2007-05-10 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 10 May 2007 14:42:16 +0000 (14:42 +0000)]
2007-05-10  Marcus Brinkmann  <marcus@g10code.de>

* pinentry/pinentry-curses.c (dialog_create): Re-add calculation
of cancel button position.  Adjust calculation of OK button
position if it is the only one used.

11 years ago2007-04-13 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 13 Apr 2007 00:06:55 +0000 (00:06 +0000)]
2007-04-13  Marcus Brinkmann  <marcus@g10code.de>

* qt/secqlineedit.h (SecQLineEdit::contextMenuEvent,
SecQLineEdit::createPopupMenu): Remove prototype.
* qt/secqlineedit.cpp (SecQLineEdit::contextMenuEvent,
SecQLineEdit::createPopupMenu): Remove implementation.
Submitted by Tobias Koenig <tokoe@kde.org>.

11 years ago * pinentry/pinentry.h (struct pinentry): Add TOUCH_FILE.
Werner Koch [Wed, 14 Feb 2007 16:24:02 +0000 (16:24 +0000)]
* pinentry/pinentry.h (struct pinentry): Add TOUCH_FILE.
* pinentry/pinentry.c (option_handler): New option "touch-file".
(pinentry_have_display): Ignore an empty DISPLAY.
* pinentry/pinentry-curses.c (do_touch_file): New.
(curses_cmd_handler): Call it.
* configure.ac: Check for utime.h.

11 years ago * pinentry/pinentry.c (cmd_message): New.
Werner Koch [Wed, 24 Jan 2007 18:25:10 +0000 (18:25 +0000)]
* pinentry/pinentry.c (cmd_message): New.
(cmd_confirm): New command option --one-button.
(cmd_getpin): Zeroise ONE_BUTTON.
* pinentry/pinentry.h (struct pinentry): Add field ONE_BUTTON.
        * gtk/pinentry-gtk.c (create_window): Take care of new option.
        * gtk+-2/pinentry-gtk-2.c (create_window): Ditto.
        * pinentry/pinentry-curses.c (dialog_create): Ditto.
     (dialog_create, dialog_switch_pos): Allow CANCEL to be optional.

12 years ago2006-07-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 29 Jul 2006 00:10:45 +0000 (00:10 +0000)]
2006-07-29  Marcus Brinkmann  <marcus@g10code.de>

* secmem/secmem.c (init_pool): Close FD after establishing the
mapping.

13 years ago2005-09-28 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 28 Sep 2005 21:18:14 +0000 (21:18 +0000)]
2005-09-28  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (PINENTRY_GTK): Error out if iconv is not found but
needed.

13 years ago2005-09-28 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 28 Sep 2005 20:57:35 +0000 (20:57 +0000)]
2005-09-28  Marcus Brinkmann  <marcus@g10code.de>

* config.rpath: New file from gettext.  Needed by iconv.m4.

13 years ago2005-07-11 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 11 Jul 2005 21:52:25 +0000 (21:52 +0000)]
2005-07-11  Marcus Brinkmann  <marcus@g10code.de>

* pinentry/pinentry-curses.c (dialog_switch_pos): Set the cursor
state to invisible before moving around.  Move the cursor to the
beginning of the dialog buttons for accessibility.

13 years ago2005-06-16 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 16 Jun 2005 00:02:02 +0000 (00:02 +0000)]
2005-06-16  Marcus Brinkmann  <marcus@g10code.de>

* pinentry/pinentry-curses.c (dialog_run): Only convert pin if a
pin actually exists.

13 years agopost release updates
Werner Koch [Thu, 27 Jan 2005 08:15:59 +0000 (08:15 +0000)]
post release updates

13 years agoRemoved padlock-keyhole.xpm. pinentry-0-7-2
Werner Koch [Thu, 27 Jan 2005 08:07:35 +0000 (08:07 +0000)]
Removed padlock-keyhole.xpm.

13 years agoUse AC_GNU_SOURCE instead of the custom define.
Werner Koch [Thu, 27 Jan 2005 08:02:45 +0000 (08:02 +0000)]
Use AC_GNU_SOURCE instead of the custom define.
Prefer gtk2 pinentry over qt.

13 years ago2005-01-21 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 21 Jan 2005 19:47:06 +0000 (19:47 +0000)]
2005-01-21  Marcus Brinkmann  <marcus@g10code.de>

* doc/pinentry.texi: Fix spelling errors.
Submitted by Ville Skytt�.

13 years agoRemove the default texts for description,
Werner Koch [Thu, 23 Dec 2004 18:08:57 +0000 (18:08 +0000)]
Remove the default texts for description,
prompt and error.  Make it system modal.  Enlarge the description
field.

13 years ago2004-12-22 Timo Schulz <twoaday@g10code.com>
Timo Schulz [Wed, 22 Dec 2004 18:52:01 +0000 (18:52 +0000)]
2004-12-22  Timo Schulz  <twoaday@g10code.com>

        * w32/main.c: Remove all helper functions and use a callback
        to set the dialog items directly.
        (dlg_proc): Set 'result' to -1 to indicate cancel.
        (ok_button_clicked): Adjusted. Set 'result' to the len of
        the PIN to indicate success.

13 years ago2004-12-22 Timo Schulz <twoaday@g10code.com>
Timo Schulz [Wed, 22 Dec 2004 18:51:28 +0000 (18:51 +0000)]
2004-12-22  Timo Schulz  <twoaday@g10code.com>

        * w32/main.c: Remove all helper functions and use a callback
        to set the dialog items directly.
        (dlg_proc): Set 'result' to -1 to indicate cancel.
        (ok_button_clicked): Adjusted. Set 'result' to the len of
        the PIN to indicate success.

13 years ago* main.c: Simplified.
Werner Koch [Wed, 22 Dec 2004 14:32:45 +0000 (14:32 +0000)]
* main.c: Simplified.
* w32/dialog.h, w32/dialog.c, w32/controller.h, w32/controller.c:
Removed

* w32/resource.h, w32/pinentry-w32.rc, w32/main.c, w32/dialog.h
* w32/dialog.c, w32/controller.h, w32/controller.c
* w32/Makefile.am: New.  Based on Timo's work.

13 years agoNo need for that stuff
Werner Koch [Wed, 22 Dec 2004 13:11:01 +0000 (13:11 +0000)]
No need for that stuff

13 years ago* w32/resource.h, w32/pinentry-w32.rc, w32/main.c, w32/dialog.h
Werner Koch [Wed, 22 Dec 2004 13:10:08 +0000 (13:10 +0000)]
* w32/resource.h, w32/pinentry-w32.rc, w32/main.c, w32/dialog.h
* w32/dialog.c, w32/controller.h, w32/controller.c
* w32/Makefile.am: New.  Based on Timo's work.

13 years ago* assuan.h (assuan_error_t, assuan_context_t): New aliases.
Werner Koch [Wed, 22 Dec 2004 12:59:24 +0000 (12:59 +0000)]
* assuan.h (assuan_error_t, assuan_context_t): New aliases.
* assuan-buffer.c (readline): Renamed EOF to ISEOF to avoid
compiler warnings.

* gtk.m4, glib.m4, qt.m4: Fixed for automake 1.9

* autogen.sh (configure_ac): Add --build-w32 option.
* Makefile.am: Support for the W32 pinentry.
* configure.ac: Ditto.  Reformatted some error messages.
Define the usual conditionals for W32.
Check for a couple of more usually required headers.

* pinentry/pinentry.h (sleep) [W32]: New.

* pinentry/pinentry.c: Include langinfo.h only if available.
(pinentry_loop) [DOSISH]: Don't do uid check.

* secmem/util.c [DOSISH]: Disable UID stuff.

13 years ago2004-12-21 Timo Schulz <twoaday@g10code.com>
Timo Schulz [Wed, 22 Dec 2004 10:41:04 +0000 (10:41 +0000)]
2004-12-21  Timo Schulz  <twoaday@g10code.com>

        * pinentrycontroller.c: New.
        * pinentrydialog.c: New.
        * main.c: New.

14 years ago2004-09-27 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 27 Sep 2004 20:27:52 +0000 (20:27 +0000)]
2004-09-27  Marcus Brinkmann  <marcus@g10code.de>

* acinclude.m4 (IU_LIB_NCURSES, IU_LIB_CURSES, IU_LIB_TERMCAP):
Moved to m4/curses.m4.
(AM_ICONV): Moved to m4/iconv.m4.
(AM_PATH_GLIB): Moved to m4/glib.m4.
(QT_FIND_FILE, QT_PATH_MOC, QT_PATH_X, QT_PRINT_PROGRAM,
QT_CHECK_VERSION, QT_PATH_1_3, QT_PATH, QT_CHECK_COMPILER_FLAG,
QT_REMOVE_FORBIDDEN, QT_VALIDIFY_CXXFLAGS, QT_CHECK_COMPILERS,
QT_CHECK_RPATH, QT_CHECK_LIBPTHREAD, QT_CHECK_PTHREAD_OPTION,
QT_CHECK_THREADING): Move to m4/qt.m4.

m4/
2004-09-27  Marcus Brinkmann  <marcus@g10code.de>

* curses.m4, glib.m4, gtk.m4, iconv.m4, qt.m4: New files.

14 years agoAdd Gtk+2.0.
Marcus Brinkmann [Mon, 27 Sep 2004 18:20:25 +0000 (18:20 +0000)]
Add Gtk+2.0.

14 years ago2004-09-21 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 21 Sep 2004 18:58:02 +0000 (18:58 +0000)]
2004-09-21  Marcus Brinkmann  <marcus@g10code.de>

* qt/Makefile.am (pinentry_qt_LDFLAGS): Add $(QT_RPATH).
Requested by Leo Savernik <l.savernik@aon.at>.

14 years ago2004-09-02 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 2 Sep 2004 01:47:14 +0000 (01:47 +0000)]
2004-09-02  Marcus Brinkmann  <marcus@g10code.de>

* gtk+-2/padlock-keyhole.xpm: File removed.
* gtk+-2/pinentry-gtk-2.c (create_window): Use stock icon.
* gtk+-2/gtksecentry.h, gtk+-2/gtksecentry.c: Fix copyright notice.

Submitted by Albrecht Dress albrecht.dress@arcor.de.

14 years ago2004-08-17 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 17 Aug 2004 19:01:34 +0000 (19:01 +0000)]
2004-08-17  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Invoke AC_PROG_LN_S.
(PINENTRY_DEFAULT): New variable.  Substitute it.  Fail if no
default can be determined.
* Makefile.am (install-exec-local): Install pinentry default link.

14 years agoAdd info about GTK+-2 pinentry.
Marcus Brinkmann [Tue, 17 Aug 2004 18:32:53 +0000 (18:32 +0000)]
Add info about GTK+-2 pinentry.

14 years ago2004-08-17 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 17 Aug 2004 18:21:03 +0000 (18:21 +0000)]
2004-08-17  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Check for Gtk+-2.
* gtk+-2: New directory with gtk+-2 pinentry.
* gtk+-2/Makefile.am, gtk+-2/gtksecentry.h, gtk+-2/gtksecentry.c,
gtk+-2/pinentry-gtk-2.c, gtk+-2/padlock-keyhole.xpm: New files.
* Makefile.am (pinentry_gtk_2): New variable.
(SUBDIRS): Add pinentry_gtk_2.

Submitted by Albrecht Dress albrecht.dress@arcor.de.

14 years ago(usage): Print help to stdout.
Werner Koch [Wed, 4 Aug 2004 17:10:45 +0000 (17:10 +0000)]
(usage): Print help to stdout.

14 years ago2004-07-30 Moritz Schulte <moritz@g10code.com>
Moritz Schulte [Fri, 30 Jul 2004 11:33:50 +0000 (11:33 +0000)]
2004-07-30  Moritz Schulte  <moritz@g10code.com>

* qt/Makefile.am (ncurses_include): Removed
-I$(top_srcdir)/pinentry ...
(AM_CPPFLAGS): ... added: -I$(top_srcdir)/pinentry.  Thanks to
Peter Eisentraut.

* pinentry/pinentry.c (pinentry_utf8_to_local): Declare INPUT
const.
(pinentry_local_to_utf8): Likewise.
(pinentry_utf8_to_local, pinentry_local_to_utf8): Compile only, if
either Curses or GTK+ support is enabled.
* configure.ac: Do also check for libiconv when the GTK+ version
of pinentry is to be build.  Define PINENTRY_CURSES, PINENTRY_GTK,
PINENTRY_QT depending on which versions of pinentry should be
build.

14 years ago2004-05-21 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 21 May 2004 15:25:16 +0000 (15:25 +0000)]
2004-05-21  Marcus Brinkmann  <marcus@g10code.de>

* acinclude.m4 (QT_CHECK_DIRECT): Removed.
(QT_PATH_1_3): Do never invoke QT_CHECK_DIRECT.

14 years agobumbed version numbers
Werner Koch [Wed, 21 Apr 2004 19:27:26 +0000 (19:27 +0000)]
bumbed version numbers

14 years agoAbout to release 0.7.1 pinentry-0-7-1
Werner Koch [Wed, 21 Apr 2004 19:14:00 +0000 (19:14 +0000)]
About to release 0.7.1

14 years agoInclude util.h for some
Werner Koch [Tue, 20 Apr 2004 09:58:41 +0000 (09:58 +0000)]
Include util.h for some
typedefs and protos.
(secmem_free, secmem_term): Use wipememory2 instead of memset.

14 years agoAdd missing last LF.
Werner Koch [Tue, 20 Apr 2004 09:58:06 +0000 (09:58 +0000)]
Add missing last LF.

14 years ago(configure_ac): Fixed version check (s/==/=/).
Werner Koch [Tue, 20 Apr 2004 04:48:24 +0000 (04:48 +0000)]
(configure_ac): Fixed version check (s/==/=/).

14 years ago2004-01-30 Werner Koch <wk@gnupg.org>
Werner Koch [Tue, 20 Apr 2004 04:48:06 +0000 (04:48 +0000)]
2004-01-30  Werner Koch  <wk@gnupg.org>

* assuan-inquire.c, assuan-connect.c, assuan-client.c
* assuan-socket-server.c, assuan-pipe-connect.c
* assuan-socket-connect.c: Removed.
* assuan-handler.c (assuan_get_data_fp): Removed.

14 years ago2004-04-02 Thomas Schwinge <schwinge@nic-nac-project.de>
Marcus Brinkmann [Mon, 19 Apr 2004 14:13:27 +0000 (14:13 +0000)]
2004-04-02  Thomas Schwinge  <schwinge@nic-nac-project.de>

* autogen.sh: Added ACLOCAL_FLAGS.

14 years ago2004-02-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 23 Feb 2004 20:01:14 +0000 (20:01 +0000)]
2004-02-23  Marcus Brinkmann  <marcus@g10code.de>

* qt/main.cpp: Include "pinentry.h", not <pinentry.h>.

14 years ago2004-01-28 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Tue, 27 Jan 2004 23:11:32 +0000 (23:11 +0000)]
2004-01-28  Moritz Schulte  <mo@g10code.com>

* gtk/gtksecentry.c:
(gtk_secure_entry_key_press): Treat GDK_KP_Enter just like
GDK_Return.

14 years ago2004-01-18 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 18 Jan 2004 18:10:04 +0000 (18:10 +0000)]
2004-01-18  Marcus Brinkmann  <marcus@g10code.de>

* qt/secqstring.cpp: Do not include "private/qunicodetables_p.h".
(isRightToLeft): De-optimize direction query.

* qt/secqinternal_p.h, qt/secqinternal.cpp: New files.
* qt/Makefile.am (pinentry_qt_SOURCES): Add secqinternal_p.h
and secqinternal.cpp.
(EXTRA_DIST): Add README.SecQ.
* qt/secqlineedit.cpp: Include "secqinternal_p.h".
(drawContents): Use SecQSharedDoubleBuffer.

14 years agoEarly check for a c++ compiler.
Werner Koch [Fri, 2 Jan 2004 15:42:39 +0000 (15:42 +0000)]
Early check for a c++ compiler.

14 years agoPost-release version number bump. Typo fixes.
Werner Koch [Tue, 23 Dec 2003 09:24:56 +0000 (09:24 +0000)]
Post-release version number bump. Typo fixes.

14 years agoAbout to release 0.7.0. pinentry-0-7-0
Werner Koch [Tue, 23 Dec 2003 08:52:09 +0000 (08:52 +0000)]
About to release 0.7.0.

14 years agoAdded Manifest files to all directories.
Werner Koch [Tue, 23 Dec 2003 08:41:41 +0000 (08:41 +0000)]
Added Manifest files to all directories.

14 years ago* qt/main.cpp: Include errno.h.
Werner Koch [Mon, 22 Dec 2003 18:37:13 +0000 (18:37 +0000)]
* qt/main.cpp: Include errno.h.
(main): Translate the --display option to -display, so that the Qt
init codes can grasp it.
* pinentry/pinentry.c: Added comment.

14 years ago* doc/ChangeLog: Removed and merged with this file.
Werner Koch [Mon, 22 Dec 2003 17:01:08 +0000 (17:01 +0000)]
* doc/ChangeLog: Removed and merged with this file.
* doc/pinentry.texi: Cleaned up.
* doc/fdl.texi: Removed.

* pinentry/pinentry.c (pinentry_parse_opts): Make short options work.
(pinentry_utf8_to_local): Pass nl_langinfo to iconv_open.

14 years agoMerged with top level ChangeLog
Werner Koch [Mon, 22 Dec 2003 16:59:06 +0000 (16:59 +0000)]
Merged with top level ChangeLog

14 years agoTo be removed
Werner Koch [Mon, 22 Dec 2003 16:58:40 +0000 (16:58 +0000)]
To be removed

14 years ago* assuan.h (ASSUAN_Locale_Problem): Added.
Werner Koch [Mon, 22 Dec 2003 12:48:39 +0000 (12:48 +0000)]
* assuan.h (ASSUAN_Locale_Problem): Added.

* pinentry/pinentry.h (struct pinentry): Added LOCALE_ERR.
* gtk/pinentry-gtk.c (button_clicked): Set the LOCAE_ERR flag.
* pinentry/pinentry-curses.c (dialog_run): Ditto.
* pinentry/pinentry.c (cmd_getpin, cms_confirm): Check this flag.
(pinentry_local_to_utf8): Release the correct buffer in the error
case. Print diagnostics.
(pinentry_utf8_to_local): Print diagnostics.

* gtk/pinentry-gtk.c (button_clicked): Use the right value as
input for the conversion.

14 years ago* pinentry/pinentry.c: New variable THIS_PGMNAME.
Werner Koch [Mon, 22 Dec 2003 10:48:33 +0000 (10:48 +0000)]
* pinentry/pinentry.c: New variable THIS_PGMNAME.
(pinentry_init): Add arg PGMNAME and store it.  Use it at all
marked placed instead of the constant "pinentry".
(usage): Use it here too.
* curses/pinentry-curses.c (main): Call pinentry_init wity our name.
* qt/main.cpp (main): Ditto.
* gtk/pinentry-gtk.c (main): Ditto.

* configure.ac: Check for mmap.

* secmem/util.h (wipememory2,wipememory,wipe): New.
* secmem/util.c (wipe): Removed.
* secmem/util.c (lower_privs, raise_privs): Commented out.

* pinentry/pinentry.c (pinentry_loop): Add paranoia check for
dropped privs.

* secmem/secmem.c (lock_pool): Cleanup syntax of cpp directives.

* gtk/pinentry-gtk.c (main): Print package name in the version line.
* curses/pinentry-curses.c (main): Ditto.
* qt/main.cpp (main): Ditto. Fixed typo.

* gtk/pinentry-gtk.c: Include memory.h.

14 years ago2003-12-20 Marcus Brinkmann <marcus@g10code.de> marcus-after-qt-rewrite
Marcus Brinkmann [Fri, 19 Dec 2003 23:28:11 +0000 (23:28 +0000)]
2003-12-20  Marcus Brinkmann  <marcus@g10code.de>

* pinentry/pinentry.h (struct pinentry): New member PARENT_WID.
* pinentry/pinentry.c (pinentry): Add new member here.
(usage): Add --parent-wid.
(pinentry_parse_opts): Add case for "parent-wid".
(option_handler): Same here.

2003-12-19  Marcus Brinkmann  <marcus@g10code.de>

* pinentry/pinentry.c (cmd_setcancel): Use strcpy_escaped.
(cmd_setok): Likewise.
(cmd_setprompt): Likewise.
(pinentry_utf8_to_local): Don't use
nl_langinfo, but just lc_ctype directly.
* pinentry/pinentry.c (cmd_getpin): Do not convert passphrase to
UTF-8 here.
* gtk/pinentry-gtk.c (button_clicked): Convert passphrase to UTF8
here.
* pinentry/pinentry-curses.c (dialog_run): Likewise.

2003-12-14  Marcus Brinkmann  <marcus@g10code.de>

* pinentry/pinentry.c (pinentry_init): Register secmem_term as
atexit function.  Set assuan malloc hooks to secmem.
(pinentry_parse_opts): Add break statement to silence gcc warning.
* pinentry/pinentry.c (cmd_getpin): If canceled, release and clear
PINENTRY->pin nevertheless.

* acinclude.m4 (qt_incdirs): Add /usr/include/qt3.
* qt/Makefile.am (pinentry_qt_SOURCES): Remove cppmemory.h,
cppmemory.cpp, pinentrycontroller.h, pinentrycontroller.cpp.
(nodist_pinentry_qt_SOURCES): Remove pinentrycontroller.moc.cpp.
(libcurses): Move ../pinentry/libpinentry.a from here to ...
(pinentry_qt_LDADD): ... here.  Change order a bit to make it
work.
* qt/cppmemory.h, qt/cppmemory.cpp, qt/pinentrycontroller.h,
qt/pinentrycontroller.cpp: Files removed.
* qt/secqstring.h, qt/secqstring.cpp, secqlineedit.h,
secqlineedit.cpp: New files.
* qt/Makefile.am (pinentry_qt_SOURCES): Add secqstring.h,
secqstring.cpp, secqlineedit.h, and secqlineedit.cpp.
(nodist_pinentry_qt_SOURCES): Add secqlineedit.moc.cpp.
* qt/main.cpp: Do not include "memory.h" or "secmem-util.h", nor
<new> or "pinentrycontroller.h".  Include <qapplication.h>,
<qmessagebox.h>, <qwidget.h> and "secqstring.h".  Always include
<pinentry.h>.
[USE_KDE]: Remove all instances.
(curses_main): Function removed.
(my_new_handler): Likewise.
(qt_main): Likewise.
(qt_cmd_handler): New function.
(pinentry_cmd_handler): Define always (to qt_cmd_handler).
(main): Rewritten.
* qt/pinentrydialog.cpp: Do not include <qlineedit.h>, but
"secqlineedit.h".
(PinEntryDialog::PinEntryDialog): Make _edit a SecQLineEdit
object.  Connect accepted SIGNAL to accept SLOT, and rejected
SIGNAL to reject SLOT.
(PinEntryDialog::setText): Make argument SecQString rather than
QString.
(PinEntryDialog::text): Likewise for return value.
* qt/pinentrydialog.h: Declare SecQString and SecQLineEdit classes.
(class PinEntryDialog): Disable property text (for now).  Adjust
argument of setText and return value of text, as well as type of
_edit.

14 years agoAdd note about a heartbeat marcus-before-qt-rewrite
Werner Koch [Tue, 16 Dec 2003 16:53:46 +0000 (16:53 +0000)]
Add note about a heartbeat

15 years agoWe want to keep these files in the CVS repository
Werner Koch [Tue, 9 Dec 2003 09:51:31 +0000 (09:51 +0000)]
We want to keep these files in the CVS repository

15 years ago* README.CVS: New.
Werner Koch [Tue, 9 Dec 2003 09:47:27 +0000 (09:47 +0000)]
* README.CVS: New.
* Makefile.am (EXTRA_DIST): Add README.CVS
(ACLOCAL_AMFLAGS): New.

15 years agoOur standard autogen.sh requires the m4 directory
Werner Koch [Tue, 9 Dec 2003 09:45:59 +0000 (09:45 +0000)]
Our standard autogen.sh requires the m4 directory

15 years ago* configure.ac: Added min_automake_versions.
Werner Koch [Tue, 9 Dec 2003 09:44:39 +0000 (09:44 +0000)]
* configure.ac: Added min_automake_versions.
* autogen.sh: Revamped.

15 years agoupped version to 0.6.10-cvs
Steffen Hansen [Tue, 22 Apr 2003 23:44:38 +0000 (23:44 +0000)]
upped version to 0.6.10-cvs

15 years agoprepare for release
Steffen Hansen [Tue, 22 Apr 2003 23:24:59 +0000 (23:24 +0000)]
prepare for release

15 years agosave locked memory by only overriding array allocation operators -- that should be...
Steffen Hansen [Wed, 26 Mar 2003 02:59:10 +0000 (02:59 +0000)]
save locked memory by only overriding array allocation operators -- that should be enough, since QString only uses new[] for allocating string data

15 years agoDisplay icons for error/non-error texts
Steffen Hansen [Sat, 15 Feb 2003 22:01:14 +0000 (22:01 +0000)]
Display icons for error/non-error texts

15 years agoBump up the version number.
Marcus Brinkmann [Fri, 7 Feb 2003 17:56:10 +0000 (17:56 +0000)]
Bump up the version number.

15 years ago2003-02-07 Marcus Brinkmann <marcus@g10code.de> pinentry-0-6-8
Marcus Brinkmann [Fri, 7 Feb 2003 17:29:45 +0000 (17:29 +0000)]
2003-02-07  Marcus Brinkmann  <marcus@g10code.de>

Released 0.6.8.

15 years agoChangeLog
Steffen Hansen [Tue, 4 Feb 2003 14:33:38 +0000 (14:33 +0000)]
ChangeLog

15 years ago* autogen.sh: Print a hint to use maintainer mode.
Werner Koch [Fri, 24 Jan 2003 13:35:24 +0000 (13:35 +0000)]
* autogen.sh: Print a hint to use maintainer mode.

15 years agowork around --display option. This fixes the pinentry-qt problem reported by several...
Steffen Hansen [Tue, 21 Jan 2003 12:25:59 +0000 (12:25 +0000)]
work around --display option. This fixes the pinentry-qt problem reported by several people

15 years ago.
Marcus Brinkmann [Tue, 24 Dec 2002 02:45:00 +0000 (02:45 +0000)]
.

15 years ago2002-12-24 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 24 Dec 2002 02:44:50 +0000 (02:44 +0000)]
2002-12-24  Marcus Brinkmann  <marcus@g10code.de>

* pinentry/pinentry-curses.c (collect_line): New function.
(COPY_OUT, MAKE_BUTTON): New macros.
(dialog_create): Rewrite the initializing code and the description
calculation routine with word wrapping.

16 years agopost release version number change
Werner Koch [Wed, 20 Nov 2002 12:47:39 +0000 (12:47 +0000)]
post release version number change

16 years ago* pinentry/pinentry-curses.c (dialog_create): Better truncate pinentry-0-6-7
Werner Koch [Wed, 20 Nov 2002 12:35:00 +0000 (12:35 +0000)]
* pinentry/pinentry-curses.c (dialog_create): Better truncate
lines than to go into an infinite loop.  We need to implement word
wrap.
(dialog_run): Add DIALOG_POS_NONE to switch so prevent a warning.

16 years ago* config.sub, config.guess: Updated from ftp.gnu.org/gnu/config
Werner Koch [Tue, 12 Nov 2002 19:32:32 +0000 (19:32 +0000)]
* config.sub, config.guess: Updated from ftp.gnu.org/gnu/config
to version 2002-11-08.

16 years agopost release version number bump
Werner Koch [Sat, 9 Nov 2002 18:14:23 +0000 (18:14 +0000)]
post release version number bump

16 years agoAbout to release 0.6.6 pinentry-0-6-6
Werner Koch [Sat, 9 Nov 2002 17:52:00 +0000 (17:52 +0000)]
About to release 0.6.6

16 years ago* pinentry/pinentry-curses.c (convert_utf8_string): Renamed to
Werner Koch [Fri, 8 Nov 2002 19:54:49 +0000 (19:54 +0000)]
* pinentry/pinentry-curses.c (convert_utf8_string): Renamed to
* pinentry/pinentry.c (pinentry_utf8_to_local): this. Changed
callers.
(pinentry_local_to_utf8): New.
(cmd_getpin): Convert result back to UTF-8.
* gtk/pinentry-gtk.c (create_utf8_label): New.
(create_window): Use it here to set the prompts.

16 years ago* secmem/util.c (init_uids): Make it a prototype.
Werner Koch [Tue, 5 Nov 2002 19:44:36 +0000 (19:44 +0000)]
* secmem/util.c (init_uids): Make it a prototype.

* gtk/pinentry-gtk.c (enter_callback): Changed argument name to
avoid shadowing warning.
(create_window): Removed unused variable I.
(ok): Not used, commented.

* pinentry/pinentry.c: Include headers for getpid and sleep
prototypes.

* secmem/util.h: Correctly declare functions taking no args.

* gtk/pinentry-gtk.c: Move gtk headers to the top to avoid
compiler warnings about shadowing index etc.

* curses/pinentry-curses.c: Include stdio.h for the printf prototype.

* pinentry/pinentry-curses.c (dialog_switch_pos): Return a value.

* pinentry/pinentry.c (pinentry_have_display): New.
(pinentry_setbufferlen): Must return a value. Fixed documentation.
(usage): Print a question mark as a substitue for the program name.

* gtk/pinentry-gtk.c (main): use it here instead of getenv().
* qt/main.cpp (main): Ditto.

16 years ago* pinentry.texi, Makefile.am: New.
Werner Koch [Fri, 11 Oct 2002 14:33:34 +0000 (14:33 +0000)]
* pinentry.texi, Makefile.am: New.
* gpl.texi, fdl.texi: Added these standard files.

16 years ago* configure.ac, Makefile.am: Added doc/ and tests for makeinfo
Werner Koch [Fri, 11 Oct 2002 14:33:12 +0000 (14:33 +0000)]
* configure.ac, Makefile.am: Added doc/ and tests for makeinfo

16 years agoBumped version number and appended "-cvs" suffix
Werner Koch [Mon, 30 Sep 2002 09:54:43 +0000 (09:54 +0000)]
Bumped version number and appended "-cvs" suffix

16 years agoTest for compiler flags after checking for compiler. pinentry-0-6-5
Werner Koch [Mon, 30 Sep 2002 09:50:44 +0000 (09:50 +0000)]
Test for compiler flags after checking for compiler.

16 years ago* qt/pinentrycontroller.cpp (optionHandler): Make sure that a
Werner Koch [Mon, 30 Sep 2002 09:27:10 +0000 (09:27 +0000)]
* qt/pinentrycontroller.cpp (optionHandler): Make sure that a
value is returned.
* configure.ac: Use -Wall also for C++.