Check-in [20ddc71853]
Overview
Comment:Added start of script to ask for PIN via X11
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | protected-auth-path
Files: files | file ages | folders
SHA1:20ddc7185337fda22e3fa83915645157c62a1c5f
User & Date: rkeene on 2013-08-14 04:15:54
Other Links: manifest | tags
Context
2013-08-14
04:16
Added return value printing for C_Login() and removed requirement that PIN not be provided if using protected authentication path (some tools provide it anyway) check-in: a68e222d00 user: rkeene tags: protected-auth-path
04:15
Added start of script to ask for PIN via X11 check-in: 20ddc71853 user: rkeene tags: protected-auth-path
03:55
Updated to allow the Protected Authentication Path to be set only if an X server display is available check-in: b6ea2dbe0a user: rkeene tags: protected-auth-path
Changes

Added build/ask-pass/cackey-askpass version [5c6636f8ba].

            1  +#! /usr/bin/env bash
            2  +
            3  +ZENITY="$(which 'zenity' 2>/dev/null)"
            4  +GDIALOG="$(which 'gdialog' 2>/dev/null)"
            5  +ASKPASS="$(which 'ssh-askpass' 'x11-ssh-askpass' '/usr/libexec/x11-ssh-askpass' 2>/dev/null | head -n 1)"
            6  +DIALOG="$(which 'dialog' 2>/dev/null)"
            7  +XTERM="$(which 'xterm' 2>/dev/null)"
            8  +
            9  +if [ -x "${ZENITY}" ]; then
           10  +	# XXX: TODO: Zenity
           11  +	true
           12  +fi
           13  +
           14  +if [ -x "${GDIALOG}" ]; then
           15  +	# XXX: TODO: Gdialog
           16  +	true
           17  +fi
           18  +
           19  +if [ -x "${ASKPASS}" ]; then
           20  +	exec "${ASKPASS}" "$@"
           21  +	exit 1
           22  +fi
           23  +
           24  +if [ -x "${DIALOG}" -a -x "${XTERM}" ]; then
           25  +	# XXX: TODO: dialog
           26  +	true
           27  +fi
           28  +
           29  +if [ -x "${XTERM}" ]; then
           30  +	# XXX: TODO: xterm
           31  +	true
           32  +fi
           33  +
           34  +exit 1