diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-04 16:31:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-04 16:31:48 +0100 |
commit | cf9fb84f7efecbdc4c1410ec8c28119a0b3799e5 (patch) | |
tree | 22079b075b8a2872a6ea5ae1d331dd0fa796e9ba /src/libserver/protocol.c | |
parent | 8f2c82211defdac42bf913af79e576af73ea7da6 (diff) | |
download | rspamd-cf9fb84f7efecbdc4c1410ec8c28119a0b3799e5.tar.gz rspamd-cf9fb84f7efecbdc4c1410ec8c28119a0b3799e5.zip |
[Minor] Use infromation about TLS in milter mode
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index f9e9b3051..238e98a91 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -450,6 +450,13 @@ rspamd_protocol_handle_headers (struct rspamd_task *task, debug_task ("read Milter header, value: %V", hv); } break; + case 't': + case 'T': + IF_HEADER (TLS_CIPHER_HEADER) { + task->flags |= RSPAMD_TASK_FLAG_SSL; + debug_task ("read TLS cipher header, value: %V", hv); + } + break; default: debug_task ("unknown header: %V", hn); break; |