Experimental binkp password logging

This commit is contained in:
Michiel Broek 2002-02-22 22:43:27 +00:00
parent 19183e73b6
commit 9bf7c9126e

View File

@ -456,8 +456,11 @@ SM_STATE(sendpass)
if (strlen(nodes.Epasswd)) { if (strlen(nodes.Epasswd)) {
SendPass = TRUE; SendPass = TRUE;
binkp_send_control(MM_PWD, "%s", nodes.Epasswd); binkp_send_control(MM_PWD, "%s", nodes.Epasswd);
} else Syslog('-', "Password from setup sent");
} else {
binkp_send_control(MM_PWD, "-"); binkp_send_control(MM_PWD, "-");
Syslog('-', "Blank password - sent");
}
SM_PROCEED(waitaddr) SM_PROCEED(waitaddr)
@ -737,6 +740,7 @@ SM_STATE(waitpwd)
} }
SM_STATE(pwdack) SM_STATE(pwdack)
Syslog('-', "pwdack '%s' Loaded=%s strlen(nodes.Epasswd)=%d", &rbuf[1], Loaded?"true":"false", strlen(nodes.Epasswd));
if ((strcmp(&rbuf[1], "-") == 0) && (!Loaded && !strlen(nodes.Epasswd))) { if ((strcmp(&rbuf[1], "-") == 0) && (!Loaded && !strlen(nodes.Epasswd))) {
Syslog('+', "No password, unprotected BINKP session"); Syslog('+', "No password, unprotected BINKP session");
binkp_send_control(MM_OK, ""); binkp_send_control(MM_OK, "");