From 31cf2658abb1011e81e41e3f045d7562b9fad958 Mon Sep 17 00:00:00 2001 From: Dimitar Krastev Date: Sun, 15 Dec 2024 12:35:54 +0200 Subject: [PATCH] Attempt to fix gcc errors about backslashes. Check documentation for the visuals. --- Packet++/header/SSLLayer.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Packet++/header/SSLLayer.h b/Packet++/header/SSLLayer.h index 6fd1c91c5..7e810059a 100644 --- a/Packet++/header/SSLLayer.h +++ b/Packet++/header/SSLLayer.h @@ -60,8 +60,8 @@ /// +--------------------------+ /// | TcpLayer | /// +--------------------------+ -/// | SSLHandshakeLayer | \ -/// +--------------------------+ \ +/// | SSLHandshakeLayer | \\ +/// +--------------------------+ \\ /// | SSLChangeCipherSpecLayer | -------- 3 SSL/TLS records in the same packet! /// +--------------------------+ / /// | SSLHandshakeLayer | / @@ -252,7 +252,6 @@ namespace pcpp SSLLayer(uint8_t* data, size_t dataLen, Layer* prevLayer, Packet* packet) : Layer(data, dataLen, prevLayer, packet, SSL) {} - }; // class SSLLayer // The graph below will break the code formatting, so it's disabled. @@ -272,11 +271,11 @@ namespace pcpp /// | ssl_tls_record_layer | SSLClientHelloMessage | /// | struct | | /// +----------------------+-------------------------------------+ - /// / | \ | \ \ \ - /// / version \ | handshake \ \ \ + /// / | \ | \ \ \\ + /// / version \ | handshake \ \ \\ /// / TLS1_0 \ type \ \ rest of /// type \ | SSL_CLIENT_HELLO \ \ message fields... - /// SSL_HANDSHAKE length handshake \ + /// SSL_HANDSHAKE length handshake \\ /// (22) xxx | version message /// TLS1_2 length /// | yyy @@ -292,7 +291,7 @@ namespace pcpp /// | ssl_tls_record_layer | SSLServerHelloMessage | SSLCertificateMessage | SSLServerKeyExchangeMessage | /// | struct | | | | /// +----------------------+-------------------------------------+---------------------------+-----------------------------+ - /// / | \ | \ \ | \ | \ + /// / | \ | \ \ | \ | \\ /// / version \ | handshake \ rest of | | rest | | rest /// / TLS1_0 \ type \ message handshake of fields... handshake of fields... /// type \ | SSL_SERVER_HELLO \ fields...| type | type