Mercurial > dropbear
comparison cli-authinteract.c @ 302:973fccb59ea4 ucc-axis-hack
propagate from branch 'au.asn.ucc.matt.dropbear' (head 11034278bd1917bebcbdc69cf53b1891ce9db121)
to branch 'au.asn.ucc.matt.dropbear.ucc-axis-hack' (head 10a1f614fec73d0820c3f61160d9db409b9beb46)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 25 Mar 2006 12:59:58 +0000 |
parents | 740e782679be 475a818dd6e7 |
children |
comparison
equal
deleted
inserted
replaced
299:740e782679be | 302:973fccb59ea4 |
---|---|
113 cleantext(prompt); | 113 cleantext(prompt); |
114 | 114 |
115 echo = buf_getbool(ses.payload); | 115 echo = buf_getbool(ses.payload); |
116 | 116 |
117 if (!echo) { | 117 if (!echo) { |
118 unsigned char* p = getpass(prompt); | 118 unsigned char* p = getpass_or_cancel(prompt); |
119 response = m_strdup(p); | 119 response = m_strdup(p); |
120 m_burn(p, strlen(p)); | 120 m_burn(p, strlen(p)); |
121 } else { | 121 } else { |
122 response = get_response(prompt); | 122 response = get_response(prompt); |
123 } | 123 } |