aboutsummaryrefslogtreecommitdiffstats
path: root/storage.h
Commit message (Collapse)AuthorAgeLines
* Merge branch 'master' into patched-masterMarius Halden2016-11-21-0/+2
|\
| * Manual merge with wilmer's approach to handling missing protocolsdequis2016-11-21-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turns out he already implemented pretty much the same thing in the parson branch... last year. The differences between the two approaches are subtle (there aren't too many ways to do this, some lines are the exact same thing) but I decided I like his version better, so this mostly reverts a handful of my changes while keeping others. The main advantage of his approach is that no fake protocols are registered, no actual prpl functions are called, and the missing prpl is a singleton constant. New things compared to the implementation in the other branch: - The explain_unknown_protocol() function. - Fixed named chatrooms throwing a warning and losing the "account" setting when saving. See changes in irc_im.c - Fixed the "server" setting dropping when saving. See account.c Differences with my previous implementation: - Accounts with missing protocols don't autoconnect - 'account list' marks them as "(missing!)"
* | Add autosave after 30 secMarius Halden2016-08-02-0/+1
|/
* Authentication: scaffolding for multiple authentication backendsDennis Kaarsemaker2016-03-25-4/+5
| | | | | | | | | | | | | | | | | | | | | | | Instead of always putting users passwords in XML files, allow site admins to configure a different authentication method to integrate authentication with other systems. This doesn't add any authentication backends yet, merely the scaffolding. Notably: - Password checking and loading/removing from storage has been decoupled. A new auth_check_pass function is used to check passwords. It does check against the configured storage first, but will handle the authentication backends as well. The XML storage merely signals that a user's password should be checked using an authentication backend. - If unknown-to-bitlbee users identify using an authentication backend, they are automatically registered. - If an authentication backend is used, that fact is stored in the XML file, the password is not. Passwords are also stored unencrypted in this case, as the password used to encrypt them can change underneath us. - configure and Makefile changes for the backend objects
* Reindent everything to K&R style with tabsIndent2015-02-20-14/+14
| | | | | | | Used uncrustify, with the configuration file in ./doc/uncrustify.cfg Commit author set to "Indent <please@skip.me>" so that it's easier to skip while doing git blame.
* Fix incorrect Free Software Foundation addressMatej Cepl2015-01-16-2/+2
|
* Remove storage_rename() which was never tested/used, and current /NICK supportWilmer van der Gaast2012-06-08-2/+0
| | | | | should be sufficient.
* Completely reviewed all uses of irc->password, irc_setpass() andWilmer van der Gaast2008-09-06-4/+4
| | | | | | USTATUS_IDENTIFIED after another account overwriting vulnerability was found by Tero Marttila.
* Add GCC attributes.Jelmer Vernooij2007-10-12-1/+1
|
* xml_load() works pretty well now.Wilmer van der Gaast2006-06-14-2/+2
|
* Add support for 'primary' and 'migrate' account storages.Jelmer Vernooij2005-12-14-1/+1
| | | | | | Fix two bugs in the text storage backend that were introduced by my previous changes.
* Use helper functions rather then the backends directly. This will be Jelmer Vernooij2005-12-10-0/+8
| | | | | used for transparent upgrade support later on.
* Add check_pass functionJelmer Vernooij2005-12-08-0/+2
|
* Simplify storage API a bitJelmer Vernooij2005-12-08-6/+14
|
* Add abstraction layer for storageJelmer Vernooij2005-12-08-0/+48