Commit Graph

19 Commits

Author SHA1 Message Date
Rex Tsai
efcd396188 xfreerdp: fixed --from-stdin/freerdp_passphrase_read for win32
Signed-off-by: Rex Tsai <chihchun@kalug.linux.org.tw>
(cherry picked from commit ed6dd62ebd)
2012-10-27 15:32:53 +02:00
Mike Carifio
19c6f93e2d xfreerdp: Adds switch --from-stdin.
This switch will prompt username, password, domain and connection
host if not specified at the command line.

Signed-off-by: Rex Tsai <chihchun@kalug.linux.org.tw>
(cherry picked from commit a31f0c62e6)

Conflicts:
	client/X11/xfreerdp.1.xml
	client/X11/xfreerdp.c
	include/freerdp/settings.h
	libfreerdp-core/settings.c
	libfreerdp-utils/args.c
2012-10-27 15:28:47 +02:00
Shea Levy
79551abb1b passphrase: Use the global values the signal handler needs 2011-09-28 01:37:43 -04:00
Shea Levy
fce487b876 passphrase_read: Set errno to ENOSYS and return on Windows for now 2011-09-24 19:18:25 -04:00
Shea Levy
9d59747dc9 passphrase_read: Don't include a null terminator in the prompt 2011-09-24 19:01:06 -04:00
Shea Levy
5153943796 passphrase_read: Read from stdin if tty can't be opened 2011-09-24 17:30:56 -04:00
Shea Levy
a50695cdb8 passphrase_read: Write to stderr if tty can't be opened 2011-09-24 17:05:35 -04:00
Shea Levy
3abc1c0fe5 passphrase_read: Echo newlines during read 2011-09-24 15:21:51 -04:00
Shea Levy
505b464e68 passphrase_read: Factor out error handling 2011-09-24 15:13:23 -04:00
Shea Levy
f5c618a3fe passphrase_read: Reset terminal to original attributes if ECHO was turned off 2011-09-24 15:03:24 -04:00
Shea Levy
fc68f8e908 passphrase_read: Turn off ECHO on the terminal 2011-09-24 14:15:36 -04:00
Shea Levy
ba33f0eed7 passphrase_read: Overwrite possible references to passphrase data in local stack frame before any potential return
Also, accidentally included termios.h here, should have been at next commit
2011-09-24 13:32:40 -04:00
Shea Levy
bde5a8e076 Remove chance of undefined behavior corner case 2011-09-24 13:23:52 -04:00
Shea Levy
9b93d57d9c passphrase_read: set errno and return NULL when possibly-failing functions fail 2011-09-24 13:21:00 -04:00
Shea Levy
4351ffcbfe passphrase_read: Set buf_iter to NULL so nothing passphrase_read puts on the stack will point to the password for long 2011-09-24 02:25:55 -04:00
Shea Levy
ade70ee606 passphrase_read: Read from the controlling tty 2011-09-24 02:11:32 -04:00
Shea Levy
34a9a50704 passphrase_read: Wrie the prompt to the controlling tty 2011-09-24 00:45:49 -04:00
Shea Levy
7039602861 Remove the flags argument to passphrase_read
We don't need the full functionality of the BSD readpassphrase, the default
flags are enough. We can always add them back in later
2011-09-23 19:14:37 -04:00
Shea Levy
b1081b4b82 Add stub for the passphrase utility 2011-09-23 17:02:06 -04:00