aboutsummaryrefslogtreecommitdiffstats
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
* util.random: Restore friendlier error from 0.9/util.uuidKim Alvefur2016-01-311-1/+7
|
* util.random: Open /dev/urandom read-only, make seed() a noopKim Alvefur2016-01-121-4/+2
|
* Merge 0.9->0.10Kim Alvefur2016-01-081-1/+5
|\
| * 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.random: Use /dev/urandomKim Alvefur2016-01-061-24/+4
| |
* | util.uuid: Take random byte directly instead of the low bits from the ascii ↵Kim Alvefur2016-01-061-1/+1
| | | | | | | | value of a hex nibble
* | util.events: Document data structuresMatthew Wild2015-12-231-0/+5
| |
* | util.openssl: Fix style / whitespaceKim Alvefur2015-12-231-7/+7
| |
* | util.openssl: Rename variables for readabilityKim Alvefur2015-12-231-9/+9
| |
* | util.openssl: Move quoting and tostring call into escape functionKim Alvefur2015-12-231-3/+3
| |
* | util.array: Just use table.remove as array:pop()Kim Alvefur2015-12-231-5/+1
| |
* | util.array: Fix minory style issuesKim Alvefur2015-12-231-10/+10
| |
* | util.cache (and tests): Call on_evict after insertion of the new key, so ↵Matthew Wild2015-12-221-5/+6
| | | | | | | | inside on_evict we can be more certain about the current state of the cache (i.e. full, new item added, old item removed)
* | MergeMatthew Wild2015-12-162-47/+102
|\ \
| * | util.sslconfig: More descriptive variable names and also commentsKim Alvefur2015-12-131-31/+56
| | |
| * | util.datamanager: Add append to public apiKim Alvefur2015-12-111-0/+1
| | |
| * | util.datamanager: Return extra location infoKim Alvefur2015-12-111-3/+3
| | |
| * | util.datamanager: Make sure only strings are passed as data to append()Kim Alvefur2015-12-111-0/+1
| | |
| * | util.datamanager: Add some comments about the append functionKim Alvefur2015-12-111-0/+3
| | |
| * | util.datamanager: Handle potential error from :write() callKim Alvefur2015-12-111-3/+3
| | |
| * | util.datamanager: Handle potential issues from fallocateKim Alvefur2015-12-111-1/+10
| | |
| * | util.datamanager: No shadowing of variable [luacheck]Kim Alvefur2015-12-111-1/+3
| | |
| * | util.datamanager: Skip past second check if first attemtp to open file succeedsKim Alvefur2015-12-111-3/+3
| | |
| * | util.datamanager: In append() collect status when closing file handle as it ↵Kim Alvefur2015-12-111-3/+9
| | | | | | | | | | | | may fail (eg the implied flush)
| * | util.datamanager: Overwrite 'data' variable instead of shadownig it [luacheck]Kim Alvefur2015-12-111-1/+1
| | |
| * | util.datamanager: Factor out code for appending bytes to a fileKim Alvefur2015-12-111-10/+18
| | |
* | | util.dependencies: Use prosody.log() instead of global log()Matthew Wild2015-12-161-4/+4
|/ /
* | util.dataforms: Track which fields are included in a formKim Alvefur2015-12-081-2/+4
| |
* | util.cache: Small update to prefix private fields with an underscore, add a ↵Matthew Wild2015-11-261-32/+43
| | | | | | | | :count() method (same as util.queue) and add an optional on_evict callback
* | util.cache: Make sure cache size is specified as an integerKim Alvefur2015-11-251-0/+2
| |
* | util.session: How would you even send anything to a session?Kim Alvefur2015-11-241-0/+32
| |
* | util.session: How does a session relate do a connection?Kim Alvefur2015-11-241-0/+7
| |
* | util.session: What does the session say?Kim Alvefur2015-11-241-0/+8
| |
* | util.session: What is the identity of a session?Kim Alvefur2015-11-241-0/+7
| |
* | util.session: What is a session?Kim Alvefur2015-11-241-0/+11
| |
* | util.cache: Ordered key->value data structure, with size limit (same as pubsub)Matthew Wild2015-11-241-0/+91
| |
* | util.ip: Improve comparison, == doesn't necessarily handle IPv6 addresses ↵Matthew Wild2015-11-221-4/+1
| | | | | | | | correctly if they aren't normalized (case, ::, etc.)
* | util.queue: Add luacheck annotationsMatthew Wild2015-10-181-1/+2
| |
* | util.queue: Add :items() iteratorMatthew Wild2015-10-181-0/+13
| |
* | Merge 0.9->0.10Kim Alvefur2015-10-111-3/+7
|\|
| * util.openssl: Separate extension sections into one for self-signed certs and ↵Kim Alvefur2015-10-111-3/+7
| | | | | | | | one for requests
* | util.jid: Fix backoutKim Alvefur2015-10-021-1/+1
| |
* | Backout 7e820979fd9b (broke tests)Kim Alvefur2015-10-021-1/+5
| |
* | util.dataforms: Fix interaction of required fields and empty string values ↵Kim Alvefur2015-09-121-3/+4
| | | | | | | | (fixes #521)
* | util.dataforms: Refactor parsing to reuse simple text parser instead of ↵Kim Alvefur2015-09-121-26/+21
| | | | | | | | duplicate code
* | util.stanza: Export xml_escape (missed during removal of module() calls)Kim Alvefur2015-09-031-0/+1
| |