- 18 Mar, 2015 4 commits
-
-
Werner Koch authored
-
Werner Koch authored
* pinentry/pinentry.c: Do not include getopt.h. * pinentry/pinentry-curses.c (dialog_run): Call use_default_colors only with ncurses.
-
Werner Koch authored
-
Werner Koch authored
--
-
- 17 Mar, 2015 2 commits
-
-
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:Werner Koch <wk@gnupg.org>
-
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:Werner Koch <wk@gnupg.org>
-
- 15 Dec, 2014 2 commits
-
-
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 -
Andre Heinecke authored
* doc/gpl.texi: Use version from gcrypt. -- This fixes build errors with texinfo 5.2
-
- 09 Dec, 2014 1 commit
-
-
Vicente Olivert Riera authored
Check if the Qt libraries have support for QT Accessibility before using it. Otherwise it will raise error like these one: main.cpp: In function 'int qt_cmd_handler(pinentry_t)': main.cpp:220:51: error: 'class QAbstractButton' has no member named 'setAccessibleDescription' Signed-off-by:Vicente Olivert Riera <Vincent.Riera@imgtec.com>
-
- 26 Oct, 2014 6 commits
-
-
Werner Koch authored
--
-
Werner Koch authored
-
Werner Koch authored
* gtk+-2/gtksecentry.c (gtk_secure_entry_class_init): Disable paste key bindings.
-
Werner Koch authored
* configure.ac: Remove old qt and gtk+-1 support. * Makefile.am: Ditto.
-
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
-
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.
-
- 24 Oct, 2014 3 commits
-
-
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.
-
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.
-
Werner Koch authored
* pinentry/pinentry.c (cmd_setrepeat): New. (cmd_setrepeaterror): New. (register_commands): Add new commands. (cmd_getpin): Print "PIN_REPEATED" status.
-
- 18 Sep, 2014 4 commits
-
-
Werner Koch authored
--
-
Werner Koch authored
-
Werner Koch authored
-
Werner Koch authored
* autogen.rc: New. * autogen.sh: New. Take from GnuPG. * Makefile.am (EXTRA_DIST): Add autogen.rc. (DISTCHECK_CONFIGURE_FLAGS): Disable qt4.
-
- 12 Aug, 2014 2 commits
-
-
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.
-
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)
-
- 06 Aug, 2014 3 commits
-
-
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.
-
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. -
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.
-
- 30 Jul, 2014 1 commit
-
-
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.
-
- 15 Apr, 2014 1 commit
-
-
Werner Koch authored
--
-
- 15 Jul, 2013 4 commits
-
-
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 -
Andre Heinecke authored
* qt4/qsecurelineedit.cpp (insert): Check for a maximum length before allocation the secmem string. -
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 -
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.
-
- 12 Jul, 2013 1 commit
-
-
Werner Koch authored
* qt4/Makefile.am: Make correct use of BUILT_SOURCES. -- This also remove some GNU make specific hacks.
-
- 29 May, 2013 2 commits
-
-
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. -
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.
-
- 26 Apr, 2013 4 commits
-
-
Werner Koch authored
--
-
Werner Koch authored
-
Andre Heinecke authored
* autogen.sh <build-w32>: Insert i686-w64-mingw32. * configure.ac: Pretty print final info.
-
Andre Heinecke authored
* w32/main.c (lock_set_foreground_window): Remove WINUSERAPI qualifier. -- WINUSERAPI is expanded to dllimport which is not what we want if we load the symbol at runtime. This produces an error with mingw-w64 4.6.3-14+8 (backport from a gpg4win patch)
-