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(gssapibackendauth SHARED gssapi_backend_auth.c ../gssapi_auth_common.c)
|
||||
add_library(gssapibackendauth SHARED gssapi_backend_auth.cc ../gssapi_auth_common.cc)
|
||||
target_link_libraries(gssapibackendauth maxscale-common ${GSSAPI_LIBS} mysqlcommon)
|
||||
set_target_properties(gssapibackendauth PROPERTIES VERSION "1.0.0")
|
||||
install_module(gssapibackendauth core)
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
void* gssapi_backend_auth_alloc(void *instance)
|
||||
{
|
||||
gssapi_auth_t* rval = MXS_MALLOC(sizeof(gssapi_auth_t));
|
||||
gssapi_auth_t* rval = static_cast<gssapi_auth_t*>(MXS_MALLOC(sizeof(gssapi_auth_t)));
|
||||
|
||||
if (rval)
|
||||
{
|
||||
@ -176,7 +176,7 @@ bool extract_principal_name(DCB *dcb, GWBUF *buffer)
|
||||
|
||||
if (buflen > 0)
|
||||
{
|
||||
uint8_t *principal = MXS_MALLOC(buflen + 1);
|
||||
uint8_t *principal = static_cast<uint8_t*>(MXS_MALLOC(buflen + 1));
|
||||
|
||||
if (principal)
|
||||
{
|
||||
@ -264,6 +264,8 @@ static int gssapi_backend_auth_authenticate(DCB *dcb)
|
||||
return rval;
|
||||
}
|
||||
|
||||
extern "C"
|
||||
{
|
||||
/**
|
||||
* Module handle entry point
|
||||
*/
|
||||
@ -302,3 +304,5 @@ MXS_MODULE* MXS_CREATE_MODULE()
|
||||
|
||||
return &info;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user