aboutsummaryrefslogtreecommitdiffstats
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
* util.dependencies: Set global 'ssl' for compat with LuaSec 0.6 (fixes #749)Kim Alvefur2016-09-231-0/+3
|
* util.datamanager: Unreference file handle after closing it to prevent trying ↵Kim Alvefur2016-02-251-0/+1
| | | | to close it again (fixes #632)
* util.uuid: Open /dev/urandom read-only, make seed() a noopKim Alvefur2016-01-101-4/+2
|
* util.uuid: Use /dev/urandomKim Alvefur2016-01-061-27/+16
|
* util.ip: Support zone id syntax in IPv6 addressesKim Alvefur2016-01-041-1/+5
|
* util.ip: Fix protocol detection of IPv6 addresses beginning with : ↵Matthew Wild2013-05-181-2/+4
| | | | [Backported from 0.10]
* util.ip: Automatically determine protocol of IP address if none specified. ↵Matthew Wild2013-05-171-1/+9
| | | | Return error if invalid. [Backported from 0.10]
* util.uuid: Remove unused importKim Alvefur2015-12-081-1/+0
|
* util.openssl: Separate extension sections into one for self-signed certs and ↵Kim Alvefur2015-10-111-3/+7
| | | | one for requests
* util.datamanager: Fix traceback from trying to purge when storage is empty ↵Kim Alvefur2015-05-131-1/+5
| | | | or otherwise unaccessible (fixes #496)
* util.datamanager: Fix traceback due to %s in log messageKim Alvefur2015-04-031-1/+1
|
* util.datamanager: Check that the global 'prosody' exists before using it ↵Kim Alvefur2015-02-201-1/+1
| | | | (fixes nil indexing in use outside of prosody)
* Backout changeset 6e67c73f730c: not a major fix and it breaks interop with ↵Matthew Wild2014-10-241-13/+2
| | | | at least Isode M-Link, and possibly standards, while it's not clear it actually fixes the original problem either.
* util/dataforms: Make sure we iterate over field tagsdaurnimator2014-10-071-1/+1
|
* util.stanza: Escape newlines and tabs (\r\n\t) when serializing stanzas. ↵Waqas Hussain2014-10-081-2/+13
| | | | \r\n transforms into \n otherwise, and \r\n\t in attributes transforms into spaces.
* util.filters: Ignore filters being added twice (fixes issues on removal)Matthew Wild2014-08-281-0/+2
|
* util.xmppstream: When error is 'no-stream', pass the received tagname to the ↵Matthew Wild2014-08-231-1/+1
| | | | error handler
* prosodyctl: Verify that 'pidfile' is a string, show friendly error otherwiseKim Alvefur2014-08-261-0/+4
|
* util.dataforms: Add support for XEP-0221: Data Forms Media ElementKim Alvefur2014-04-221-0/+9
|
* util.dependencies: Check for Lua 5.1. We don't currently support any other ↵Waqas Hussain2014-04-091-0/+8
| | | | versions. LuaJIT identifies as 5.1.
* util.xmppstream: Also disable CharacterData merging after stream restartsMatthew Wild2014-04-021-1/+1
|
* util.xmppstream: Disable LuaExpat's buffering (if possible)Matthew Wild2014-04-021-3/+3
|
* util.dependencies: Log error when LuaExpat is not capable of enforcing ↵Matthew Wild2014-03-301-1/+9
| | | | stanza size limits
* util.xmppstream: Implement stanza size limiting, default limit 10MBMatthew Wild2014-03-301-6/+80
|
* util.pluginloader: Always use path separator from package.config (thanks Junne)Kim Alvefur2014-03-091-4/+4
|
* util.jid: Strip trailing '.' when normalizing hostnamesMatthew Wild2013-12-161-1/+4
|
* util.set: Remove unused variableMatthew Wild2013-11-101-1/+1
|
* util.filters: Fix inserting items so that higher priority filters run firstKim Alvefur2013-09-301-1/+1
|
* util.set: Fix :include() and :exclude() methods to iterate the input set ↵Matthew Wild2013-09-021-2/+2
| | | | correctly
* util.dataforms: Return nil for empty list-mutli responses, to be consistent ↵Florian Zeitz2013-06-141-1/+5
| | | | with other readers
* util.pubsub: Check whether node exists, when deletingFlorian Zeitz2013-06-121-0/+3
|
* util.pubsub: Fix get_subscriptions to not pass a boolean as node name ↵Kim Alvefur2013-05-261-1/+1
| | | | (thanks jonas)
* util.ip: Convert IPv4 mapped addresses to hex.Kim Alvefur2013-05-181-0/+7
|
* util.json: New, faster, stricter, more compliant JSON decoder. Now returns ↵Waqas Hussain2013-05-071-192/+155
| | | | nil,err instead of throwing errors on invalid input.
* util.array: Wrap tostring() output in {} (otherwise empty arrays print as "").Waqas Hussain2013-05-071-1/+1
|
* util.json: Make setmetatable local.Waqas Hussain2013-05-061-1/+1
|
* util.json: Fix variable name typo which broke util.json when util.array was ↵Waqas Hussain2013-05-061-1/+1
| | | | missing.
* util.json: Optimize long string parsing.Waqas Hussain2013-05-051-5/+5
|
* Merge with FlorobMatthew Wild2013-05-011-1/+1
|\
| * util.dataforms: Add support for generating type='fixed' fieldsFlorian Zeitz2013-02-111-1/+1
| |
* | util.rfc{3484,6724}: Update to RFC 6724Florian Zeitz2013-04-302-8/+30
| |
* | util.openssl: Write the distinguished_name part of the config in a ↵Kim Alvefur2013-04-291-1/+21
| | | | | | | | consistent order
* | util.hashes, util.sasl.scram: Implement SCRAM-SHA1's Hi in CFlorian Zeitz2013-04-281-13/+2
| |
* | util.hmac, util.hashes: Implement HMAC functions in C, and move to util.hashesFlorian Zeitz2013-04-272-60/+6
| |
* | util.prosodyctl: Initialize storagemanager on the host before initializing ↵Matthew Wild2013-04-271-2/+4
| | | | | | | | usermanager. This fixes brokenness when the auth provider opens the store on load (as they all do since eeea0eb2602a) (thanks nulani)
* | util.json: New, improved, fixed codepoint to UTF-8 conversion.Waqas Hussain2013-04-231-26/+11
| |
* | util.json: Make encode(decode("[]"))=="[]".Waqas Hussain2013-04-231-2/+10
| |
* | util.adhoc: New util for generating common adhoc handler patternsFlorian Zeitz2013-04-231-0/+31
| |
* | mod_storage_sql2 (temporary name), sql.lib, util.sql: New SQL API supporting ↵Matthew Wild2013-04-181-0/+340
| | | | | | | | cross-module connection sharing, transactions and Things - a work in progress
* | util.http: Refactor and import all necessary functionsMatthew Wild2013-04-121-9/+13
| |