diff --git a/scripts/sniffer-tls13-gen.sh b/scripts/sniffer-tls13-gen.sh index 31a89225e..74b049e11 100755 --- a/scripts/sniffer-tls13-gen.sh +++ b/scripts/sniffer-tls13-gen.sh @@ -65,6 +65,7 @@ if [ "$1" == "hrr" ]; then # TLS v1.3 Hello Retry Request ./examples/server/server -v 4 -i -x -g & sleep 0.1 +fi # Run this script from the wolfSSL root if [ ! -f wolfssl/ssl.h ]; then diff --git a/src/sniffer.c b/src/sniffer.c index 44c818573..3d8e9b876 100644 --- a/src/sniffer.c +++ b/src/sniffer.c @@ -2229,8 +2229,8 @@ typedef struct { #endif } pub; #endif - int initPriv:1; - int initPub:1; + byte initPriv:1; + byte initPub:1; } SnifferKey; typedef struct SetupKeysArgs { diff --git a/sslSniffer/sslSnifferTest/snifftest.c b/sslSniffer/sslSnifferTest/snifftest.c index 1bc66da58..dccd177c4 100644 --- a/sslSniffer/sslSnifferTest/snifftest.c +++ b/sslSniffer/sslSnifferTest/snifftest.c @@ -735,7 +735,7 @@ int main(int argc, char** argv) WOLF_EVENT* events[1]; /* poll for single event */ int eventCount = 0; - /* For async call the original API again with same data, + /* For async call the original API again with same data, * or call with different sessions for multiple concurrent * stream processing */ ret = ssl_DecodePacketAsync(chain, chainSz, isChain, &data, err, diff --git a/wolfssl/sniffer.h b/wolfssl/sniffer.h index 2a49f9bda..9b05e497c 100644 --- a/wolfssl/sniffer.h +++ b/wolfssl/sniffer.h @@ -124,12 +124,12 @@ SSL_SNIFFER_API int ssl_GetSessionStats(unsigned int* active, unsigned int* reassemblyMemory, char* error); -WOLFSSL_API +WOLFSSL_API SSL_SNIFFER_API void ssl_InitSniffer(void); -WOLFSSL_API +WOLFSSL_API SSL_SNIFFER_API void ssl_InitSniffer_ex(int devId); -WOLFSSL_API +WOLFSSL_API SSL_SNIFFER_API void ssl_FreeSniffer(void);