Topic: [SOLVED] Build error with TEST_IPV6 and HAVE_OCSP defined
Testing my work-in-progress port on eCos, I stumbled across a build error in src/io.c when TEST_IPV6 and HAVE_OCSP are defined together.
I verified this error on Cygwin x32 on my Windows 7 machine with wolfSSL 2.7.0 (got the same error with 2.8.0 as well):
src/io.c: In function 'tcp_connect':
src/io.c:513:5: warning: array subscript has type 'char' [-Wchar-subscripts]
src/io.c:536:9: error: 'SOCKADDR_IN_T' has no member named 'sin_family'
src/io.c:537:9: error: 'SOCKADDR_IN_T' has no member named 'sin_port'
src/io.c:539:13: error: 'SOCKADDR_IN_T' has no member named 'sin_addr'
src/io.c:541:13: error: 'SOCKADDR_IN_T' has no member named 'sin_addr'
The problem seems to be that the TEST_IPV6-define is tested and depending on this, the SOCKADDR_IN_T and AF_INET_V are set, but the remaining code is not fully IPv6-aware.
I saw that the IPv6 handling inside wolfssl/test.h looks more thorough which made me wonder why it's handled in two different ways.
Can you please confirm whether this is a bug and if/when it will be resolved (perhaps with 2.9.0)?
Kind regards
- Daniel