summaryrefslogtreecommitdiff
path: root/src/irmd/oap.h
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2025-08-05 19:48:08 +0200
committerSander Vrijders <sander@ouroboros.rocks>2025-08-06 10:34:44 +0200
commita5f6ab5af03d9be6f3412d4dff67748908799e21 (patch)
treea4e4f69813c2c91949a10d1d46c917ad25be8171 /src/irmd/oap.h
parent2c077312b4f6236288da7df1caeb6cbaf6f83afd (diff)
downloadouroboros-a5f6ab5af03d9be6f3412d4dff67748908799e21.tar.gz
ouroboros-a5f6ab5af03d9be6f3412d4dff67748908799e21.zip
irmd: Add build option to log OAP header info
This adds a DEBUG_PROTO_OAP option to show some information in the OAP headers received by the IRMd during flow allocation. Example for unencrypted flow (send): OAP_HDR [528b7bf81df8e9bc @ 2025-08-05 17:05:29 (UTC) ] --> Certificate: <none> Ephemeral Public Key: <none> Data: <none> Signature: <none> Example for encrypted flow (rcv): OAP_HDR [4ff83072e0ed54b3 @ 2025-08-05 17:06:23 (UTC) ] <-- Certificate: <none> Ephemeral Public Key [91 bytes]: Data: <none> Signature: <none> Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/oap.h')
-rw-r--r--src/irmd/oap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/irmd/oap.h b/src/irmd/oap.h
index 460a89de..ccdfa804 100644
--- a/src/irmd/oap.h
+++ b/src/irmd/oap.h
@@ -85,4 +85,10 @@ void oap_hdr_fini(struct oap_hdr * oap_hdr);
int oap_hdr_decode(buffer_t hdr,
struct oap_hdr * oap_hdr);
+#ifdef DEBUG_PROTO_OAP
+void debug_oap_hdr_snd(const struct oap_hdr * hdr);
+
+void debug_oap_hdr_rcv(const struct oap_hdr * hdr);
+#endif /* DEBUG_PROTO_OAP */
+
#endif /* OUROBOROS_IRMD_OAP_H */