summaryrefslogtreecommitdiff
path: root/svr-authpam.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-12-04 16:13:11 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-12-04 16:13:11 +0000
commiteccfa7ceba8d3dee2c31801ae03d442ff7b79d4a (patch)
treecc1c3b4f3d9d52b79861942a360bca266e98bdcb /svr-authpam.c
parentc1c2fd4862e634e62f26f030a8df901fb278fc7e (diff)
downloaddropbear-eccfa7ceba8d3dee2c31801ae03d442ff7b79d4a.tar.gz
* add -g (dbclient) and -a (dropbear) options for allowing non-local
hosts to connect to forwarded ports. Rearranged various some of the tcp listening code. * changed to /* */ style brackets in svr-authpam.c
Diffstat (limited to 'svr-authpam.c')
-rw-r--r--svr-authpam.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/svr-authpam.c b/svr-authpam.c
index 985646a..4e257ae 100644
--- a/svr-authpam.c
+++ b/svr-authpam.c
@@ -59,7 +59,7 @@ pamConvFunc(int num_msg,
const char* message = (*msg)->msg;
- // make a copy we can strip
+ /* make a copy we can strip */
char * compare_message = m_strdup(message);
TRACE(("enter pamConvFunc"))
@@ -80,14 +80,14 @@ pamConvFunc(int num_msg,
}
- // Make the string lowercase.
+ /* Make the string lowercase. */
msg_len = strlen(compare_message);
for (i = 0; i < msg_len; i++) {
compare_message[i] = tolower(compare_message[i]);
}
- // If the string ends with ": ", remove the space.
- // ie "login: " vs "login:"
+ /* If the string ends with ": ", remove the space.
+ ie "login: " vs "login:" */
if (msg_len > 2
&& compare_message[msg_len-2] == ':'
&& compare_message[msg_len-1] == ' ') {
@@ -99,9 +99,9 @@ pamConvFunc(int num_msg,
case PAM_PROMPT_ECHO_OFF:
if (!(strcmp(compare_message, "password:") == 0)) {
- // We don't recognise the prompt as asking for a password,
- // so can't handle it. Add more above as required for
- // different pam modules/implementations
+ /* We don't recognise the prompt as asking for a password,
+ so can't handle it. Add more above as required for
+ different pam modules/implementations */
dropbear_log(LOG_NOTICE, "PAM unknown prompt %s (no echo)",
compare_message);
rc = PAM_CONV_ERR;
@@ -125,9 +125,9 @@ pamConvFunc(int num_msg,
if (!((strcmp(compare_message, "login:" ) == 0)
|| (strcmp(compare_message, "please enter username:") == 0))) {
- // We don't recognise the prompt as asking for a username,
- // so can't handle it. Add more above as required for
- // different pam modules/implementations
+ /* We don't recognise the prompt as asking for a username,
+ so can't handle it. Add more above as required for
+ different pam modules/implementations */
dropbear_log(LOG_NOTICE, "PAM unknown prompt %s (with echo)",
compare_message);
rc = PAM_CONV_ERR;