Files @ 0729d364ca25
Branch filter:

Location: libtransport.git/include/Swiften/Server/UserRegistry.h

Vladimír Matěna
Fix double free in DummyConnectionServer

Do not create shared ptr from this as this lead to double free in
UserRegistryTest::login test. Shared ptr was needed to set event
owner in acceptConnection, actually it is never needed as events
are never filtered by owner. Thus it was removed and there is no
need to create shared ptr from this.
/*
 * Copyright (c) 2010 Remko Tronçon
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt for more information.
 */

#pragma once

#include <string>
#include <Swiften/Base/SafeByteArray.h>
#include <boost/signal.hpp>
#include "Swiften/Server/ServerFromClientSession.h"

namespace Swift {
	class JID;

	class UserRegistry {
		public:
			virtual ~UserRegistry();

			virtual void isValidUserPassword(const JID& user, ServerFromClientSession *session, const SafeByteArray& password) = 0;

			virtual void stopLogin(const JID &/*user*/, ServerFromClientSession *) {};
	};
}