aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/protocol.c7
-rw-r--r--src/libserver/task.h1
2 files changed, 8 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;
diff --git a/src/libserver/task.h b/src/libserver/task.h
index b6ff27990..e3c0492f6 100644
--- a/src/libserver/task.h
+++ b/src/libserver/task.h
@@ -112,6 +112,7 @@ enum rspamd_task_stage {
#define RSPAMD_TASK_FLAG_GREYLISTED (1 << 26)
#define RSPAMD_TASK_FLAG_OWN_POOL (1 << 27)
#define RSPAMD_TASK_FLAG_MILTER (1 << 28)
+#define RSPAMD_TASK_FLAG_SSL (1 << 29)
#define RSPAMD_TASK_IS_SKIPPED(task) (((task)->flags & RSPAMD_TASK_FLAG_SKIP))
#define RSPAMD_TASK_IS_JSON(task) (((task)->flags & RSPAMD_TASK_FLAG_JSON))