1. 13 May, 2015 1 commit
  2. 11 May, 2015 6 commits
  3. 07 May, 2015 6 commits
    • Neal H. Walfield's avatar
      Don't use asprintf. · 1a8af55b
      Neal H. Walfield authored
      * pinentry/password-cache.c (keygrip_to_label): Don't use asprintf.
      1a8af55b
    • Neal H. Walfield's avatar
      Improve documentation. · 09203147
      Neal H. Walfield authored
      * doc/pinentry.texi: Improve description of SETKEYINFO's format.
      09203147
    • Neal H. Walfield's avatar
      Minor documentation cleanups. · 3a8daef8
      Neal H. Walfield authored
      3a8daef8
    • Neal H. Walfield's avatar
      Add support for saving the passphrase with libsecret. · c6eaa7bf
      Neal H. Walfield authored
      * configure.ac (COMMON_CFLAGS): New variable.  AC_SUBST it.
      (COMMON_LIBS): Likewise.  AC_SUBST it.
      (LIBSECRET_CFLAGS): Likewise.
      (LIBSECRET_LIBS): Likewise.
      (--enable-libsecret): Add option to enable support for libsecret.  If
      enabled, check for its presense.
      * pinentry/password-cache.h: New field.
      * pinentry/password-cache.c: New field.
      * pinentry/pinentry.h (struct pinentry): Add fields pin_from_cache,
      allow_external_password_cache, tried_password_cache, keyinfo, and
      may_cache_password.
      * pinentry/pinentry.c: Include "password-cache.h".
      (pinentry): Initialize new fields.
      (option_handler): Handle the "allow-external-password-cache" option.
      (cmd_setkeyinfo): Implement it.
      (cmd_getpin): Read the password from the cache, if appropriate.  Save
      it to the cache, if appropriate.
      * pinentry/Makefile.am (AM_CPPFLAGS): Add $(COMMON_CFLAGS).
      (LDADD): Add $(COMMON_LIBS).
      (libpinentry_a_SOURCES): Add password-cache.h
      password-cache.c.
      * gtk+-2/pinentry-gtk-2.c (may_save_passphrase_toggled): New function.
      (create_window): Take additional parameter, the pinentry's context.
      Update callers.
      [HAVE_LIBSECRET]: Show a checkbox asking whether the passphrase should
      be saved.
      * gtk+-2/Makefile.am (AM_CPPFLAGS): Add $(COMMON_CFLAGS).
      (LDADD): Add $(COMMON_LIBS).
      * curses/Makefile.am (AM_CPPFLAGS): Add $(COMMON_CFLAGS).
      (LDADD): Add $(COMMON_LIBS).
      * tty/Makefile.am (AM_CPPFLAGS): Add $(COMMON_CFLAGS).
      (LDADD): Add $(COMMON_LIBS).
      * doc/pinentry.texi (Protocol): Update documentation.  Describe the
      protocol and provide some justification.
      c6eaa7bf
    • Werner Koch's avatar
      w32: Do not build gtk pinentry by default. · aa98f25d
      Werner Koch authored
      * autogen.rc: Remove obsolete options.
      aa98f25d
    • Neal H. Walfield's avatar
      Align secmem_realloc behavior with realloc's. · aaec7c7c
      Neal H. Walfield authored
      * secmem/secmem.c (secmem_realloc): If passed a NULL pointer, then
      call secmem_malloc instead of crashing.
      aaec7c7c
  4. 05 May, 2015 3 commits
    • Werner Koch's avatar
      w32: Minor changes to the dialog. · cbecc6d3
      Werner Koch authored
      * w32/main.c (set_bitmap): New.
      (dlg_proc): Show error prompt in red.
      * w32/pinentry-w32.rc: Add icons and chnage dialog.
      * w32/logo-128.bmp: New.
      * w32/logo-32.bmp: New.
      * w32/logo-48.bmp: New.
      * w32/logo-64.bmp: New.
      * w32/logo-96.bmp: New.
      
      --
      
      The logos need some manual tweaking.  Due to the scaling a gradient is
      used for the circle and Windows shows white ugly white spots.  This
      can be avoided by using a a palette with less colors but I found no
      easy way to do that in gimp.  When using less than 256 index the
      transparency feature does not work correctly.
      cbecc6d3
    • Werner Koch's avatar
      Remove the Manifest files · da9ec719
      Werner Koch authored
      --
      
      These files are not in use for more than a decade.  Their indented
      purpose was to sign source files.  With GIT we have a way better
      system to detect tampering of the source.
      da9ec719
    • Werner Koch's avatar
      pinentry-tty: Fix problem with zero length prompt. · a616bd9d
      Werner Koch authored
      * tty/pinentry-tty.c (read_password): Use default prompt also for an
      empty prompt argument.
      --
      
      strlen(prompt)-1 is used thus we need to make sure that
      the length is > 0.
      a616bd9d
  5. 01 May, 2015 8 commits
  6. 16 Apr, 2015 1 commit
    • Yuri D'Elia's avatar
      gtk: Make Escape key work. · 9d2d8b6b
      Yuri D'Elia authored
      * gtk+-2/pinentry-gtk-2.c: Include gdk/gdkkeysyms.h.
      (enter_callback): Pass confirm_value_t to button_clicked.
      (confirm_button_clicked): Use confirm_value_t cast.
      (cancel_callback): New.
      (create_window): Add accelerator for the Escape key.
      --
      
      GnuPG-bug-id: 1453
      
      Original patch slighty modified by wk.
      9d2d8b6b
  7. 14 Apr, 2015 1 commit
  8. 13 Apr, 2015 1 commit
  9. 18 Mar, 2015 5 commits
  10. 17 Mar, 2015 2 commits
    • Werner Koch's avatar
      Get rid of getopt_long and improve --help output. · 2f7b275b
      Werner Koch authored
      
      
      * pinentry/argparse.c, pinentry/argparse.h: New. Taken from GnuPG
      master.
      * pinentry/Makefile.am (libpinentry_a_SOURCES): Add them.
      * pinentry/pinentry.c: Include argparse.h.
      (usage): Remove.
      (my_strusage): New.
      (pinentry_parse_opts): Rewrite.  Do not return a value.  Change call
      callers.
      --
      
      getopt_long is not generally available, for example it is missing on
      AIX.  Instead of adding replacement code we use the option parser
      from GnuPG and thus also gain a better --version and --help.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      2f7b275b
    • Werner Koch's avatar
      Use CH type instead of wchar_t for curses. · 8fa3ca90
      Werner Koch authored
      
      
      * pinentry/pinentry-curses.c (collect_line): Change second arg to CH.
      * pinentry/pinentry.c (pinentry_utf8_to_local): Make args const.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      8fa3ca90
  11. 15 Dec, 2014 2 commits
    • Andre Heinecke's avatar
      qt4: Improve moc handling · bb423620
      Andre Heinecke authored
          * configure.ac: Disable pinentry-qt4 or exit if moc not found.
          * m4/qt.m4: Look for and prefer moc-qt4.
          * qt4/Makefile.am: Add moc files to nodist and clean them.
      
      --
      
          Files generated by MOC vary over the used Qt versions
          (even inside a Major release). Distributing them leads to
          errors if a different qt version is installed.
      
          GnuPG-bug-id: 1784
      bb423620
    • Andre Heinecke's avatar
      doc: Update gpl.texi to match version from gcrypt · c9116577
      Andre Heinecke authored
          * doc/gpl.texi: Use version from gcrypt.
      
      --
         This fixes build errors with texinfo 5.2
      c9116577
  12. 09 Dec, 2014 1 commit
  13. 06 Nov, 2014 3 commits