summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c
index 1d9df10..407ef97 100644
--- a/src/config.c
+++ b/src/config.c
@@ -124,9 +124,7 @@ bool fastd_config_protocol(fastd_context_t *ctx UNUSED, fastd_config_t *conf, co
}
bool fastd_config_method(fastd_context_t *ctx, fastd_config_t *conf, const char *name) {
- const fastd_method_t *parsed_method = fastd_parse_method_name(name);
-
- if (!parsed_method)
+ if (!fastd_method_get_by_name(name))
return false;
fastd_string_stack_t **method;
@@ -564,7 +562,7 @@ static void configure_method_parameters(fastd_context_t *ctx, fastd_config_t *co
fastd_string_stack_t *method_name;
for (method_name = conf->methods; method_name; method_name = method_name->next) {
- const fastd_method_t *method = fastd_parse_method_name(method_name->str);
+ const fastd_method_t *method = fastd_method_get_by_name(method_name->str);
conf->max_packet_size = max_size_t(conf->max_packet_size, method->max_packet_size(ctx));
conf->min_encrypt_head_space = max_size_t(conf->min_encrypt_head_space, method->min_encrypt_head_space(ctx));