0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-03 15:25:21 +02:00
Commit graph

3383 commits

Author SHA1 Message Date
Jason Volk
66249c620f ircd:Ⓜ️:room::state: Add central interface linkage for state utils. 2019-02-28 17:12:04 -08:00
Jason Volk
c0009a0745 ircd:Ⓜ️ Add central linkage for is_complete(room). 2019-02-28 17:12:03 -08:00
Jason Volk
43b8ea9de7 ircd:Ⓜ️:room::origins: Improve origins::random import definition. 2019-02-28 17:12:03 -08:00
Jason Volk
7bcc40f13f ircd:Ⓜ️ Fix count_since prototype; upgrade definition. 2019-02-28 17:12:03 -08:00
Jason Volk
af6ac4a2ac ircd: Replace various unwind count patterns with scope_count. 2019-02-28 17:12:03 -08:00
Jason Volk
8cb5b78807 ircd::resource: Ignore empty chunk from user by default unless explicit. 2019-02-28 17:12:03 -08:00
Jason Volk
7b1ed2e715 ircd::allocator: Add and fix attribute related. 2019-02-28 11:34:45 -08:00
Jason Volk
6ab36254c2 ircd::allocator: Add nothrow overload to state / fixed. 2019-02-28 10:49:28 -08:00
Jason Volk
a600a28095 configure: Check for <memory_resource> availability. 2019-02-28 10:24:43 -08:00
Jason Volk
04c02d5e7a ircd:Ⓜ️:room::power: Relax existential condition to allow fallback; minor cleanup. 2019-02-27 20:31:39 -08:00
Jason Volk
9e063bbf83 ircd::resource: Add a pending request counter; block destruction of method when pending. 2019-02-27 17:49:40 -08:00
Jason Volk
0e7fb8051e ircd:Ⓜ️:events: Fix iteration behavior with equal range parameters. 2019-02-27 16:27:04 -08:00
Jason Volk
85cae708db ircd::json: Add candidate vector merge impl. 2019-02-27 15:52:39 -08:00
Jason Volk
33d89755e8 ircd::json: Reorg utility headers; start a tool header. 2019-02-27 12:10:10 -08:00
Jason Volk
9ac64fcff7 ircd::json: Add vector utility methods to interface. 2019-02-27 11:23:52 -08:00
Jason Volk
3f85eb761a ircd::openssl: Include the openssl/asn1.h header. 2019-02-26 18:56:29 -08:00
Jason Volk
ce609c00bf ircd::json: Fix comparison suite for vector::const_iterator. 2019-02-26 18:38:49 -08:00
Jason Volk
cc586a352e modules/client/sync: Implement iteration base of linear sync. 2019-02-26 18:04:37 -08:00
Jason Volk
78a1281b1c ircd:Ⓜ️:sync: Make data.out a pointer to the json::stack. 2019-02-26 15:50:58 -08:00
Jason Volk
1ad1c38a53 ircd::resource::response::chunked: Pass buffer_size through the constructor. 2019-02-26 15:37:30 -08:00
Jason Volk
dd42e04bb5 ircd::json::stack: Complete the move semantics for entities. 2019-02-26 15:27:03 -08:00
Jason Volk
3e1157f043 ircd:Ⓜ️🆔 Add test for whether hostname is an IP literal. 2019-02-26 13:55:01 -08:00
Jason Volk
85cbaffca4 ircd:Ⓜ️🆔 Reuse the rfc3986 grammar with the mxid grammar. 2019-02-26 13:55:01 -08:00
Jason Volk
581fcca2f7 ircd::rfc3986: Expose parsing grammar externally. 2019-02-26 13:52:10 -08:00
Jason Volk
7b226d5477 ircd::json: Use the ircd::spirit expectation_failure. 2019-02-26 10:58:05 -08:00
Jason Volk
9aaba79919 ircd::db: Checkpoint coarse configuration values for now. 2019-02-25 18:20:48 -08:00
Jason Volk
2854ea9a0f Makefiles: Remove --gdb-index here because no -gsplit-dwarf used. 2019-02-25 18:20:48 -08:00
Jason Volk
f3d4e27b24 ircd:Ⓜ️:room: Start a room statistics interface. 2019-02-25 18:20:48 -08:00
Jason Volk
6f7fc0a837 ircd::db: Add interface to query size of key in column. 2019-02-25 18:17:01 -08:00
Jason Volk
11766b3e04 ircd:Ⓜ️:v1: Remove non-opts overloads; workaround g++-7 compiler bug. 2019-02-25 18:00:39 -08:00
Jason Volk
e3a6e55808 ircd:Ⓜ️:device: Add unrestricted set() overload. 2019-02-25 18:00:39 -08:00
Jason Volk
af5b0e69a1 modules/client/sync: Employ json::stack::checkpoint using boolean return values in all handlers. 2019-02-24 14:49:29 -08:00
Jason Volk
940975b448 ircd::json::stack: Add checkpoint device. 2019-02-24 14:49:29 -08:00
Jason Volk
ea4912d09a ircd::json::stack: Move final-flush to stack dtor rather than top value dtor. 2019-02-24 14:49:29 -08:00
Jason Volk
ec50b0f76e ircd:Ⓜ️:sync: Make instance-level conf::items for all sync::items. 2019-02-22 17:11:53 -08:00
Jason Volk
2db5278eb2 ircd::db: Log the error message on database constructor before rethrow. 2019-02-22 15:40:53 -08:00
Jason Volk
c9f8e44c78 ircd:Ⓜ️:sync: Add stats.info conf item; rename debug_stats item. 2019-02-22 15:40:53 -08:00
Jason Volk
a4e709c6d4 ircd:Ⓜ️:sync: Add conf item for polylog item stats to debuglog. 2019-02-22 15:40:52 -08:00
Jason Volk
6ccc171bce ircd:Ⓜ️:v1::user::keys::claim: Add additional convenience construction. 2019-02-21 17:02:41 -08:00
Jason Volk
dd7e31806d ircd:Ⓜ️:v1::user::keys::query: Add another convenient request composer. 2019-02-21 14:57:45 -08:00
Jason Volk
d083d09e03 ircd::json: Relax assertion for array::empty() expectations. 2019-02-21 14:11:13 -08:00
Jason Volk
0cb852e732 ircd::json::array: Deinline various. 2019-02-21 14:00:00 -08:00
Jason Volk
207a12934c ircd:Ⓜ️:user: Reorg user::account_data interface. 2019-02-21 12:11:42 -08:00
Jason Volk
7f37400dcb ircd:Ⓜ️:user: Reorg user::profile interface. 2019-02-21 11:53:25 -08:00
Jason Volk
a3923e8374 ircd:Ⓜ️:device: Typedef device::id; add func to get device from access_token. 2019-02-20 19:08:38 -08:00
Jason Volk
98a8ca7bf2 ircd:Ⓜ️:device: Associate access_token to device. 2019-02-20 15:46:48 -08:00
Jason Volk
d5e8bbbf4a modules: Stub m.device_list_update edu handler; json schema. 2019-02-20 13:36:29 -08:00
Jason Volk
0efd723edb ircd:Ⓜ️:device: Develop interface; use individual state events for properties. 2019-02-20 13:36:29 -08:00
Jason Volk
7c09123a3c ircd:Ⓜ️:room::state: Add a type prefix-domain iteration to state interface. 2019-02-20 13:10:56 -08:00
Jason Volk
18a41f81f1 modules: Move m::device definitions from m_user to m_device. 2019-02-20 09:46:27 -08:00
Jason Volk
b3baebd395 ircd:Ⓜ️:device: Add a proper device interface (sans device::set()). 2019-02-19 17:42:05 -08:00
Jason Volk
74c5a58273 ircd::resource: Use 308 instead of 301 for redirect. 2019-02-19 14:43:21 -08:00
Jason Volk
9d0542a93a ircd::resource: Add permanent redirect device. 2019-02-19 13:25:32 -08:00
Jason Volk
b57ef2e8fe ircd::resource::response: Avoid call to write empty content here. 2019-02-19 11:35:11 -08:00
Jason Volk
42a41eeb0d ircd::http: Fix/Add 30x related codes. 2019-02-19 11:34:48 -08:00
Jason Volk
e8f8008ea9 ircd::openssl: Use variable includes; add openssl/hmac.h header check. 2019-02-18 15:27:50 -08:00
Jason Volk
3d7d15685e ircd::openssl: Add a linked version check. 2019-02-18 15:17:50 -08:00
Jason Volk
dbbc22d98a ircd::magic: Relax the linked version check. 2019-02-18 15:17:50 -08:00
Jason Volk
b9822a8c6c ircd::openssl: Return version strings for header and linked library. 2019-02-18 15:12:01 -08:00
Jason Volk
3b8130cee1 ircd:Ⓜ️:dbs: Fixes to the index_redact path and related; minor reorg. 2019-02-18 13:42:25 -08:00
Jason Volk
0644db459c ircd:Ⓜ️:event: Add various size constants replacing magic numbers. 2019-02-18 13:42:25 -08:00
Jason Volk
bc0e12e31b ircd:Ⓜ️ Add m.direct_to_device edu schema / header. 2019-02-18 12:23:58 -08:00
Jason Volk
f0ce1cdcae ircd: Split up resource.h. 2019-02-18 11:04:02 -08:00
Jason Volk
f275cf8c83 ircd:Ⓜ️:event::auth::chain: No closing over full event; overload void closure. 2019-02-16 15:25:36 -08:00
Jason Volk
a380186001 ircd:Ⓜ️ Various cleanup; toward demangled linkage; mark size indicating stack use. 2019-02-16 15:25:36 -08:00
Jason Volk
547c6ca8e5 ircd:Ⓜ️:v1: Add query_auth request. 2019-02-16 15:25:36 -08:00
Jason Volk
551168c643 ircd: Various quietudes. 2019-02-16 15:25:36 -08:00
Jason Volk
d8536ca9a9 ircd: Move fpe into util. 2019-02-16 13:17:44 -08:00
Jason Volk
eb1e510720 ircd::fs: Include <sys/sysmacros.h> if available. 2019-02-15 18:48:59 -08:00
Jason Volk
4f721f48e5 Eliminate friend-injection. 2019-02-15 18:48:59 -08:00
Jason Volk
2660b30061 ircd:Ⓜ️:event: Add auth::chain utility. 2019-02-14 16:48:45 -08:00
Jason Volk
194160a735 ircd:Ⓜ️:event::refs: Reorientations for consolidated refs. 2019-02-14 14:02:34 -08:00
Jason Volk
17e1bb96bf ircd:Ⓜ️:dbs: Consolidate event_refs column. Drop prev_events column. 2019-02-14 13:11:37 -08:00
Jason Volk
30d27df649 ircd:Ⓜ️:room::power: Fix m.room.power_levels format validation per the spec. 2019-02-14 13:08:48 -08:00
Jason Volk
f48274fc58 ircd:Ⓜ️:event::auth: Preliminary v1 auth rules. 2019-02-13 18:44:26 -08:00
Jason Volk
2c60fa4fce ircd:Ⓜ️:event::index: Prevent any column search for empty event_id. 2019-02-13 18:37:21 -08:00
Jason Volk
df64c6e573 ircd:Ⓜ️:room::power: Improve requirements for different constructions. 2019-02-13 16:01:18 -08:00
Jason Volk
11264d2806 ircd:Ⓜ️:room: Add convenience wrapper for event::idx state::get() to interface. 2019-02-13 16:01:18 -08:00
Jason Volk
1a6d173a0b ircd:Ⓜ️:room::state: Change return value from event::id to event::idx for simple get(). 2019-02-13 16:01:18 -08:00
Jason Volk
674373be90 ircd:Ⓜ️:event::auth: Restructure / rename interfaces; move is_power_event() to module. 2019-02-12 17:50:44 -08:00
Jason Volk
aaf80932fe ircd:Ⓜ️:room::auth: Simplify closure requirements. 2019-02-12 17:47:35 -08:00
Jason Volk
74fdda36e2 ircd:Ⓜ️:event::conforms: Add checks for m.room.member state_key. 2019-02-12 17:19:13 -08:00
Jason Volk
7117d4a17c ircd:Ⓜ️:event::conforms: Add check for m.room.aliases sender host vs. state_key. 2019-02-12 15:34:40 -08:00
Jason Volk
903a117bf7 ircd:Ⓜ️:event::conforms: Add check for room_id host matching sender host for create event. 2019-02-12 15:22:53 -08:00
Jason Volk
1bd9ce0d1e ircd:Ⓜ️:event::conforms: Add checks for duplicate / self / missing auth refs. 2019-02-12 15:07:50 -08:00
Jason Volk
20eb440408 ircd:Ⓜ️:event: Improve the event::cache checking behavior. 2019-02-12 14:57:08 -08:00
Jason Volk
2f6384b068 ircd:Ⓜ️:room: Add room::auth interface w/ console cmd. 2019-02-12 12:04:02 -08:00
Jason Volk
8a81a6d24e ircd:Ⓜ️:event::auth: Add comments; remove cruft. 2019-02-12 12:04:01 -08:00
Jason Volk
4d95daf8e3 ircd::fs: Add slice_usage_warning around io_submit() / open(2). 2019-02-12 12:04:01 -08:00
Jason Volk
95dbc571f8 ircd::ctx: Support slice_usage_warning outside of context system too. 2019-02-12 12:04:01 -08:00
Jason Volk
c204ece49a ircd:Ⓜ️:event: Add std::string overloads to event get() suite. 2019-02-12 10:03:20 -08:00
Jason Volk
df8cee0b47 ircd:Ⓜ️:event: Fallback to JSON query for keys in the get() suite. 2019-02-12 10:02:37 -08:00
Jason Volk
4077c5faa3 ircd:Ⓜ️:typing: Partial normalization; 2019-02-11 15:57:01 -08:00
Jason Volk
a1c8845e1e ircd:Ⓜ️🧾 Normalize module definition names / layout. 2019-02-11 15:57:01 -08:00
Jason Volk
38d4718f20 ircd:Ⓜ️:presence: Normalize module definition names. 2019-02-11 15:57:01 -08:00
Jason Volk
238c7ee8d9 ircd:Ⓜ️:event: Checkpoint invoke; minor cleanup. 2019-02-11 14:02:47 -08:00
Jason Volk
2b4e63f6f0 ircd::mods: Rename and expose exports map; add/update console cmds. 2019-02-09 18:43:05 -08:00
Jason Volk
0bd8571612 ircd::mods: Improve path translation for symbols() suite; add comments. 2019-02-09 18:43:05 -08:00
Jason Volk
68be0a321e ircd:Ⓜ️:event: Convert modular components to demangled style. 2019-02-09 18:43:04 -08:00
Jason Volk
7b12718e66 ircd::mods: Improve target symbol name generation. 2019-02-09 18:43:04 -08:00
Jason Volk
c5d993f7c5 ircd::mods: Demangled imports. 2019-02-09 03:08:12 -08:00
Jason Volk
3fcb701b47 ircd::mods: Consolidate codepaths to binding. 2019-02-08 23:50:00 -08:00
Jason Volk
e15045ea3f ircd::mods: Use std map for mangles. 2019-02-08 23:18:46 -08:00
Jason Volk
b4f09d06ec ircd::mods: Simplify is_module() stack. 2019-02-08 20:40:08 -08:00
Jason Volk
1b48dd7c68 ircd::mods: Improve section search in symbol tools. 2019-02-08 20:39:30 -08:00
Jason Volk
77bbdd9ebe ircd::json: Cleanup generator definition here; use better rule template. 2019-02-08 19:41:04 -08:00
Jason Volk
3151931ee4 Linker options package. 2019-02-08 18:24:20 -08:00
Jason Volk
5c19cfa3de ircd::db: Truncate comments. 2019-02-08 09:18:39 -08:00
Jason Volk
80a25cf352 ircd:Ⓜ️:event::auth: Add auth chain traversal. 2019-02-08 07:54:03 -08:00
Jason Volk
2b82dfec76 ircd:Ⓜ️:event::auth: Add iteration by type. 2019-02-08 07:53:39 -08:00
Jason Volk
ef740d339b ircd:Ⓜ️:event: Add event::auth examination device. 2019-02-08 03:19:54 -08:00
Jason Volk
2a431fa26a ircd:Ⓜ️:dbs: Add event_auth column. 2019-02-08 03:19:54 -08:00
Jason Volk
cbe829368f ircd:Ⓜ️:event: Start an auth header; add is_power_event(). 2019-02-08 03:19:54 -08:00
Jason Volk
0aa977c307 ircd:Ⓜ️:event: Simplify verify stack. 2019-02-07 23:41:29 -08:00
Jason Volk
8926e0d1f1 ircd: Attempt to find a current exception in terminate(). 2019-02-07 23:09:31 -08:00
Jason Volk
fb6be95f2c ircd:Ⓜ️:v1: Add the user::keys::claim ctor stack complex; minor cleanup. 2019-02-07 23:09:30 -08:00
Jason Volk
dcb1f2197e ircd:Ⓜ️:v1: Split user:: / user::keys headers. 2019-02-07 22:16:19 -08:00
Jason Volk
a4bd140cc2 ircd::db: Add interruption threshold at seek call. 2019-02-07 22:16:19 -08:00
Jason Volk
72a3ff2856 ircd: Employ path_string() at various callsites. 2019-02-07 22:16:19 -08:00
Jason Volk
e666f72b74 ircd::mods: Toward eliminating boost::filesystem exposure to this unit. 2019-02-07 22:16:19 -08:00
Jason Volk
db552e2ec4 ircd::fs: Add interface to filesystem::relative() function. 2019-02-07 20:49:50 -08:00
Jason Volk
7b67b106b6 ircd::fs: Add convenience tls scratch buffers for name and path manip. 2019-02-07 20:49:26 -08:00
Jason Volk
cc636d375f ircd::util: Improve string() suite; add flags for shrink_to_fit(). 2019-02-07 18:03:21 -08:00
Jason Volk
4c43b42f62 ircd::json::stack: Add overload for character append. 2019-02-07 08:19:28 -08:00
Jason Volk
b6bfc5dd5c ircd::client: Add debuglog around main exec. 2019-02-07 08:19:28 -08:00
Jason Volk
8c99e90a85 ircd::client: Add request count to loghead. 2019-02-07 08:19:28 -08:00
Jason Volk
3a8f53e46e ircd:Ⓜ️ Start a device header. 2019-02-07 08:19:27 -08:00
Jason Volk
810a6017dc ircd::net: Allow allow_self_signed to cover more cases. 2019-02-07 02:36:02 -08:00
Jason Volk
d5f03fba59 ircd:Ⓜ️:v1: Add ctor stack complex for user::keys::query. 2019-02-07 00:40:48 -08:00
Jason Volk
b687d63169 ircd::ctx: Create and use log facility. 2019-02-07 00:17:26 -08:00
Jason Volk
ce0d974868 ircd:Ⓜ️:v1: Add principals for user::keys::query & claim; remove unstables. 2019-02-07 00:17:26 -08:00
Jason Volk
8eb68c0e2e ircd:Ⓜ️:dbs: Add missing event refs comparator: minor cleanup. 2019-02-06 21:32:26 -08:00
Jason Volk
93fb468ba2 ircd:Ⓜ️:vm: Add tools using the eval instance_list. 2019-02-06 20:54:21 -08:00
Jason Volk
70c901a894 ircd:Ⓜ️:vm: Add json::array eval ctor. 2019-02-06 20:54:04 -08:00
Jason Volk
bb68dfc1e7 ircd:Ⓜ️ Add event::hash(json::object) w/ branch from event.source. 2019-02-06 20:52:42 -08:00
Jason Volk
a36f375162 ircd::json: Max iov::max_size a constexpr. 2019-02-06 20:51:50 -08:00
Jason Volk
e497fe8506 ircd:Ⓜ️:event: Add event_id() convenience suite to reverse index(). 2019-02-06 17:18:38 -08:00
Jason Volk
ec8f0c1e1c ircd:Ⓜ️:event: Add refs interface. 2019-02-06 17:18:38 -08:00
Jason Volk
2586476a57 ircd:Ⓜ️:dbs: Fix prefix related for event_refs column. 2019-02-06 17:18:38 -08:00
Jason Volk
a63f23fc2d ircd::db: Minor reorg; move db::index defs near db::column. 2019-02-06 16:42:27 -08:00
Jason Volk
9c63e8e5dd ircd:Ⓜ️ Limit content property count in send() suite. 2019-02-06 02:58:21 -08:00
Jason Volk
9bd86e7f69 ircd:Ⓜ️:request: Use conf items for buffer sizes and limits. 2019-02-06 02:34:52 -08:00
Jason Volk
4da523ddf9 ircd:Ⓜ️🆔 Avoid character readback here. 2019-02-05 23:18:05 -08:00
Jason Volk
965134079e ircd: Fix regression. 2019-02-05 23:18:05 -08:00
Jason Volk
ed62a4c61c ircd:Ⓜ️ Minor formatting. 2019-02-05 23:18:05 -08:00
Jason Volk
ca4ef84c9f ircd:Ⓜ️:dbs: Add event_refs indexer; reorg event indexers related. 2019-02-05 19:05:17 -08:00
Jason Volk
843f78548b ircd:Ⓜ️:dbs: Add event_refs metadata column. 2019-02-05 19:05:17 -08:00
Jason Volk
6cb4020034 ircd:Ⓜ️:dbs: Rename head/refs options to room_head/room_refs; update vmopts and sites. 2019-02-05 19:05:17 -08:00
Jason Volk
67d57ed2b6 ircd::json: Add a specific escape transform utility to interface. 2019-02-05 15:42:39 -08:00
Jason Volk
d7c68d2fb7 ircd:Ⓜ️:room: Fix regressions. 2019-02-05 02:20:14 -08:00