1
0
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:
Georg Richter
2019-07-22 07:27:48 +02:00
parent 5fa9c4615e
commit acc270b7d4
4 changed files with 31 additions and 1 deletions

View File

@@ -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}