Tobias Brunner
6dee8587f0
Remove obvious empty statements (i.e. stray semicolons)
2024-02-29 15:30:40 +01:00
Tobias Brunner
f21ef43b0c
vici: Ignore NULL message in raise_event()
...
There are a lot of calls like this:
this->dispatcher->raise_event(this->dispatcher, "...", 0,
b->finalize(b));
However, if finalize() fails, e.g. because a previous call to add()
failed due to the size limit, it returns NULL. This then caused a
segmentation fault in raise_event() when it interacted with that value.
Closes strongswan/strongswan#1278
2022-09-20 10:15:13 +02:00
Tobias Brunner
19ef2aec15
Update copyright headers after acquisition by secunet
2022-06-28 10:22:56 +02:00
Tobias Brunner
1b67166921
Unify format of HSR copyright statements
2018-05-23 16:32:53 +02:00
Tobias Brunner
95a63bf281
Migrate all enumerators to venumerate() interface change
2017-05-26 13:56:44 +02:00
Andreas Steffen
b12c53ce77
Use standard unsigned integer types
2016-03-24 18:52:48 +01:00
Tobias Brunner
b9d7319fb3
vici: Add get_bool() convenience getter for VICI messages
2015-08-21 18:21:13 +02:00
Martin Willi
bdfbecb3e6
vici: Return default value for get_int() if message value is empty string
...
This is the behavior of some strtol() implementations, and it makes sense,
so force it.
2014-10-14 16:33:10 +02:00
Martin Willi
dfb23fa159
vici: Add Windows support
2014-06-04 15:53:12 +02:00
Martin Willi
3a9a46c20f
vici: Increase vici message length header from 16 to 32 bits
...
While we currently have no need for messages larger than 65KB, we should design
the protocol to be future-proof, as we plan to keep at least to lowest protocol
layer stable.
To avoid any allocation issues, we currently keep the message size limit at
512KB.
2014-05-07 14:13:38 +02:00
Martin Willi
e2496bda02
vici: Add a test case raising events during request, checks in-order delivery
2014-05-07 14:13:35 +02:00
Martin Willi
db18495514
vici: Add some convenience getters on message
2014-05-07 14:13:35 +02:00
Martin Willi
b40a12a96f
vici: Raise events with an optional identifier for specific connections
2014-05-07 14:13:35 +02:00
Martin Willi
eb4fd014b8
vici: Add a libvici low-level client library
2014-05-07 14:13:35 +02:00
Martin Willi
8383d626b9
vici: Provide a command dispatcher handling request and event registration
2014-05-07 14:13:34 +02:00
Martin Willi
8457da7528
vici: Add a fully asynchronous IPC socket segmenting messages on/from stream
2014-05-07 14:13:34 +02:00