The make fails if the write-dup feature is not enabled. Can we change this so it builds with a main() stub and printf an error at run-time instead of failing build-time with #error. This will allow other TLS examples to build and run.
gcc -o client-tls-writedup client-tls-writedup.c -Wall -I/usr/local/include -Os -pthread -L/usr/local/lib -lm -lwolfssl
client-tls-writedup.c:43:6: error: #error "wolfSSL must be configured and installed with --enable-writedup"
#error "wolfSSL must be configured and installed with --enable-writedup"
^~~~~
make: *** [client-tls-writedup] Error 1
The make fails if the write-dup feature is not enabled. Can we change this so it builds with a
main()stub and printf an error at run-time instead of failing build-time with#error. This will allow other TLS examples to build and run.