mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
The format we use to generate marshal/unmarshal code is from the spec's tools/extract-formats.py which includes the offset: we don't use it at all, so rather than having manually-calculated (and thus probably wrong) values, or 0, emit it altogther. Reported-by: Christian Decker Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1.6 KiB
1.6 KiB
| 1 | #include <lightningd/cryptomsg.h> |
|---|---|
| 2 | handshake_bad_command,0x8000 |
| 3 | initr_act1_bad_ecdh_for_ss,0x8011 |
| 4 | initr_act1_write_failed,0x8012 |
| 5 | initr_act2_read_failed,0x8013 |
| 6 | initr_act2_bad_version,0x8014 |
| 7 | initr_act2_bad_pubkey,0x8015 |
| 8 | initr_act2_bad_ecdh_for_ss,0x8016 |
| 9 | initr_act2_bad_tag,0x8017 |
| 10 | initr_act3_bad_hsm_ecdh,0x8018 |
| 11 | initr_act3_write_failed,0x8019 |
| 12 | respr_act1_read_failed,0x801A |
| 13 | respr_act1_bad_version,0x801B |
| 14 | respr_act1_bad_pubkey,0x801C |
| 15 | respr_act1_bad_hsm_ecdh,0x801D |
| 16 | respr_act1_bad_tag,0x801E |
| 17 | respr_act2_bad_ecdh_for_ss,0x801F |
| 18 | respr_act2_write_failed,0x8020 |
| 19 | respr_act3_read_failed,0x8021 |
| 20 | respr_act3_bad_version,0x8022 |
| 21 | respr_act3_bad_ciphertext,0x8023 |
| 22 | respr_act3_bad_pubkey,0x8024 |
| 23 | respr_act3_bad_ecdh_for_ss,0x8025 |
| 24 | respr_act3_bad_tag,0x8026 |
| 25 | initmsg_write_failed,0x8030 |
| 26 | initmsg_read_failed,0x8031 |
| 27 | # FIXME: This is probably too finegrained. |
| 28 | initr_act_one,1001 |
| 29 | initr_act_two,1002 |
| 30 | initr_act_three,1003 |
| 31 | respr_act_one,1011 |
| 32 | respr_act_two,1012 |
| 33 | respr_act_three,1013 |
| 34 | success,0 |
| 35 | handshake_responder,1 |
| 36 | handshake_responder,,my_id,33 |
| 37 | handshake_responder_reply,101 |
| 38 | handshake_responder_reply,,initiator_id,33 |
| 39 | handshake_responder_reply,,cs,struct crypto_state |
| 40 | handshake_responder_reply,,gflen,2 |
| 41 | handshake_responder_reply,,globalfeatures,gflen |
| 42 | handshake_responder_reply,,lflen,2 |
| 43 | handshake_responder_reply,,localfeatures,lflen |
| 44 | handshake_initiator,2 |
| 45 | handshake_initiator,,my_id,33 |
| 46 | handshake_initiator,,responder_id,33 |
| 47 | handshake_initiator_reply,102 |
| 48 | handshake_initiator_reply,,cs,struct crypto_state |
| 49 | handshake_initiator_reply,,gflen,2 |
| 50 | handshake_initiator_reply,,globalfeatures,gflen |
| 51 | handshake_initiator_reply,,lflen,2 |
| 52 | handshake_initiator_reply,,localfeatures,lflen |