Files
ocserv/src/sec-mod-sup-config.h
T
Dimitri Papadopoulos a2ec3bba9c Consistent include files and directives
* Import system headers as `#include <...>`.
* Import local headers as `#include "..."`.
* Use consistent header guards (starting with `OC_`).

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2026-06-06 15:23:54 +02:00

52 lines
1.4 KiB
C

/*
* Copyright (C) 2014 Red Hat
*
* Author: Nikos Mavrogiannopoulos
*
* This file is part of ocserv.
*
* ocserv is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
#ifndef OC_SEC_MOD_SUP_CONFIG_H
#define OC_SEC_MOD_SUP_CONFIG_H
#include "sec-mod.h"
#define SUP_CONFIG_FILE 1
#define SUP_CONFIG_RADIUS 2
inline static const char *sup_config_name(unsigned int s)
{
switch (s) {
case SUP_CONFIG_FILE:
return "file";
case SUP_CONFIG_RADIUS:
return "radius";
default:
return "unknown";
}
}
/* The get_sup_config() should read any additional configuration for
* proc->username/proc->groupname and save it in proc->config.
*/
struct config_mod_st {
int (*get_sup_config)(ReloadableConfig *vconfig, client_entry_st *entry,
SecmSessionReplyMsg *msg, void *pool);
};
void sup_config_init(sec_mod_st *sec);
#endif