Check configuration with declared parameters

The declared parameters are now used to check whether the configuration is
valid. As the filters and monitors don't use the new declarations, the
code needs to be commented out. Once the parameter processing has been
migrated to the new system, the code can be enabled.
This commit is contained in:
Markus Mäkelä
2017-01-04 10:37:46 +02:00
parent f7c6accaa0
commit cefc253e2c
4 changed files with 58 additions and 37 deletions

View File

@ -220,12 +220,13 @@ SSL_LISTENER *make_ssl_structure(CONFIG_CONTEXT *obj, bool require_cert, int *er
* does preliminary type checking for various basic values as well as enumerations.
*
* @param module Module name
* @param type Module type
* @param key Parameter key
* @param value Parameter value
*
* @return True if the configuration parameter is valid
*/
bool config_param_is_valid(const char *module, const char *key, const char *value);
bool config_param_is_valid(const char *module, const char *type, const char *key, const char *value);
/**
* @brief Get a boolean value