MingW doesn't have `strnlen()` which is needed in sniffer.c + snifftest.c. To solve it, I added this to my `config.h`: ``` extern __inline__ size_t strnlen (const char *str, size_t maxsize) { size_t n; for (n = 0; n < maxsize && *str; n++, str++) ; return (n); } ``` Maybe the missing functions (strnlen, strsep) could be added to a more suitable place?
Activity
1. In the sniffer, replace call to strnlen with strlen and
ejohnstown commentedon Mar 31, 2015
I replaced the call to
strnlen()withstrlen()and did my size check separately.strnlen()isn't very portable, as you found, so we shouldn't use it.Merge pull request wolfSSL#60 from JacobBarthelmeh/testing
Merge pull request wolfSSL#60 from dgarske/release_v5.5.4