mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-27 10:11:07 -04:00
Add a new EVENT_HDL_SUB_ACME_NEWCERT event type in the ACME family. It is published after a new certificate has been successfully fetched and installed. The event carries the certificate store name, allowing subscribers to act on newly available certificates. Lua subscribers using core.event_sub() receive the event data as an AcmeEvent object with a crtname field containing the certificate store name.
18 lines
570 B
C
18 lines
570 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#ifndef _ACME_H_
|
|
#define _ACME_H_
|
|
|
|
#include <haproxy/ssl_ckch-t.h>
|
|
|
|
int ckch_conf_acme_init(void *value, char *buf, struct ckch_store *s, int cli, const char *filename, int linenum, char **err);
|
|
int acme_challenge_ready(const char *crt, const char *dns);
|
|
EVP_PKEY *acme_gen_tmp_pkey();
|
|
X509 *acme_gen_tmp_x509();
|
|
|
|
#if defined(USE_LUA)
|
|
#include <haproxy/hlua-t.h>
|
|
#include <haproxy/event_hdl-t.h>
|
|
void acme_hlua_event_push_args(struct hlua *hlua, struct event_hdl_sub_type event, void *data);
|
|
#endif /* USE_LUA */
|
|
|
|
#endif
|