struct Client *source_p = data->client;
struct Channel *chptr = data->chptr;
- if(!(chptr->mode.mode & mymode) && !IsSSLClient(source_p)) {
+ if(!(chptr->mode.mode & mymode) && !IsSecureClient(source_p)) {
/* XXX This is equal to ERR_THROTTLE */
sendto_one_numeric(source_p, 480, "%s :Cannot join channel (-U) - SSL/TLS required", chptr->chname);
data->approved = ERR_CUSTOM;
struct Client *source_p = data->client;
struct Channel *chptr = data->chptr;
- if((chptr->mode.mode & mymode) && !IsSSLClient(source_p)) {
+ if((chptr->mode.mode & mymode) && !IsSecureClient(source_p)) {
/* XXX This is equal to ERR_THROTTLE */
sendto_one_numeric(source_p, 480, "%s :Cannot join channel (+S) - SSL/TLS required", chptr->chname);
data->approved = ERR_CUSTOM;
(void)chptr;
(void)mode_type;
- if (! IsSSLClient(client_p))
+ if (!IsSecureClient(client_p))
return EXTBAN_NOMATCH;
if (data != NULL)
/* user information flags, only settable by remote mode or local oper */
#define UMODE_OPER 0x1000 /* Operator */
#define UMODE_ADMIN 0x2000 /* Admin on server */
-#define UMODE_SSLCLIENT 0x4000 /* using SSL */
+#define UMODE_SECURE 0x4000 /* has a secure connection */
#define DEFAULT_OPER_UMODES (UMODE_SERVNOTICE | UMODE_OPERWALL | \
UMODE_WALLOP | UMODE_LOCOPS)
#define IsInvisible(x) ((x)->umodes & UMODE_INVISIBLE)
#define SetInvisible(x) ((x)->umodes |= UMODE_INVISIBLE)
#define ClearInvisible(x) ((x)->umodes &= ~UMODE_INVISIBLE)
-#define IsSSLClient(x) ((x)->umodes & UMODE_SSLCLIENT)
-#define SetSSLClient(x) ((x)->umodes |= UMODE_SSLCLIENT)
-#define ClearSSLClient(x) ((x)->umodes &= ~UMODE_SSLCLIENT)
+#define IsSecureClient(x) ((x)->umodes & UMODE_SECURE)
#define SendWallops(x) ((x)->umodes & UMODE_WALLOP)
#define SendLocops(x) ((x)->umodes & UMODE_LOCOPS)
#define SendServNotice(x) ((x)->umodes & UMODE_SERVNOTICE)
#define SendOperwall(x) ((x)->umodes & UMODE_OPERWALL)
-#define IsService(x) ((x)->umodes & UMODE_SERVICE)
-#define IsDeaf(x) ((x)->umodes & UMODE_DEAF)
-#define IsNoForward(x) ((x)->umodes & UMODE_NOFORWARD)
+#define IsService(x) ((x)->umodes & UMODE_SERVICE)
+#define IsDeaf(x) ((x)->umodes & UMODE_DEAF)
+#define IsNoForward(x) ((x)->umodes & UMODE_NOFORWARD)
#define SetGotId(x) ((x)->flags |= FLAGS_GOTID)
#define IsGotId(x) (((x)->flags & FLAGS_GOTID) != 0)
0, /* W */
0, /* X */
0, /* Y */
- UMODE_SSLCLIENT, /* Z */
+ UMODE_SECURE, /* Z */
/* 0x5B */ 0, 0, 0, 0, 0, 0, /* 0x60 */
UMODE_ADMIN, /* a */
0, /* b */
}
if (IsSecure(source_p))
- source_p->umodes |= UMODE_SSLCLIENT;
+ source_p->umodes |= UMODE_SECURE;
if (source_p->umodes & UMODE_INVISIBLE)
Count.invisi++;
return;
}
- if(IsOperConfNeedSSL(oper_p) && !IsSSLClient(source_p))
+ if(IsOperConfNeedSSL(oper_p) && !IsSecureClient(source_p))
{
sendto_one_numeric(source_p, ERR_NOOPERHOST, form_str(ERR_NOOPERHOST));
ilog(L_FOPER, "FAILED CHALLENGE (%s) by (%s!%s@%s) (%s) -- requires SSL/TLS",
return;
}
- if(IsOperConfNeedSSL(oper_p) && !IsSSLClient(source_p))
+ if(IsOperConfNeedSSL(oper_p) && !IsSecureClient(source_p))
{
sendto_one_numeric(source_p, ERR_NOOPERHOST, form_str(ERR_NOOPERHOST));
ilog(L_FOPER, "FAILED OPER (%s) by (%s!%s@%s) (%s) -- requires SSL/TLS",
target_p->name, buf);
}
- if(IsSSLClient(target_p))
+ if(IsSecureClient(target_p))
{
char cbuf[256] = "is using a secure connection";