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