Skip to content

Commit

Permalink
Expand interface for doing things with virtual servers
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Apr 7, 2019
1 parent aa6962a commit 8639d69
Show file tree
Hide file tree
Showing 7 changed files with 288 additions and 161 deletions.
1 change: 1 addition & 0 deletions src/lib/server/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ RCSIDH(base_h, "$Id$")
#include <freeradius-devel/server/trigger.h>
#include <freeradius-devel/server/users_file.h>
#include <freeradius-devel/server/util.h>
#include <freeradius-devel/server/virtual_servers.h>
#include <freeradius-devel/server/xlat.h>

#include <freeradius-devel/util/base.h>
18 changes: 0 additions & 18 deletions src/lib/server/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,31 +232,13 @@ int modules_free(void);
bool module_section_type_set(REQUEST *request, fr_dict_attr_t const *type_da, fr_dict_enum_t const *enumv);
int module_instance_read_only(TALLOC_CTX *ctx, char const *name);

/*
* Call various module sections
*/
rlm_rcode_t process_authenticate(int type, REQUEST *request);

#ifdef WITH_COA
# define MODULE_NULL_COA_FUNCS ,NULL,NULL
#else
# define MODULE_NULL_COA_FUNCS
#endif

extern const CONF_PARSER virtual_servers_config[];
extern const CONF_PARSER virtual_servers_on_read_config[];

typedef int (*fr_virtual_server_compile_t)(CONF_SECTION *server);

int virtual_server_section_attribute_define(CONF_SECTION *server_cs, char const *subcs_name,
fr_dict_attr_t const *da);
int virtual_servers_open(fr_schedule_t *sc);
int virtual_servers_instantiate(void);
int virtual_servers_bootstrap(CONF_SECTION *config);
CONF_SECTION *virtual_server_find(char const *name);
int virtual_server_namespace_register(char const *namespace, fr_virtual_server_compile_t func);

void fr_request_async_bootstrap(REQUEST *request, fr_event_list_t *el); /* for unit_test_module */

#ifdef __cplusplus
}
Expand Down
Loading

0 comments on commit 8639d69

Please sign in to comment.