aboutsummaryrefslogtreecommitdiffstats
path: root/storage.c
Commit message (Collapse)AuthorAgeLines
* Merge branch 'master' into patched-masterMarius Halden2016-12-27-1/+1
|\
| * Fix some clang static analyzer warningsdequis2016-12-26-1/+1
| | | | | | | | Nothing interesting.
* | Merge branch 'master' into patched-masterMarius Halden2016-11-21-0/+4
|\|
| * Manual merge with wilmer's approach to handling missing protocolsdequis2016-11-21-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+34
|/
* Authentication: scaffolding for multiple authentication backendsDennis Kaarsemaker2016-03-25-4/+4
| | | | | | | | | | | | | | | | | | | | | | | 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
* Remove vestiges of storage_textDennis Kaarsemaker2016-03-20-1/+0
| | | | It was removed in ba7d16f, but this remained.
* Reindent everything to K&R style with tabsIndent2015-02-20-51/+61
| | | | | | | 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-43/+0
| | | | | should be sufficient.
* Load/save code. It'd be better if the OTR module would just save its infoWilmer van der Gaast2010-09-01-0/+29
| | | | | | in BitlBee settings that automatically end up in the existing .xml files (or whatever storage is used), but I realise this is non-trivial.
* Pluginify this thing a little bit. Not so much in the dynamically loadableWilmer van der Gaast2010-09-01-14/+5
| | | | | sense of the word, more in a way that core files don't have to include otr.h.
* First step in this merge. Mostly a bzr merge and then a cleanup of conflictsWilmer van der Gaast2010-08-24-5/+14
|\ | | | | | | | | and parts I want to/have to redo (because of ui-fix).
| * pretty blind try at merging in the latest trunkSven Moritz Hallberg2009-03-12-1/+0
| |\
| * | commit updates by ashish shukla <wahjava@gmail.com>Sven Moritz Hallberg2009-03-12-9/+28
| | |
| * | OTR support, first checkinSven Moritz Hallberg2008-02-03-4/+17
| | |
* | | Now seems like a pretty good time to finally kill crypting.c and storage_text.Wilmer van der Gaast2010-03-24-2/+0
| |/ |/| | | | | | | | | | | | | This means people won't be able to upgrade from BitlBee 1.0 to this version anymore but only via 1.2. 1.0 is old enough that I don't really expect this to be a problem.
* | Completely reviewed all uses of irc->password, irc_setpass() andWilmer van der Gaast2008-09-06-9/+31
|/ | | | | | USTATUS_IDENTIFIED after another account overwriting vulnerability was found by Tero Marttila.
* Fixed text_load(), added detection of primary storage backends withoutWilmer van der Gaast2006-07-05-1/+1
| | | | | | save support (which shouldn't be allowed) and added a call to nick_lc() to xml_save() so at least nicks should now be case-insensitive.
* Cleaned up Makefiles + configure: Cleaning up bitlbee.pc, removed the secondWilmer van der Gaast2006-06-28-1/+1
| | | | | | | | piece of libevent probing code that mysteriously appeared (?), better handling of storage backends, an SSL module is now always included (so BitlBee can be compiled again when building without MSN- and Jabber-support (http_client also depends on SSL libs and can't be disabled)), oh, and fixed a compiler warning.
* xml_load() works pretty well now.Wilmer van der Gaast2006-06-14-3/+6
|
* Add initial draft of BitlBee schemaJelmer Vernooij2005-12-21-0/+2
|
* Add support for 'primary' and 'migrate' account storages.Jelmer Vernooij2005-12-14-6/+108
| | | | | | 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/+25
| | | | | used for transparent upgrade support later on.
* Add abstraction layer for storageJelmer Vernooij2005-12-08-0/+58