Kim Alvefur
|
8136aa749a
|
util: Add compat for prosody module name change to C sources
|
2023-03-17 18:03:07 +01:00 |
|
Kim Alvefur
|
dff4beae02
|
util-src: Remove Lua 5.1 compat macros
Part of #1600
|
2022-07-01 21:21:21 +02:00 |
|
Kim Alvefur
|
625ec0a93f
|
util-src: Use the luaL_pushfail API added in Lua 5.4 to highlight all failure conditions
Actually just an alias of pushnil, but it does make it more obvious
where the failure conditions are, which is good for readability.
|
2020-06-07 02:25:56 +02:00 |
|
Emmanuel Gil Peyrot
|
8613dc1739
|
util.encodings: Remove redundant cast
|
2019-12-01 23:34:49 +01:00 |
|
Emmanuel Gil Peyrot
|
d209c0c677
|
util.encodings: Don’t export unneeded symbols
This reduces the binary size from 22704 B to 18592 B.
|
2019-12-01 23:34:45 +01:00 |
|
Kim Alvefur
|
b679ffe808
|
util.encodings: Don't ignore non-strings passed to stringprep functions
If you manage to pass a table or something weird to these, you deserve
to know.
|
2019-11-02 13:09:54 +01:00 |
|
Kim Alvefur
|
42aeda373c
|
util.encodings: Strictly verify that the 'strict' *prep argument is a boolean
This is to prevent mistakes like nodeprep(username:gsub("a","b")) from
unintentionally invoking strict mode.
|
2019-10-30 16:22:44 +01:00 |
|
Kim Alvefur
|
41a40ab74b
|
util.encodings: Optional strict flag to stringprep
|
2019-04-24 15:01:00 +02:00 |
|
Kim Alvefur
|
bf1a0c2f05
|
util.encodings: Spell out all IDNA 2008 options ICU has
|
2019-09-11 00:40:30 +02:00 |
|
Kim Alvefur
|
bb4cb60fb8
|
util.encodings: Switch ICU binding to IDNA2008 (fixes #533, #1301)
|
2019-09-11 00:14:59 +02:00 |
|
Kim Alvefur
|
63c03ce6ef
|
util.encodings: Declare absence of arguments [-Wstrict-prototypes]
|
2019-05-13 11:30:45 +02:00 |
|
Kim Alvefur
|
183b42baa0
|
util.encodings: Add compat with ICU before version 58
|
2019-04-29 15:53:52 +02:00 |
|
Kim Alvefur
|
43aed81cb5
|
util.encodings: Add binding to confusables skeleton function in ICU
|
2019-04-24 22:40:38 +02:00 |
|
Kim Alvefur
|
c42a786ec7
|
util.encodings: Allow unassigned code points in ICU mode to match libidn behavior (fixes #1348)
|
2019-04-24 16:16:19 +02:00 |
|
Emmanuel Gil Peyrot
|
2363ba3749
|
encodings: Explicitly say that base64 decoding falls through in a switch, fixes a warning in gcc 7+.
|
2018-08-08 09:29:32 +02:00 |
|
Kim Alvefur
|
8956f32a9c
|
util.encodings: Use the 'idx' argument correctly [-Wunused-parameter]
|
2017-10-05 12:48:36 +02:00 |
|
Kim Alvefur
|
711e2c8713
|
util.encodings: Make limit lookup table a const (from Lua f2a813ae)
|
2017-03-22 23:40:53 +01:00 |
|
Kim Alvefur
|
40d8e257d8
|
util-src/*.c: Attach pointer * to name instead of type
|
2017-02-12 16:42:29 +01:00 |
|
Kim Alvefur
|
0d28378a7a
|
util-src/*.c: Squeeze repeated blank lines
|
2017-01-23 18:33:35 +01:00 |
|
Kim Alvefur
|
5b10d245e3
|
util-src: Make C modules assert that the Lua runtime matches what it was compiled for
|
2017-01-08 14:21:08 +01:00 |
|
Kim Alvefur
|
ddeed6873e
|
util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to support 5.1
|
2015-04-26 12:38:37 +02:00 |
|
Kim Alvefur
|
8f40f1f4e6
|
util.encodings: Move declarations to top of function [pedantic]
|
2015-05-02 14:52:51 +02:00 |
|
Kim Alvefur
|
e866ef555a
|
util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches --break-blocks --pad-oper --unpad-paren --add-brackets --align-pointer=type --lineend=linux
|
2015-04-03 19:52:48 +02:00 |
|
Kim Alvefur
|
603d0df6e2
|
Merge 0.9->0.10 again
|
2015-03-27 00:27:29 +01:00 |
|
Kim Alvefur
|
b9f798f83a
|
util.encodings: Expose UTF-8 validation and length checking functions
|
2015-03-23 14:27:30 +01:00 |
|
Kim Alvefur
|
7bf2c14e9f
|
util.encodings: Perform validation of UTF-8 strings before passing to libidn (Based on code from the utf8 library in Lua 5.3)
|
2015-03-23 14:26:34 +01:00 |
|
Kim Alvefur
|
8affcc3ff7
|
util-src/*.c: Add macro for compiling with Lua 5.2
|
2014-09-17 14:30:29 +02:00 |
|
Kim Alvefur
|
4f6f0fe480
|
util-src/*.c: Use the more concise lua_setfield
|
2014-09-17 02:23:17 +02:00 |
|
Kim Alvefur
|
c57e98cd7d
|
util-src/*.c: Don't create globals when loaded
|
2014-09-16 21:56:18 +02:00 |
|
Matthew Wild
|
8b31cde5a9
|
util.encodings: Fix small typo introduced in 7f789266b741
|
2011-06-04 19:18:11 +01:00 |
|
Paul Aurich
|
544b19989d
|
util.encodings: Check return values before proceeding
|
2011-05-22 16:14:10 -07:00 |
|
Paul Aurich
|
6499dc4b3b
|
util.encodings: Swap code order ("ifndef" bugs me)
|
2011-05-22 15:40:16 -07:00 |
|
Paul Aurich
|
ee01f42195
|
util.encodings: Fix idna.to_unicode
|
2011-05-22 15:26:03 -07:00 |
|
Matthew Wild
|
deff5bbb18
|
util.encodings: Switch comment styles to build ok as ANSI C
|
2010-12-26 05:45:35 +00:00 |
|
Matthew Wild
|
1f3e0e60e4
|
util-src/Makefile, util-src/encodings.c{,pp}: Port ICU code to C, rename encodings.cpp back to .c and amend the Makefile accordingly
|
2010-12-17 22:32:21 +00:00 |
|
Tobias Markmann
|
93b0dcf56a
|
util.encodings: Support for ICU for IDNA operations.
|
2010-12-14 15:03:37 +01:00 |
|
Matthew Wild
|
2bc0606453
|
Update copyright headers for 2010
|
2010-03-22 17:06:15 +00:00 |
|
Waqas Hussain
|
e376e12502
|
util.encodings: Use STD3 ASCII rules for idna.to_ascii.
|
2010-02-10 00:12:48 +05:00 |
|
Waqas Hussain
|
724ffca435
|
util.encodings: Removed a bit of unreachable code.
|
2009-10-02 16:46:39 +05:00 |
|
Waqas Hussain
|
eadb0d45b9
|
util.encodings: Included idn-free.h, which explicitly declares the idn_free function.
|
2009-10-02 16:45:54 +05:00 |
|
Waqas Hussain
|
27766b1c03
|
util.encodings: Fixed: Last change was not ANSI C compatible.
|
2009-10-02 16:44:14 +05:00 |
|
Waqas Hussain
|
930f0ab083
|
util.encodings: Fixed an issue with cross-module memory deallocation (crashes on some windows versions).
|
2009-09-22 22:21:15 +05:00 |
|
Matthew Wild
|
c80f91dc02
|
0.3->0.4
|
2009-03-20 20:16:25 +00:00 |
|
Matthew Wild
|
25d0df0a5b
|
Licensing/version updates for some files (forgot to commit, doh...)
|
2009-02-02 18:03:18 +00:00 |
|
Waqas Hussain
|
f7596f63cf
|
Fixed util.encodings.base64.decode to not truncate results when encountering an '=' before the end of the given input.
|
2008-12-08 03:19:11 +05:00 |
|
Matthew Wild
|
72f6ff8408
|
and the C files too
|
2008-12-03 14:45:03 +00:00 |
|
Tobias Markmann
|
a718775bd4
|
Use unsigned int instead of uint because uint is already in use on OS X.
|
2008-11-28 19:24:08 +01:00 |
|
Tobias Markmann
|
0df2b3f0c5
|
To use free you should include stdlib.h rather than malloc.h according to man page of free() and various C reference websites.
|
2008-11-28 18:36:04 +01:00 |
|
Waqas Hussain
|
2fdb13c54d
|
Minor changes to C files (to prevent compiler warnings)
|
2008-11-27 21:47:13 +05:00 |
|
Matthew Wild
|
1985b40ecf
|
Fix for hashes.c and encodings.c to rename luaopen for util_*
|
2008-11-26 22:45:33 +00:00 |
|