core-lightning/wire
Rusty Russell a4c482dc07 common/sphinx: don't use fixed lengths anywhere.
1. Remove the very concept of ONION_REPLY_SIZE, instead make it a
   local variable in create_onionreply().

2. Use the proper fromwire_ primitives in unwrap_onionreply() so we
   don't have to do explicit length checks.

3. Make fromwire_tal_arrn() return NULL if it fails to pull, instead of
   a zero-length allocation.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: Protocol: we now correctly decrypt non-256-length onion errors (we always forwarded them fine, now we actually can parse them).
2022-11-08 17:40:57 +01:00
..
test channeld, lightningd: allow blinded payments with !EXPERIMENTAL_FEATURES. 2022-10-26 11:29:06 +10:30
.gitignore reorganize .gitignore entries across subdirs. 2021-05-18 09:43:50 +09:30
bolt12_exp_wire.csv common: update to latest onion message spec. 2022-10-26 11:29:06 +10:30
bolt12_wire.csv common: update to latest onion message spec. 2022-10-26 11:29:06 +10:30
channel_type_wire.csv common/channel_type: wrapper for generated 'struct channel_type'. 2021-09-13 15:53:23 +02:00
extracted_bolt12_01_recurrence.patch Remove point32. 2022-10-26 11:29:06 +10:30
extracted_onion_02_modernonion.patch common: update to latest onion message spec. 2022-10-26 11:29:06 +10:30
extracted_onion_03_onionmsg-payload-as-bytearr.patch common: update to latest onion message spec. 2022-10-26 11:29:06 +10:30
extracted_onion_04_route-blinding-htlcs.patch common: update to latest onion message spec. 2022-10-26 11:29:06 +10:30
extracted_onion_05_route-blinding_error.patch lightningd: return invalid_onon_blinding for any blinded payment error. 2022-10-26 11:29:06 +10:30
extracted_peer_03_openchannelv2.patch doc: update BOLTs to bc86304b4b0af5fd5ce9d24f74e2ebbceb7e2730 2022-09-12 09:34:52 +09:30
extracted_peer_04_opt_will_fund.patch wire: fix patch file to match actual peer_wire.csv. 2021-09-02 14:04:32 +09:30
extracted_peer_05_newonion.patch onionmessages: remove obsolete onion message parsing. 2022-09-29 16:10:57 +09:30
extracted_peer_add_htlc-plus-blinding.patch channeld, lightningd: allow blinded payments with !EXPERIMENTAL_FEATURES. 2022-10-26 11:29:06 +10:30
extracted_peer_exp_quiescence-protocol.patch EXPERIMENTAL: import spec for quiescence. 2021-06-01 12:08:51 -05:00
extracted_peer_exp_upgradable.patch channeld: import updated channel_upgrade spec. 2021-10-08 16:07:21 +02:00
extracted_peer-shutdown-wrong_funding.patch protocol: add TLV for shutdown message, use 100 as "wrong_funding" outpoint. 2021-03-16 13:08:40 +10:30
fromwire.c common/sphinx: don't use fixed lengths anywhere. 2022-11-08 17:40:57 +01:00
Makefile wire/Makefile: fix missing wire/bolt12_exp_wiregen.c in ALL_C_SOURCES. 2022-10-26 11:29:06 +10:30
onion_defs.h
onion_wire.csv common: update to latest onion message spec. 2022-10-26 11:29:06 +10:30
onion_wire.h Makefile: use completely separate spec-derived files for EXPERIMENTAL_FEATURES 2020-09-08 09:42:00 +09:30
peer_wire.c onionmessages: remove obsolete onion message parsing. 2022-09-29 16:10:57 +09:30
peer_wire.csv channeld, lightningd: allow blinded payments with !EXPERIMENTAL_FEATURES. 2022-10-26 11:29:06 +10:30
peer_wire.h channeld: take over gossip_rcvd_filter.c and is_msg_gossip_broadcast. 2022-06-17 14:14:02 +09:30
tlvstream.c wire/tlvstream: const. 2022-04-02 09:40:18 +10:30
tlvstream.h doc: update c-lightning to Core Lightning almost everywhere. 2022-04-07 06:53:26 +09:30
towire.c jsonrpc: make error codes an enum. 2022-09-19 10:18:55 +09:30
wire_io.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
wire_io.h connectd: do decryption for peers. 2022-01-20 15:24:06 +10:30
wire_sync.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
wire_sync.h
wire.h jsonrpc: make error codes an enum. 2022-09-19 10:18:55 +09:30