From 8044bd1ecf670345d2bc188bd932ed7118a101a8 Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Mon, 20 Mar 2023 15:08:04 +0000 Subject: [PATCH] Update sesman files left after libsesman created --- sesman/env.c | 2 +- sesman/scp_process.c | 8 ++++---- sesman/sesman.c | 4 ++-- sesman/session.c | 4 ++-- sesman/session_list.c | 4 ++-- sesman/sig.c | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sesman/env.c b/sesman/env.c index fab9aa00..31ae1292 100644 --- a/sesman/env.c +++ b/sesman/env.c @@ -31,7 +31,7 @@ #include #include "env.h" -#include "config.h" +#include "sesman_config.h" #include "list.h" #include "log.h" #include "os_calls.h" diff --git a/sesman/scp_process.c b/sesman/scp_process.c index b70d1fe4..79ccbc50 100644 --- a/sesman/scp_process.c +++ b/sesman/scp_process.c @@ -31,11 +31,11 @@ #include "trans.h" #include "os_calls.h" #include "scp.h" -#include "config.h" +#include "sesman_config.h" #include "scp_process.h" -#include "access.h" -#include "auth.h" +#include "sesman_access.h" +#include "sesman_auth.h" #include "guid.h" #include "os_calls.h" #include "session_list.h" @@ -132,7 +132,7 @@ authenticate_and_authorize_connection(struct sesman_con *sc, "Unexpected status return %d from auth call", (int)status); } - else if (!access_login_allowed(username)) + else if (!access_login_allowed(&g_cfg->sec, username)) { status = E_SCP_LOGIN_NOT_AUTHORIZED; LOG(LOG_LEVEL_INFO, "Username okay but group problem for " diff --git a/sesman/sesman.c b/sesman/sesman.c index 2c8f8411..9ee20802 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -33,8 +33,8 @@ #include "arch.h" #include "sesman.h" -#include "auth.h" -#include "config.h" +#include "sesman_auth.h" +#include "sesman_config.h" #include "lock_uds.h" #include "os_calls.h" #include "scp.h" diff --git a/sesman/session.c b/sesman/session.c index 409ecffb..a9d02a73 100644 --- a/sesman/session.c +++ b/sesman/session.c @@ -42,8 +42,8 @@ #include "arch.h" #include "session.h" -#include "auth.h" -#include "config.h" +#include "sesman_auth.h" +#include "sesman_config.h" #include "env.h" #include "guid.h" #include "list.h" diff --git a/sesman/session_list.c b/sesman/session_list.c index 694468d7..6b63b40d 100644 --- a/sesman/session_list.c +++ b/sesman/session_list.c @@ -36,8 +36,8 @@ #include "arch.h" #include "session_list.h" -#include "auth.h" -#include "config.h" +#include "sesman_auth.h" +#include "sesman_config.h" #include "log.h" #include "os_calls.h" #include "sesman.h" diff --git a/sesman/sig.c b/sesman/sig.c index db9b4e12..12d195a8 100644 --- a/sesman/sig.c +++ b/sesman/sig.c @@ -31,7 +31,7 @@ #include "arch.h" #include "sig.h" -#include "config.h" +#include "sesman_config.h" #include "log.h" #include "os_calls.h" #include "sesman.h"