Software /
code /
prosody
Annotate
teal-src/util/signal.d.tl @ 12953:ebe3b2f96cad
mod_tokenauth: Switch to new token format (invalidates existing tokens!)
The new format has the following properties:
- 5 bytes longer than the previous format
- The token now has separate 'id' and 'secret' parts - the token itself is no
longer stored in the DB, and the secret part is hashed
- The only variable length field (JID) has been moved to the end
- The 'secret-token:' prefix (RFC 8959) is now included
Compatibility with the old token format was not maintained, and all previously
issued tokens are invalid after this commit (they will be removed from the DB
if used).
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 21 Mar 2023 14:33:29 +0000 |
parent | 12627:b8ce0f61855b |
rev | line source |
---|---|
11579 | 1 local record lib |
12627
b8ce0f61855b
util.signal: Fix name conflict in Teal interface declaration
Kim Alvefur <zash@zash.se>
parents:
11579
diff
changeset
|
2 enum Signal |
11579 | 3 "SIGABRT" |
4 "SIGALRM" | |
5 "SIGBUS" | |
6 "SIGCHLD" | |
7 "SIGCLD" | |
8 "SIGCONT" | |
9 "SIGFPE" | |
10 "SIGHUP" | |
11 "SIGILL" | |
12 "SIGINT" | |
13 "SIGIO" | |
14 "SIGIOT" | |
15 "SIGKILL" | |
16 "SIGPIPE" | |
17 "SIGPOLL" | |
18 "SIGPROF" | |
19 "SIGQUIT" | |
20 "SIGSEGV" | |
21 "SIGSTKFLT" | |
22 "SIGSTOP" | |
23 "SIGSYS" | |
24 "SIGTERM" | |
25 "SIGTRAP" | |
26 "SIGTTIN" | |
27 "SIGTTOU" | |
28 "SIGURG" | |
29 "SIGUSR1" | |
30 "SIGUSR2" | |
31 "SIGVTALRM" | |
32 "SIGWINCH" | |
33 "SIGXCPU" | |
34 "SIGXFSZ" | |
35 end | |
12627
b8ce0f61855b
util.signal: Fix name conflict in Teal interface declaration
Kim Alvefur <zash@zash.se>
parents:
11579
diff
changeset
|
36 signal : function (integer | Signal, function, boolean) : boolean |
b8ce0f61855b
util.signal: Fix name conflict in Teal interface declaration
Kim Alvefur <zash@zash.se>
parents:
11579
diff
changeset
|
37 raise : function (integer | Signal) |
b8ce0f61855b
util.signal: Fix name conflict in Teal interface declaration
Kim Alvefur <zash@zash.se>
parents:
11579
diff
changeset
|
38 kill : function (integer, integer | Signal) |
11579 | 39 -- enum : integer |
40 end | |
41 return lib |