~ubuntu-branches/ubuntu/lucid/inspircd/lucid-security

« back to all changes in this revision

Viewing changes to src/modules/extra/m_ssl_openssl.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Giacomo Catenazzi
  • Date: 2008-03-06 07:56:47 UTC
  • mto: (3.1.1 lenny) (1.1.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20080306075647-3nsaqr1ob2pn534h
Tags: upstream-1.1.17+dfsg
ImportĀ upstreamĀ versionĀ 1.1.17+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *       | Inspire Internet Relay Chat Daemon |
3
3
 *       +------------------------------------+
4
4
 *
5
 
 *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
 
5
 *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
6
6
 * See: http://www.inspircd.org/wiki/index.php/Credits
7
7
 *
8
8
 * This program is free but copyrighted software; see
157
157
 
158
158
        virtual void OnRehash(userrec* user, const std::string &param)
159
159
        {
160
 
                if (param != "ssl")
161
 
                        return;
162
 
 
163
160
                Conf = new ConfigReader(ServerInstance);
164
161
 
165
162
                for (unsigned int i = 0; i < listenports.size(); i++)
211
208
                if (!sslports.empty())
212
209
                        sslports.erase(sslports.end() - 1);
213
210
 
 
211
                if (param != "ssl")
 
212
                {
 
213
                        delete Conf;
 
214
                        return;
 
215
                }
 
216
 
214
217
                std::string confdir(ServerInstance->ConfigFileName);
215
218
                // +1 so we the path ends with a /
216
219
                confdir = confdir.substr(0, confdir.find_last_of('/') + 1);