You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +03:00
CONC-429: Don't allow to load unknown authentication plugins
If the server sends name of authentication plugin, the client needs to check if this plugin is valid and authorized.
This commit is contained in:
@@ -45,6 +45,9 @@ FUNCTION(REGISTER_PLUGIN)
|
||||
|
||||
if(NOT ${CC_PLUGIN_DEFAULT} STREQUAL "OFF")
|
||||
set(PLUGIN_${CC_PLUGIN_TARGET}_TYPE ${CC_PLUGIN_TYPE})
|
||||
IF(${CC_PLUGIN_TYPE} STREQUAL "MARIADB_CLIENT_PLUGIN_AUTH")
|
||||
SET(ALLOWED_AUTH_PLUGINS ${ALLOWED_AUTH_PLUGINS} ${CC_PLUGIN_TARGET} PARENT_SCOPE)
|
||||
ENDIF()
|
||||
|
||||
if(${CC_PLUGIN_DEFAULT} STREQUAL "DYNAMIC")
|
||||
set_source_files_properties(${CC_PLUGIN_SOURCES}
|
||||
|
Reference in New Issue
Block a user