aboutsummaryrefslogtreecommitdiffstats
path: root/authenticate.c
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@gmail.com>2015-08-19 00:33:07 +0300
committerMichael Bestas <mikeioannina@gmail.com>2015-09-25 23:20:25 +0300
commita36d905455cc35d7092e8429f468df1f8d922b4e (patch)
treee45555cd7be78b07c7e2790777a97c0f39ee598e /authenticate.c
parent58be9a73db704a8ce2b6e7e09532416c2309b8ef (diff)
downloadandroid_external_rsync-replicant-6.0-0004-rc6.tar.gz
android_external_rsync-replicant-6.0-0004-rc6.tar.bz2
android_external_rsync-replicant-6.0-0004-rc6.zip
Change-Id: Ic8c134020beb98e1e52c4d527cbdbfe591d67262
Diffstat (limited to 'authenticate.c')
-rw-r--r--authenticate.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/authenticate.c b/authenticate.c
index f363e72e..c92746c6 100644
--- a/authenticate.c
+++ b/authenticate.c
@@ -343,36 +343,6 @@ char *auth_server(int f_in, int f_out, int module, const char *host,
return strdup(line);
}
-#ifdef __BIONIC__
-#include <termios.h>
-static const char *getpass(char *prompt)
-{
- struct termios old, new;
- static char res[256];
- char *p;
-
- /* Turn echoing off and fail if we can't. */
- if (tcgetattr (0, &old) != 0)
- return NULL;
- new = old;
- new.c_lflag &= ~ECHO;
- if (tcsetattr (0, TCSAFLUSH, &new) != 0)
- return NULL;
-
- fprintf(stderr, "%s", prompt);
- fflush(stderr);
- fgets(res, 256, stdin);
- if ((p = strchr(res, '\n')))
- *p = 0;
-
- /* Restore terminal. */
- tcsetattr (0, TCSAFLUSH, &old);
-
- return res;
-}
-
-#endif
-
void auth_client(int fd, const char *user, const char *challenge)
{
const char *pass;