baudehlo/Haraka — pull request #597 by msimerson (2014-05-30 05:42:32+00:00)
Title: Tls

1. added hook_register. Instantiates plugin.tls_opts. Loads tls_*.pem files with callbacks. Barks about errors, with directions for reading the tls help page (haraka -h tls).

2. Added 10s timer for TLS negotiation. It shouldn't ever take that long, and putting a timer in there should resolve these CRIT errors I'm seeing:

[core] Plugin tls timed out on hook unrecognized_command - make sure it calls the callback

3. only register STARTTLS capability if key & cert are loaded (was only key)

4. Arranged coding style to be more linear (few levels of indention).