#define HAVE_JWS
#endif
+#if (defined(HAVE_JWS))
+#define HAVE_ACME
+#endif
+
#if !defined(HAVE_SSL_SET_SECURITY_LEVEL)
/* define a nope function for set_security_level */
#define SSL_CTX_set_security_level(ctx, level) ({})
#include <haproxy/ssl_utils.h>
#include <haproxy/tools.h>
+#if defined(HAVE_ACME)
+
static struct acme_cfg *acme_cfgs = NULL;
static struct acme_cfg *cur_acme = NULL;
INITCALL1(STG_REGISTER, cli_register_kw, &cli_kws);
+#endif /* ! HAVE_ACME */
+
/*
* Local variables:
* c-indent-level: 8
#if defined(HAVE_SSL_OCSP)
{ "ocsp-update", offsetof(struct ckch_conf, ocsp_update_mode), PARSE_TYPE_ONOFF, ocsp_update_init, },
#endif
+#if defined(HAVE_ACME)
{ "acme", offsetof(struct ckch_conf, acme.id), PARSE_TYPE_STR, ckch_conf_acme_init, },
+#endif
{ "domains", offsetof(struct ckch_conf, acme.domains), PARSE_TYPE_ARRAY_SUBSTR, NULL, },
{ NULL, -1, PARSE_TYPE_STR, NULL, }
};