path: root/libmailutils/
authorSergey Poznyakoff <>2010-10-05 18:53:39 (GMT)
committer Sergey Poznyakoff <>2010-10-05 18:53:39 (GMT)
commit8575afa0eb3a3f38642e28ec5ab109bc128c62dd (patch) (side-by-side diff)
tree29539bcff711fbc5b4142422404aea282c82a7d9 /libmailutils/
parent63d1c19652942be6b600a5855880667f16fdb8a3 (diff)
Implement echo control on fd streams. Implement mu_getpass function.
* Test for tcgetattr and tcsetattr. * gnulib.modules (getpass-gnu): Remove. * include/mailutils/mutil.h (mu_getpass): New proto. * include/mailutils/stream.h (MU_IOCTL_GET_ECHO) (MU_IOCTL_SET_ECHO): New ioctls. * include/mailutils/sys/file_stream.h (_MU_FILE_STREAM_ECHO_OFF): New flag. (_mu_file_stream) <echo_state>: New member. * libmailutils/getpass.c: New file. * libmailutils/ (libmailutils_la_SOURCES): Add getpass.c. * libmailutils/file_stream.c (fd_done): Free echo_state. (fd_ioctl): Implement MU_IOCTL_GET_ECHO and MU_IOCTL_SET_ECHO. * mu/mu.h (mustrin): New extern. * mu/pop.c (com_pass): Use mu_getpass. * mu/shell.c (mustrin): New variable. (readline): Use mu_stream_getline instead of getline. (mutool_shell): Create mustrin. * pop3d/popauth.c (options): Fix typo. (fill_pass): Use mu_getpass.
Diffstat (limited to 'libmailutils/') (more/less context) (ignore whitespace changes)
1 files changed, 1 insertions, 0 deletions
diff --git a/libmailutils/ b/libmailutils/
index e05edd8..3f083e0 100644
--- a/libmailutils/
+++ b/libmailutils/
@@ -86,2 +86,3 @@ libmailutils_la_SOURCES = \
+ getpass.c\

Return to:

Send suggestions and report system problems to the System administrator.