MXS-1842 Compile all authenticators as C++
Minimal changes, only what is needed to compile.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
add_library(cdcplainauth SHARED cdc_plain_auth.c)
|
||||
add_library(cdcplainauth SHARED cdc_plain_auth.cc)
|
||||
target_link_libraries(cdcplainauth maxscale-common)
|
||||
set_target_properties(cdcplainauth PROPERTIES VERSION "1.0.0")
|
||||
install_module(cdcplainauth core)
|
||||
|
@ -107,7 +107,7 @@ static bool cdc_add_new_user(const MODULECMD_ARG *args, json_t** output)
|
||||
|
||||
if (fd != -1)
|
||||
{
|
||||
if (write(fd, final_data, sizeof(final_data)) == sizeof(final_data))
|
||||
if (write(fd, final_data, sizeof(final_data)) == static_cast<int>(sizeof(final_data)))
|
||||
{
|
||||
MXS_NOTICE("Added user '%s' to service '%s'", user, service->name);
|
||||
rval = true;
|
||||
@ -137,6 +137,8 @@ static bool cdc_add_new_user(const MODULECMD_ARG *args, json_t** output)
|
||||
return rval;
|
||||
}
|
||||
|
||||
extern "C"
|
||||
{
|
||||
/**
|
||||
* The module entry point routine. It is this routine that
|
||||
* must populate the structure that is referred to as the
|
||||
@ -192,6 +194,8 @@ MXS_MODULE* MXS_CREATE_MODULE()
|
||||
return &info;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Function to easily call authentication check.
|
||||
*
|
Reference in New Issue
Block a user