aboutsummaryrefslogtreecommitdiffstats
path: root/util
Commit message (Expand)AuthorAgeFilesLines
* util.jid: Simplify boolean logic in conditionalsMatthew Wild2022-10-111-3/+3
* util.jid: Remove redundant check from split() (micro-optimization?)Matthew Wild2022-10-111-2/+1
* util.dbuffer: Add efficient shortcuts for discard() in certain casesMatthew Wild2022-10-111-2/+6
* util.dbuffer: Remove redundant code (read_chunk() cannot fail at this point)Matthew Wild2022-10-111-7/+3
* Merge 0.12->trunkKim Alvefur2022-10-091-3/+3
|\
| * util.jsonschema: Use same integer/float logic on Lua 5.2 and 5.3Kim Alvefur2022-10-091-2/+2
| * util.jsonschema: Fix Lua 5.2 integer compatKim Alvefur2022-10-091-1/+1
* | util.promise: Remove line that was supposed to be removed in eb9814372c54Matthew Wild2022-10-071-1/+0
* | util.promise: Remove some redundant checks, add tests confirming redundancyMatthew Wild2022-10-071-4/+0
* | util.roles: Add a :policies() method to iterate through available policiesMatthew Wild2022-10-071-0/+10
* | util.roles: Return nil if the role has no explicit policy (fixes inheritance)Matthew Wild2022-10-071-1/+1
* | util.iterators: join: Work even with only a single iterator in the chainMatthew Wild2022-10-061-1/+2
* | prosodyctl: check turn: More clearly indicate the error is from TURN serverMatthew Wild2022-10-061-1/+1
* | util.jwt: More robust ECDSA signature parsing, fail early on unexpected lengthMatthew Wild2022-09-301-1/+5
* | util.jwt: Add support for ES512 (+ tests)Matthew Wild2022-09-291-0/+1
* | util.crypto, util.jwt: Generate consistent signature sizes (via padding)Matthew Wild2022-09-291-4/+4
* | Merge 0.12->trunkKim Alvefur2022-09-151-0/+5
|\|
| * util.stanza: Return nil instead of nothing (fix test with luassert >=1.9)Kim Alvefur2022-09-151-0/+5
| * luacheck: Shut up (backports 3caff1f93520, ignores module deleted in trunk)Kim Alvefur2022-05-301-2/+2
* | util.paseto: Do strict type check in pae() functionKim Alvefur2022-07-111-0/+3
* | util.paseto: Drop custom wrappers around key objectsMatthew Wild2022-07-111-46/+5
* | util.paseto: Export similar API to new util.jwt for ease and consistencyMatthew Wild2022-07-111-0/+21
* | util.paseto: Error early on invalid keysMatthew Wild2022-07-111-0/+2
* | util.paseto: Fix to decode footer before comparisonMatthew Wild2022-07-111-0/+1
* | util.jwt: Add new init() convenience method to obtain both signer and verifierMatthew Wild2022-07-111-0/+6
* | util.jwt: Consolidate payload parsing, ensure it's always a valid objectMatthew Wild2022-07-111-11/+13
* | util.jwt: Provide built-in token expiry support (defaults to 3600s lifetime)Matthew Wild2022-07-111-3/+28
* | util.jwt: All the algorithms (+ all the tests!)Matthew Wild2022-07-021-5/+12
* | util.crypto: More digests for sign/verify, use macros for clarity/consistencyMatthew Wild2022-07-021-2/+2
* | util.jwt: Add support for RSA-based algorithms (RS256, PS256)Matthew Wild2022-07-021-14/+35
* | util.jwt: Add support/tests for ES256 via improved API and using util.cryptoMatthew Wild2022-07-011-19/+121
* | util.paseto: Implementation of PASETO v4.public tokensMatthew Wild2022-06-241-0/+123
* | util.stanza: Add add_error() to simplify adding error tags to existing stanzasMatthew Wild2022-08-291-25/+31
* | util.roles: Add new utility module to consolidate role objects and methodsMatthew Wild2022-07-191-0/+100
* | util.session: Add role management methodsMatthew Wild2022-06-151-0/+6
* | util.stanza: Add method for extracting a single attribute valueKim Alvefur2022-08-171-0/+8
* | util.datetime: Remove a lineKim Alvefur2022-08-171-2/+1
* | util.datetime: Add support for sub-second precision timestampsKim Alvefur2022-08-141-7/+19
* | doap: Update XEP versions for which no code changes appear neededKim Alvefur2022-08-081-0/+1
* | various: Update IETF RFC URLs for tools.ietf.org transitionKim Alvefur2022-08-051-6/+6
* | util.sasl.scram: Add 'tls-exporter' as recognised channel binding methodKim Alvefur2022-07-271-1/+1
* | compat: Use table.pack (there since Lua 5.2) over our util.tableKim Alvefur2022-07-113-3/+3
* | compat: Remove handling of Lua 5.1 location of 'unpack' functionKim Alvefur2022-07-117-7/+7
* | Merge 0.12->trunkKim Alvefur2022-07-082-145/+168
|\|
| * util.datamapper: Improve handling of schemas with non-obvious "type"Kim Alvefur2022-07-081-10/+27
| * util.jsonschema: Fix validation to not assume presence of "type" fieldKim Alvefur2022-07-081-135/+141
* | util.envload: Remove Lua 5.1 methodKim Alvefur2022-07-051-29/+10
* | util: Remove various Lua 5.1 compatibility hacksKim Alvefur2022-07-025-31/+2
* | util.dependencies: Reject Lua 5.1, Lua 5.2 or later is now required (see #1600)Kim Alvefur2022-07-021-2/+2
* | util.dependencies: Deprecate support for Lua 5.1, this is your final warningKim Alvefur2022-06-301-1/+1