1
0
mirror of https://github.com/coturn/coturn.git synced 2025-11-04 08:51:00 +01:00

encrypted CLI password

This commit is contained in:
mom040267 2015-03-21 06:28:47 +00:00
parent 3ec05410c5
commit e40236419e

View File

@ -959,7 +959,7 @@ static int run_cli_input(struct cli_session* cs, const char *buf0, unsigned int
if(sl) { if(sl) {
cs->cmds += 1; cs->cmds += 1;
if(cli_password[0] && !(cs->auth_completed)) { if(cli_password[0] && !(cs->auth_completed)) {
if(strcmp(cmd,cli_password)) { if(check_password(cmd,cli_password)) {
if(cs->cmds>=CLI_PASSWORD_TRY_NUMBER) { if(cs->cmds>=CLI_PASSWORD_TRY_NUMBER) {
addr_debug_print(1, &(cs->addr),"CLI authentication error"); addr_debug_print(1, &(cs->addr),"CLI authentication error");
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR,"CLI authentication error\n"); TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR,"CLI authentication error\n");