aboutsummaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-11 11:03:59 +0000
committerOmar Polo <op@omarpolo.com>2023-06-11 11:03:59 +0000
commit86693a33abd5e8c31530adb3045c9f4664d4d6c9 (patch)
tree3ef25d39266c92a62ece902799cc23b76812e0d0 /proc.h
parentf81a97b3569478a36e5cbe95229efd1b831b7a7b (diff)
add a privsep crypto engine
Incorporate the OpenSMTPD' privsep crypto engine. The idea behind it is to never load the certificate' private keys in a networked process, instead they are loaded in a separate process (the `crypto' one) which signs payloads on the behalf of the server processes. This way, we greatly reduce the risk of leaking the certificate' private key should the server process be compromised. This currently compiles only on LibreSSL (portable fix is in the way).
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/proc.h b/proc.h
index 4ebacd1..f0def37 100644
--- a/proc.h
+++ b/proc.h
@@ -36,6 +36,7 @@ struct imsgev {
enum privsep_procid {
PROC_PARENT,
PROC_SERVER,
+ PROC_CRYPTO,
PROC_LOGGER,
PROC_MAX,
};