summaryrefslogtreecommitdiffhomepage
path: root/svr-authpam.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-01-02 20:25:56 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-01-02 20:25:56 +0000
commit8c1a429c446d00ad2030814e9f3d7afccc08ddf8 (patch)
tree3680041dbbb983431d917652be96d2879f1f6820 /svr-authpam.c
parentb5bd8591e7bc35980370ffa5dbe74d9b137e75c7 (diff)
Fixed DEBUG_TRACE macro so that we don't get semicolons left about the place
--HG-- extra : convert_revision : d928bc851e32be7bd429bf7504b148c0e4bf7e2f
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 4937fa6..4b16616 100644
--- a/svr-authpam.c
+++ b/svr-authpam.c
@@ -57,7 +57,7 @@ pamConvFunc(int num_msg,
const char* message = (*msg)->msg;
- TRACE(("enter pamConvFunc"));
+ TRACE(("enter pamConvFunc"))
if (num_msg != 1) {
/* If you're getting here - Dropbear probably can't support your pam
@@ -67,11 +67,11 @@ pamConvFunc(int num_msg,
return PAM_CONV_ERR;
}
- TRACE(("msg_style is %d", (*msg)->msg_style));
+ TRACE(("msg_style is %d", (*msg)->msg_style))
if (message) {
- TRACE(("message is '%s'", message));
+ TRACE(("message is '%s'", message))
} else {
- TRACE(("null message"));
+ TRACE(("null message"))
}
switch((*msg)->msg_style) {
@@ -79,7 +79,7 @@ pamConvFunc(int num_msg,
case PAM_PROMPT_ECHO_OFF:
if (strcmp(message, "Password:") != 0) {
- TRACE(("PAM_PROMPT_ECHO_OFF: unrecognized prompt"));
+ TRACE(("PAM_PROMPT_ECHO_OFF: unrecognized prompt"))
rc = PAM_CONV_ERR;
break;
}
@@ -102,7 +102,7 @@ pamConvFunc(int num_msg,
if ((strcmp(message, "login: " ) != 0)
&& (strcmp(message, "login:" ) != 0)
&& (strcmp(message, "Please enter username: " ) != 0)) {
- TRACE(("PAM_PROMPT_ECHO_ON: unrecognized prompt"));
+ TRACE(("PAM_PROMPT_ECHO_ON: unrecognized prompt"))
rc = PAM_CONV_ERR;
break;
}
@@ -117,17 +117,17 @@ pamConvFunc(int num_msg,
/* Safe to just use the direct pointer (no strdup) since
* it shouldn't be getting munged at all */
resp->resp = m_strdup(userDatap->user);
- TRACE(("userDatap->user='%s'", userDatap->user));
+ TRACE(("userDatap->user='%s'", userDatap->user))
(*respp) = resp;
break;
default:
- TRACE(("Unknown message type"));
+ TRACE(("Unknown message type"))
rc = PAM_CONV_ERR;
break;
}
- TRACE(("leave pamConvFunc, rc %d", rc));
+ TRACE(("leave pamConvFunc, rc %d", rc))
return rc;
}
@@ -224,7 +224,7 @@ cleanup:
m_free(password);
}
if (pamHandlep != NULL) {
- TRACE(("pam_end"));
+ TRACE(("pam_end"))
(void) pam_end(pamHandlep, 0 /* pam_status */);
}
}