Created
January 17, 2015 00:48
-
-
Save poolpOrg/dbebb4b371cdc8cc7b46 to your computer and use it in GitHub Desktop.
check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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