Skip to content

Instantly share code, notes, and snippets.

@poolpOrg
Created January 17, 2015 00:48
Show Gist options
  • Select an option

  • Save poolpOrg/dbebb4b371cdc8cc7b46 to your computer and use it in GitHub Desktop.

Select an option

Save poolpOrg/dbebb4b371cdc8cc7b46 to your computer and use it in GitHub Desktop.
check
diff --git a/smtpd/smtpd.c b/smtpd/smtpd.c
index 126a46f..7c2d449 100644
--- a/smtpd/smtpd.c
+++ b/smtpd/smtpd.c
@@ -559,6 +559,10 @@ main(int argc, char *argv[])
errx(1, "config file exceeds SMTPD_MAXPATHLEN");
if (env->sc_opts & SMTPD_OPT_NOACTION) {
+ if (env->sc_queue_key) {
+ if (! crypto_setup(env->sc_queue_key, strlen(env->sc_queue_key)))
+ fatalx("crypto_setup: invalid key for queue encryption");
+ }
load_pki_tree();
load_pki_keys();
fprintf(stderr, "configuration OK\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment