lower-case extension names before loading the plugin

This commit is contained in:
Florian Dold 2022-11-04 14:43:12 +01:00
parent 81ee8f01d8
commit bcaccec009
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -202,6 +202,11 @@ configure_extension (
GNUNET_asprintf (&lib_name, GNUNET_asprintf (&lib_name,
"libtaler_extension_%s", "libtaler_extension_%s",
name); name);
/* Lower-case extension name, config is case-insensitive */
for (unsigned int i = 0; i < strlen (lib_name); i++)
{
lib_name[i] = tolower (lib_name[i]);
}
extension = GNUNET_PLUGIN_load ( extension = GNUNET_PLUGIN_load (
lib_name, lib_name,
(void *) col->cfg); (void *) col->cfg);