X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/ed3ca2ff16a1dc921d90c0a67093de8f47209176..b2ee72e4487d9ec90ff64f63d8f8c3974d96bc5c:/include/client.h diff --git a/include/client.h b/include/client.h index ccc3c2e9..af8ccfa4 100644 --- a/include/client.h +++ b/include/client.h @@ -439,6 +439,7 @@ struct ListClient #define LFLAGS_FLUSH 0x00000002 #define LFLAGS_CORK 0x00000004 #define LFLAGS_SCTP 0x00000008 +#define LFLAGS_INSECURE 0x00000010 /* for marking SSL clients as insecure before registration */ /* umodes, settable flags */ /* lots of this moved to snomask -- jilles */ @@ -513,6 +514,10 @@ struct ListClient #define SetSCTP(x) ((x)->localClient->localflags |= LFLAGS_SCTP) #define ClearSCTP(x) ((x)->localClient->localflags &= ~LFLAGS_SCTP) +#define IsInsecure(x) ((x)->localClient->localflags & LFLAGS_INSECURE) +#define SetInsecure(x) ((x)->localClient->localflags |= LFLAGS_INSECURE) +#define ClearInsecure(x) ((x)->localClient->localflags &= ~LFLAGS_INSECURE) + /* oper flags */ #define MyOper(x) (MyConnect(x) && IsOper(x))