| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
By aborting early, the failure should be brought to the attention
somehow.
|
| |
|
|
|
|
|
|
|
|
|
| |
signalfd allows handling signal events using the same method as sockets,
via file descriptors. Thus all signal dispatch can go through the same
main event loop as everything else, removing need for thread-scary
signal handling where execution would just jump to the signal handler
regardless of the state of Lua, and needing to keep track of Lua
states/threads.
|
|
|
|
|
| |
This returns the number of bits that two strings have in common. It is
significantly more efficient than similar calculations in Lua.
|
|
|
|
|
|
| |
With epoll(7), MAX_EVENTS controls how many events can be retrieved in one
epoll_wait call, while with poll(2) this MAX_WATCHED controls how many
sockets or other FDs can be watched at once.
|
|
|
|
|
|
| |
Better performance under load maybe?
See b890ceb1c24f for previous increase
|
|
|
|
|
| |
Should have been part of f33887f925e1 to ensure it won't skip processing
timers at all when very busy.
|
|
|
|
|
|
| |
Allows implementing e.g. a FIFO
Will probably only work on some Linux file systems like ext4.
|
|
|
|
| |
Because diffstat.
|
| |
|
|
|
|
|
| |
This defines close(), which is only used with epoll, hence we don't need
to include it when building in poll or select mode.
|
|
|
|
|
|
|
|
| |
With `gcc-12 -Wstrict-prototypes` the following warning is shown:
crypto.c:43:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]
43 | static BIO* new_memory_BIO() {
| ^~~~~~~~~~~~~~
|
| |
|
|
|
|
| |
Introduced in dbe9781fd278
|
|
|
|
| |
This is required by PASETO v3.local
|
|
|
|
| |
These are needed for PASETO v3.local.
|
|
|
|
|
|
| |
This fixes the signature parsing and building to work correctly. Sometimes
a signature was one or two bytes too short, and needed to be padded. OpenSSL
can do this for us.
|
|
|
|
|
|
|
|
| |
In Lua 5.3 LUAL_BUFFERSIZE is a macro computed from sizeof and is thus
not known at pre-processing time, so this does not work.
Since Lua 5.1 is no longer supported, we can use luaL_prepbuffsize()
which is available from Lua 5.2
|
|
|
|
|
|
|
|
|
| |
Removes assumption that LUAL_BUFFERSIZE is known at pre-processing time,
which it is not in Lua 5.3 and 5.4, where it is a computed macro based
on sizeof.
Allocation of stack space is safer and faster, no need to worry about
luaL_prepbuffer failing to allocate memory and skipping free()
|
| |
|
| |
|
|
|
|
| |
These are used by the RS*** and PS*** family of JOSE algorithms (e.g. in JWTs)
|
|
|
|
|
| |
Specifically, ED25519 key generation/import/export, sign/verify operations,
and AES encrypt/decrypt.
|
|
|
|
|
| |
The macros in this header allow creation of GC-managed objects from manually-
managed C alloc/free APIs.
|
|
|
|
|
|
|
| |
Probably a duplicate of the comment next to Lmove, recorded by mistake
Lpack can probably be removed at some point in the near future once we
are confident it is not used anywhere.
|
|
|
|
| |
Part of #1600
|
|
|
|
|
|
|
|
|
| |
Reverts some of 1e41dd0f8353
Seems HMAC() isn't deprecated after all? Must have been at some point
according to #1589
Twice as fast for some reason.
|
| |
|
|
|
|
| |
Unused since 9f1c5ae8d70b
|
|
|
|
| |
With luck, might contain more details than just "failed"
|
| |
|
| |
|
| |
|
|
|
|
| |
For completeness and consistency with set of plain hash functions
|
|
|
|
|
|
|
| |
HMAC() is deprecated
As with the regular hash functions, macros like this make it awkward to
apply static analysis and code formatting.
|
|
|
|
|
|
|
| |
MD5() is deprecated, but EVP_md5() is not.
Functions in macros like this make it awkward to apply static analysis
and code formatting.
|
|
|
|
| |
Same as previous commit
|
|
|
|
|
|
|
|
|
| |
Equivalent to 'local' in Lua, these functions are exported via the
luaopen_ function, which is the only one needing to be visible outside
of the file.
Pointed out by Link Mauve at some point, but there wasn't really any
rush here.
|
| |
|
|
|
|
|
| |
One difference is that 5.4 accepts "table-like" values (for this and other
table.*() functions), but that would require additional backporting work.
|
|
|
|
|
|
| |
Words, sometimes I wonder how they even work
Maybe I missed something.
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Downloaded from http://www.inf.puc-rio.br/~roberto/struct/
This is for compatibility with Lua 5.2 (and 5.1). Eventually we can replace
this with string.pack/string.unpack which are available in 5.3+.
|
| |
| |
| |
| | |
Might be better than select(), more portable than epoll.
|
| |
| |
| |
| | |
Could he handy to know for debugging or decisions
|
|/ |
|
| |
|
|
|
|
|
| |
Useful for disabling certain behavior, ANSI colors etc when not
connected to a terminal.
|
| |
|