summaryrefslogtreecommitdiff
path: root/functions.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2024-03-30 16:09:37 +0000
committerLuke Bratch <luke@bratch.co.uk>2024-03-30 16:09:37 +0000
commit3612ac309895be690c8dc3080898dfb713b8a23e (patch)
tree0918a707e2f34a36ef944f02662997de2653a6f7 /functions.h
parent6bc5e61f1bd0217618aa799169b5439f013b6921 (diff)
Implement changing client-side TLS certificate and key paths, and reloading certificate/key at runtime when doing a REHASH (BLABOUNCER command or SIGHUP).
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions.h b/functions.h
index 6ec2c28..ff9d656 100644
--- a/functions.h
+++ b/functions.h
@@ -167,8 +167,9 @@ void tryautonick(struct ircdstate *ircdstate);
void cleanexit(SSL *server_ssl, struct client *clients, int sourcefd, struct ircdstate *ircdstate, struct settings *settings, char *quitmsg);
// Re-read the configuration file, setting 'failuremsg' to a failure message on failure.
+// 'ctx' is the client OpenSSL context for changing the certificate/key.
// Returns 1 on success or 0 on failure.
-int rehash(struct settings *settings, char *failuremsg);
+int rehash(struct settings *settings, char *failuremsg, SSL_CTX *ctx);
// Check the password provided in the string 'str' against what is in
// the settings structure 'settings'.