diff --git a/src/auth.c b/src/auth.c index 9a988a160..b0418892e 100644 --- a/src/auth.c +++ b/src/auth.c @@ -25,6 +25,7 @@ #include #include +#include #include #include @@ -294,3 +295,9 @@ pat_match_auth(struct sample *smp, struct pattern_expr *expr, int fill) } return NULL; } + +__attribute__((constructor)) +static void __auth_init(void) +{ + hap_register_build_opts("Encrypted password support via crypt(3): yes", 0); +} diff --git a/src/haproxy.c b/src/haproxy.c index 074cc5b78..cd537acf0 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -325,14 +325,6 @@ static void display_build_opts() "\n\n", DEFAULT_MAXCONN, BUFSIZE, MAXREWRITE, MAX_POLL_EVENTS); - printf("Encrypted password support via crypt(3): " -#ifdef CONFIG_HAP_CRYPT - "yes" -#else - "no" -#endif - "\n"); - list_for_each_entry(item, &build_opts_list, list) { puts(item->str); }