summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-16 10:58:28 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-16 10:58:28 +0000
commitef672ecfcc78b21f04143c6f21c5450c972cdffc (patch)
treeadce27fed3509a83aeabb97233b74f7290c3d300 /include
parent6ba883ff9d3934eacf35d4dc6844052d9f1301ad (diff)
- Add usermode 'S' (client is connecte via SSL/TLS).
Allows services to keep track of what users are connected via SSL, and allows to see ssl-status of remote clients in a /whois git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2247 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'include')
-rw-r--r--include/client.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/client.h b/include/client.h
index f5b1dc3..33d0f98 100644
--- a/include/client.h
+++ b/include/client.h
@@ -128,6 +128,7 @@
#define FLAGS_FLOOD_NOTICED 0x01000000 /**< Notice to opers about this flooder has been sent */
#define FLAGS_SERVICE 0x02000000 /**< Client/server is a network service */
#define FLAGS_AUTH_SPOOF 0x04000000 /**< user's hostname has been spoofed by an auth{} spoof*/
+#define FLAGS_SSL 0x08000000 /**< User is connected via TLS/SSL */
#define HasFlag(x, y) ((x)->flags & (y))
#define AddFlag(x, y) ((x)->flags |= (y))
@@ -161,6 +162,7 @@
#define UMODE_ADMIN 0x00400000 /**< Admin on server */
#define UMODE_FARCONNECT 0x00800000 /**< Can see remote client connects/exits */
#define UMODE_HIDDENHOST 0x01000000 /**< User's host is hidden */
+#define UMODE_SSL 0x02000000 /**< User is connected via TLS/SSL */
#define UMODE_ALL UMODE_SERVNOTICE
@@ -171,7 +173,7 @@
#define SEND_UMODES (UMODE_INVISIBLE | UMODE_OPER | UMODE_WALLOP |\
UMODE_REGONLY | UMODE_REGISTERED | UMODE_ADMIN |\
- UMODE_HIDDEN)
+ UMODE_HIDDEN | UMODE_SSL)