Log

util-src/encodings.c @ 13011:16b47c3b44f3

description author age
util: Add compat for prosody module name change to C sources Kim Alvefur Fri, 17 Mar 2023 18:03:07 +0100
util-src: Remove Lua 5.1 compat macros Kim Alvefur Fri, 01 Jul 2022 21:21:21 +0200
util-src: Use the luaL_pushfail API added in Lua 5.4 to highlight all failure conditions Kim Alvefur Sun, 07 Jun 2020 02:25:56 +0200
util.encodings: Remove redundant cast Emmanuel Gil Peyrot Sun, 01 Dec 2019 23:34:49 +0100
util.encodings: Don’t export unneeded symbols Emmanuel Gil Peyrot Sun, 01 Dec 2019 23:34:45 +0100
util.encodings: Don't ignore non-strings passed to stringprep functions Kim Alvefur Sat, 02 Nov 2019 13:09:54 +0100
util.encodings: Strictly verify that the 'strict' *prep argument is a boolean Kim Alvefur Wed, 30 Oct 2019 16:22:44 +0100
util.encodings: Optional strict flag to stringprep Kim Alvefur Wed, 24 Apr 2019 15:01:00 +0200
util.encodings: Spell out all IDNA 2008 options ICU has Kim Alvefur Wed, 11 Sep 2019 00:40:30 +0200
util.encodings: Switch ICU binding to IDNA2008 (fixes #533, #1301) Kim Alvefur Wed, 11 Sep 2019 00:14:59 +0200
util.encodings: Declare absence of arguments [-Wstrict-prototypes] Kim Alvefur Mon, 13 May 2019 11:30:45 +0200
util.encodings: Add compat with ICU before version 58 Kim Alvefur Mon, 29 Apr 2019 15:53:52 +0200
util.encodings: Add binding to confusables skeleton function in ICU Kim Alvefur Wed, 24 Apr 2019 22:40:38 +0200
util.encodings: Allow unassigned code points in ICU mode to match libidn behavior (fixes #1348) 0.11 Kim Alvefur Wed, 24 Apr 2019 16:16:19 +0200
encodings: Explicitly say that base64 decoding falls through in a switch, fixes a warning in gcc 7+. Emmanuel Gil Peyrot Wed, 08 Aug 2018 09:29:32 +0200
util.encodings: Use the 'idx' argument correctly [-Wunused-parameter] Kim Alvefur Thu, 05 Oct 2017 12:48:36 +0200
util.encodings: Make limit lookup table a const (from Lua f2a813ae) Kim Alvefur Wed, 22 Mar 2017 23:40:53 +0100
util-src/*.c: Attach pointer * to name instead of type Kim Alvefur Sun, 12 Feb 2017 16:42:29 +0100
util-src/*.c: Squeeze repeated blank lines Kim Alvefur Mon, 23 Jan 2017 18:33:35 +0100
util-src: Make C modules assert that the Lua runtime matches what it was compiled for Kim Alvefur Sun, 08 Jan 2017 14:21:08 +0100
util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to support 5.1 Kim Alvefur Sun, 26 Apr 2015 12:38:37 +0200
util.encodings: Move declarations to top of function [pedantic] Kim Alvefur Sat, 02 May 2015 14:52:51 +0200
util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches --break-blocks --pad-oper --unpad-paren --add-brackets --align-pointer=type --lineend=linux Kim Alvefur Fri, 03 Apr 2015 19:52:48 +0200
Merge with merge merge merge Matthew Wild Fri, 27 Mar 2015 22:19:44 +0000
Merge 0.9->0.10 (third time lucky) Matthew Wild Fri, 27 Mar 2015 22:11:58 +0000
Merge with merge Kim Alvefur Fri, 27 Mar 2015 00:28:16 +0100
Merge 0.9->0.10 again Kim Alvefur Fri, 27 Mar 2015 00:27:29 +0100
Merge 0.9->0.10 Matthew Wild Thu, 26 Mar 2015 16:48:39 +0000
util.encodings: Expose UTF-8 validation and length checking functions Kim Alvefur Mon, 23 Mar 2015 14:27:30 +0100
util.encodings: Perform validation of UTF-8 strings before passing to libidn (Based on code from the utf8 library in Lua 5.3) Kim Alvefur Mon, 23 Mar 2015 14:26:34 +0100
util-src/*.c: Add macro for compiling with Lua 5.2 Kim Alvefur Wed, 17 Sep 2014 14:30:29 +0200
util-src/*.c: Use the more concise lua_setfield Kim Alvefur Wed, 17 Sep 2014 02:23:17 +0200
util-src/*.c: Don't create globals when loaded Kim Alvefur Tue, 16 Sep 2014 21:56:18 +0200
util.encodings: Fix small typo introduced in 7f789266b741 Matthew Wild Sat, 04 Jun 2011 19:18:11 +0100
util.encodings: Check return values before proceeding Paul Aurich Sun, 22 May 2011 16:14:10 -0700
util.encodings: Swap code order ("ifndef" bugs me) Paul Aurich Sun, 22 May 2011 15:40:16 -0700
util.encodings: Fix idna.to_unicode Paul Aurich Sun, 22 May 2011 15:26:03 -0700
util.encodings: Switch comment styles to build ok as ANSI C Matthew Wild Sun, 26 Dec 2010 05:45:35 +0000
util-src/Makefile, util-src/encodings.c{,pp}: Port ICU code to C, rename encodings.cpp back to .c and amend the Makefile accordingly base util-src/encodings.cpp@bae1d44e67b0 Matthew Wild Fri, 17 Dec 2010 22:32:21 +0000
Update copyright headers for 2010 Matthew Wild Mon, 22 Mar 2010 17:06:15 +0000
util.encodings: Use STD3 ASCII rules for idna.to_ascii. Waqas Hussain Wed, 10 Feb 2010 00:12:48 +0500
Merge Waqas Hussain Fri, 02 Oct 2009 17:14:54 +0500
util.encodings: Removed a bit of unreachable code. Waqas Hussain Fri, 02 Oct 2009 16:46:39 +0500
util.encodings: Included idn-free.h, which explicitly declares the idn_free function. Waqas Hussain Fri, 02 Oct 2009 16:45:54 +0500
util.encodings: Fixed: Last change was not ANSI C compatible. Waqas Hussain Fri, 02 Oct 2009 16:44:14 +0500
util.encodings: Don't throw an error but return nil when passed nil or a non-string value Matthew Wild Tue, 29 Sep 2009 19:05:32 +0100
util.encodings: Fixed an issue with cross-module memory deallocation (crashes on some windows versions). Waqas Hussain Tue, 22 Sep 2009 22:21:15 +0500
0.3->0.4 Matthew Wild Fri, 20 Mar 2009 20:16:25 +0000
Licensing/version updates for some files (forgot to commit, doh...) Matthew Wild Mon, 02 Feb 2009 18:03:18 +0000
Fixed util.encodings.base64.decode to not truncate results when encountering an '=' before the end of the given input. Waqas Hussain Mon, 08 Dec 2008 03:19:11 +0500
and the C files too Matthew Wild Wed, 03 Dec 2008 14:45:03 +0000
Use unsigned int instead of uint because uint is already in use on OS X. Tobias Markmann Fri, 28 Nov 2008 19:24:08 +0100
To use free you should include stdlib.h rather than malloc.h according to man page of free() and various C reference websites. Tobias Markmann Fri, 28 Nov 2008 18:36:04 +0100
Minor changes to C files (to prevent compiler warnings) Waqas Hussain Thu, 27 Nov 2008 21:47:13 +0500
Fix for hashes.c and encodings.c to rename luaopen for util_* Matthew Wild Wed, 26 Nov 2008 22:45:33 +0000
Removed commented code Waqas Hussain Wed, 26 Nov 2008 01:55:07 +0500
Added util-src/encodings.c - support for base64, stringprep and idna encodings Waqas Hussain Wed, 26 Nov 2008 01:45:25 +0500