1. 26 Oct, 2014 5 commits
    • Werner Koch's avatar
      Release 0.9.0 · 8943bc86
      Werner Koch authored
      8943bc86
    • Werner Koch's avatar
      gtk: Aboid segv for opaste keys. · 821dc21a
      Werner Koch authored
      * gtk+-2/gtksecentry.c (gtk_secure_entry_class_init): Disable paste
      key bindings.
      821dc21a
    • Werner Koch's avatar
      Remove support form QT3 and GTK+-1. · f2ed4229
      Werner Koch authored
      * configure.ac: Remove old qt and gtk+-1 support.
      * Makefile.am: Ditto.
      f2ed4229
    • Stanislav Ochotnicky's avatar
      Check if we are on tty before initializing curses. · 3803fd15
      Stanislav Ochotnicky authored
      * pinentry/pinentry-curses.c (dialog_run): Check stant stdin and stout
      are connected to ttys.
      
      --
      
      When we did not have a ttyname we just used stdin/out without checking
      if it's a proper TTY or a pipe. In some cases this can cause endless
      loop or escape seqeunces on the terminal.
      
      This commit changes behaviour so that if stdin/out is not tty and no
      ttyname is specified we error-out with errno set to ENOTTY
      3803fd15
    • Werner Koch's avatar
      gtk: Allow pasting using the mouse. · 4f4af905
      Werner Koch authored
      * gtk+-2/gtksecentry.h (_GtkSecureEntry): Add fields insert_pos,
      real_changed, cand change_count.
      (_GtkSecureEntryClass): Add field paste_clipboard.
      * gtk+-2/gtksecentry.c (PASTE_CLIPBOARD): New.
      (gtk_secure_entry_class_init): Set paste_clipboard and create
      paste-clipboard signal.
      (gtk_secure_entry_button_press): Call gtk_secure_entry_pase.
      (begin_change, end_change, emit_changed): New.
      (gtk_secure_entry_real_insert_text): Use emit_changed.
      (gtk_secure_entry_real_delete_text): Ditto.
      (paste_received, gtk_secure_entry_paste)
      (gtk_secure_entry_paste_clipboard): New.
      --
      
      The new code as been taken from gtk 2.20.1.
      
      I have not figured out why the keybindings for C-v and s-Insert do not
      work.
      4f4af905
  2. 24 Oct, 2014 3 commits
    • Werner Koch's avatar
      gtk+-2: Make current focus visible again. · 2ef788fb
      Werner Koch authored
      * gtk+-2/pinentry-gtk-2.c (grab_keyboard): Return false
      (ungrab_keyboard): Ditto.
      --
      
      Probably due to a change in GTK+ the grab handler now need to return a
      flag wether to call the other event handler.  Without that the focus
      was not visible.
      2ef788fb
    • Werner Koch's avatar
      gtk+-2: Implement the SETREPEAT command. · e483abb8
      Werner Koch authored
      * gtk+-2/pinentry-gtk-2.c (repeat_entry, error_label): New.
      (button_clicked): Implement repeat check.
      (changed_text_handler): Clear repeat field.
      (create_window): Add repeat entry.
      e483abb8
    • Werner Koch's avatar
      Add commands to allow implementing a "repeat passphrase" field. · 9f78f070
      Werner Koch authored
      * pinentry/pinentry.c (cmd_setrepeat): New.
      (cmd_setrepeaterror): New.
      (register_commands): Add new commands.
      (cmd_getpin): Print "PIN_REPEATED" status.
      9f78f070
  3. 18 Sep, 2014 4 commits
  4. 12 Aug, 2014 2 commits
    • Werner Koch's avatar
      common: Fix compiler warning. · 88859160
      Werner Koch authored
      * pinentry/pinentry.c (pinentry_utf8_to_local): Use cast for iconv arg.
      (pinentry_local_to_utf8): Ditto.
      --
      
      There are a couple of other warnings.  They still need to be fixed.
      88859160
    • Werner Koch's avatar
      New pinentry-tty version for dumb terminals. · 12369b15
      Werner Koch authored
      * Makefile.am: Add pinentry-tty.
      * NEWS: Add news about pinentry-tty.
      * README: Update.
      * configure.ac: Add support for this pinentry.
      * tty/Makefile.am: New.
      * tty/pinentry-tty.c: New.
      --
      
      (Minor changes and re-indention by wk)
      12369b15
  5. 06 Aug, 2014 3 commits
    • Andre Heinecke's avatar
      Check for MOC also if pinentry-qt is disabled · 52cf95c4
      Andre Heinecke authored
        * configure.ac: Call QT_PATH_MOC if pinentry_qt4 is not no.
      
      --
        Previously the MOC lookup from m4/qt.m4 would only be called
        if pinentry-qt was at least maybe. The MOC variable defined by
        this macro is also used in pinentry-qt4 though.
      52cf95c4
    • Andre Heinecke's avatar
      Add fallbacks for SetForegroundWindow · f4d14ffc
      Andre Heinecke authored
          If that foreground window fails pinentry-qt now tries to
          attach to the current foreground process and then tries
          to set the foreground window again. If that fails it also
          calls ShowWindow as a last resort.
      
          * qt4/pinentrydialog.cpp (raiseWindow): Add fallbacks in
          case SetForegroundWindow fails.
      f4d14ffc
    • Andre Heinecke's avatar
      Use raiseWindow also for confirm dialogs · 47476d2f
      Andre Heinecke authored
          This should fix the case that the dialog opened
          in the foreground but a warning / confirm dialog
          opened in the background.
      
          * qt4/pinentryconfirm.cpp, qt4/pinentryconfirm.h (showEvent):
          New overwrite base class method to call raiseWindow.
          * NEWS: Mention this.
      47476d2f
  6. 30 Jul, 2014 1 commit
    • Andre Heinecke's avatar
      Set some accessibility information · 41d04602
      Andre Heinecke authored
          * qt4/main.cpp (qt_cmd_handler): Build buttons with accessibile
          Description.
          * qt4/pinentrydialog.cpp (setDescription, setError, setOkText)
          (setCancelText, setQualityBar): Set an accessible description.
          * qt4/pinentryconfirm.cpp (PinentryConfirm): Set message
          box contents also as accessible values.
          * NEWS: Mention it and the copy/paste change from last year.
      41d04602
  7. 15 Apr, 2014 1 commit
  8. 15 Jul, 2013 4 commits
    • Andre Heinecke's avatar
      Lower paste length limit to 300 · 556d305b
      Andre Heinecke authored
          This should be more then enough and avoids possible problems
          with libassuan cmd line lenght or percent escaping etc.
      
          * qt4/qsecurelineedit.cpp (insert): Lower paste limit
      556d305b
    • Andre Heinecke's avatar
      Limit paste length to 1023 characters · 9b154c9f
      Andre Heinecke authored
          * qt4/qsecurelineedit.cpp (insert): Check for a maximum
          length before allocation the secmem string.
      9b154c9f
    • Andre Heinecke's avatar
      Fix contextmenu support for pasting. · 4d56651d
      Andre Heinecke authored
          MOC ignores preprocessor definitions so we can not conditionally
          declare SLOTS. So we now move the ifdefs in the definition and
          always declare the SLOTS.
      
          * qt4/qsecurelinedit.cpp (cut, copy, paste): Do nothing if
          QT_NO_CLIPBOARD is defined.
          * qt4/qsecurelinedit.h: Always declare cut, copy and paste slots
      4d56651d
    • Andre Heinecke's avatar
      Remove check for RTL extensions · d4feabe1
      Andre Heinecke authored
          Our code does nothing RTL specific there anyway. And the
          qt_use_rtl_extensions symbol has been removed.
      
          * qt4/qsecurelinedit.cpp: Remove check for RTL extensions.
      d4feabe1
  9. 12 Jul, 2013 1 commit
  10. 29 May, 2013 2 commits
    • Andre Heinecke's avatar
      Add pinentry-qt4-clipboard option · 0b3a8568
      Andre Heinecke authored
          Enabling this option will make it possible to paste a
          passphrase into pinentry-qt4. This defeats the secmem
          mechanism but drastically increases usability for some
          users.
      
          * configure.ac: New option pinentry-qt4-clipboard.
          * qt4/qsecurelineedit.cpp, qt4/qsecurelineedit.h: Activate
          clipboard and context menu if PINENTRY_QT4_CLIPBOARD is defined.
      0b3a8568
    • Andre Heinecke's avatar
      Remove qt4 moc files and add moc to buildsystem · fb38be96
      Andre Heinecke authored
          This is neccessary to conditionally enable signals/slots
          at build time.
      
          * qt4/Makefile.am: Moc files automatically.
          * qt4/pinentryconfirm.moc, qt4/pinentrydialog.moc,
          qsecurelineedit.moc: Removed.
      
      --
          While this removes the hard version requirement to Qt 4.8.2
          caused by the old generated files it breaks the possibillity
          to compile pinentry-qt and pinentry-qt4 in one go as the MOC
          variable is only set once either the qt4 variant or the qt3
          variant will be broken. At least there is a decent
          error message in that case.
      fb38be96
  11. 26 Apr, 2013 5 commits
  12. 04 Mar, 2013 1 commit
  13. 16 Feb, 2013 1 commit
  14. 14 Feb, 2013 3 commits
  15. 05 Jan, 2013 1 commit
  16. 08 Aug, 2012 3 commits