blob: fa64b4b343be86bd2025c55741b474108d89962f [file] [log] [blame]
Ben Lindstrom226cfa02001-01-22 05:34:40 +00001/*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
5 *
6 * As far as I am concerned, the code I have written for this software
7 * can be used freely for any purpose. Any derived versions of this
8 * software must be clearly marked as such, and if the derived work is
9 * incompatible with the protocol description in the RFC file, it must be
10 * called by a name other than "ssh" or "Secure Shell".
11 */
12
13/*
14 * Reads a passphrase from /dev/tty with echo turned off. Returns the
15 * passphrase (allocated with xmalloc). Exits if EOF is encountered. If
16 * from_stdin is true, the passphrase will be read from stdin instead.
17 */
18char *read_passphrase(char *prompt, int from_stdin);