xref: /onnv-gate/usr/src/cmd/ssh/etc/ssh-askpass (revision 8835:c8a77ec71b63)
1*8835SDarren.Moffat@Sun.COM#! /usr/bin/ksh
2*8835SDarren.Moffat@Sun.COM#
3*8835SDarren.Moffat@Sun.COM# CDDL HEADER START
4*8835SDarren.Moffat@Sun.COM#
5*8835SDarren.Moffat@Sun.COM# The contents of this file are subject to the terms of the
6*8835SDarren.Moffat@Sun.COM# Common Development and Distribution License (the "License").
7*8835SDarren.Moffat@Sun.COM# You may not use this file except in compliance with the License.
8*8835SDarren.Moffat@Sun.COM#
9*8835SDarren.Moffat@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*8835SDarren.Moffat@Sun.COM# or http://www.opensolaris.org/os/licensing.
11*8835SDarren.Moffat@Sun.COM# See the License for the specific language governing permissions
12*8835SDarren.Moffat@Sun.COM# and limitations under the License.
13*8835SDarren.Moffat@Sun.COM#
14*8835SDarren.Moffat@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
15*8835SDarren.Moffat@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*8835SDarren.Moffat@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
17*8835SDarren.Moffat@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
18*8835SDarren.Moffat@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
19*8835SDarren.Moffat@Sun.COM#
20*8835SDarren.Moffat@Sun.COM# CDDL HEADER END
21*8835SDarren.Moffat@Sun.COM#
22*8835SDarren.Moffat@Sun.COM
23*8835SDarren.Moffat@Sun.COM#
24*8835SDarren.Moffat@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
25*8835SDarren.Moffat@Sun.COM# Use is subject to license terms.
26*8835SDarren.Moffat@Sun.COM#
27*8835SDarren.Moffat@Sun.COM
28*8835SDarren.Moffat@Sun.COMprompt=$(echo $1 | sed s/_/__/g)
29*8835SDarren.Moffat@Sun.COMICON=/usr/share/pixmaps/blueprint-keyring.png
30*8835SDarren.Moffat@Sun.COMexec /usr/bin/zenity --entry --title "ssh-askpass" \
31*8835SDarren.Moffat@Sun.COM    --text="$prompt" --hide-text --window-icon=$ICON
32