diff options
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 92c7a45..e69abcc 100644 --- a/src/config.c +++ b/src/config.c @@ -48,6 +48,9 @@ extern const fastd_method fastd_method_null; #ifdef WITH_METHOD_XSALSA20_POLY1305 extern const fastd_method fastd_method_xsalsa20_poly1305; #endif +#ifdef WITH_METHOD_AES128_GCM +extern const fastd_method fastd_method_aes128_gcm; +#endif static void default_config(fastd_config *conf) { @@ -140,6 +143,10 @@ bool fastd_config_method(fastd_context *ctx, fastd_config *conf, const char *nam else if (!strcmp(name, "xsalsa20-poly1305")) conf->method = &fastd_method_xsalsa20_poly1305; #endif +#ifdef WITH_METHOD_AES128_GCM + else if (!strcmp(name, "aes128-gcm")) + conf->method = &fastd_method_aes128_gcm; +#endif else return false; |