summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-10 17:33:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-10 17:33:24 +0000
commit392ad3a51808ca6540043274216e5e4a0d36c3f6 (patch)
tree1ff01c6d4c0f08752019101626c90977c111715c /src
parentca5a40b4fcef811bec5e714b1f0acd35b72c6c1c (diff)
GetExt conversion
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4289 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp14
-rw-r--r--src/modules/m_sslmodes.cpp6
2 files changed, 12 insertions, 8 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index f40a772a4..02743c85d 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -42,6 +42,8 @@ public:
issl_io_status rstat;
issl_io_status wstat;
+ char* dummy;
+
unsigned int inbufoffset;
char* inbuf; // Buffer OpenSSL reads into.
std::string outbuf; // Buffer for outgoing data that OpenSSL will not take.
@@ -225,7 +227,7 @@ class ModuleSSLOpenSSL : public Module
{
userrec* user = (userrec*)item;
- if(user->GetExt("ssl") && IS_LOCAL(user) && isin(user->port, listenports))
+ if(user->GetExt("ssl", dummy) && IS_LOCAL(user) && isin(user->port, listenports))
{
// User is using SSL, they're a local user, and they're using one of *our* SSL ports.
// Potentially there could be multiple SSL modules loaded at once on different ports.
@@ -531,7 +533,7 @@ class ModuleSSLOpenSSL : public Module
virtual void OnWhois(userrec* source, userrec* dest)
{
// Bugfix, only send this numeric for *our* SSL users
- if(dest->GetExt("ssl") || (IS_LOCAL(dest) && isin(dest->port, listenports)))
+ if(dest->GetExt("ssl", dummy) || (IS_LOCAL(dest) && isin(dest->port, listenports)))
{
WriteServ(source->fd, "320 %s %s :is using a secure connection", source->nick, dest->nick);
}
@@ -543,7 +545,7 @@ class ModuleSSLOpenSSL : public Module
if(extname == "ssl")
{
// check if this user has an swhois field to send
- if(user->GetExt(extname))
+ if(user->GetExt(extname, dummy))
{
// call this function in the linking module, let it format the data how it
// sees fit, and send it on its way. We dont need or want to know how.
@@ -559,7 +561,7 @@ class ModuleSSLOpenSSL : public Module
{
userrec* dest = (userrec*)target;
// if they dont already have an ssl flag, accept the remote server's
- if (!dest->GetExt(extname))
+ if (!dest->GetExt(extname, dummy))
{
dest->Extend(extname, "ON");
}
@@ -604,7 +606,7 @@ class ModuleSSLOpenSSL : public Module
userrec* u = Srv->FindDescriptor(session->fd);
if (u)
{
- if (!u->GetExt("ssl"))
+ if (!u->GetExt("ssl", dummy))
u->Extend("ssl", "ON");
}
@@ -620,7 +622,7 @@ class ModuleSSLOpenSSL : public Module
{
// This occurs AFTER OnUserConnect so we can be sure the
// protocol module has propogated the NICK message.
- if ((user->GetExt("ssl")) && (IS_LOCAL(user)))
+ if ((user->GetExt("ssl", dummy)) && (IS_LOCAL(user)))
{
// Tell whatever protocol module we're using that we need to inform other servers of this metadata NOW.
std::deque<std::string>* metadata = new std::deque<std::string>;
diff --git a/src/modules/m_sslmodes.cpp b/src/modules/m_sslmodes.cpp
index e0b3126e4..d2a8f6fb1 100644
--- a/src/modules/m_sslmodes.cpp
+++ b/src/modules/m_sslmodes.cpp
@@ -5,6 +5,8 @@
/* $ModDesc: Provides support for unreal-style channel mode +z */
+static char* dummy;
+
class SSLMode : public ModeHandler
{
Server* Srv;
@@ -20,7 +22,7 @@ class SSLMode : public ModeHandler
chanuserlist userlist = Srv->GetUsers(channel);
for(unsigned int i = 0; i < userlist.size(); i++)
{
- if(!userlist[i]->GetExt("ssl"))
+ if(!userlist[i]->GetExt("ssl", dummy))
{
WriteServ(source->fd, "490 %s %s :all members of the channel must be connected via SSL", source->nick, channel->name);
return MODEACTION_DENY;
@@ -76,7 +78,7 @@ class ModuleSSLModes : public Module
{
if(chan && chan->IsModeSet('z'))
{
- if(user->GetExt("ssl"))
+ if(user->GetExt("ssl", dummy))
{
// Let them in
return 0;