Topic: Some suggestions & questions for wolfSSL User Manual, tutorial section
After working my way through the tutorial that's in the wolfSSL User Manual, I have a few suggestions as well as questions.
1. In Section 11.5, the text states that for *nix systems, the following command sequence should be used to build the project:
This did not work for me. I had to use the command
After I did that, everything worked fine. Is this a platform-specific difference?
2. In Section 11.6, the text states that the reader should
change directory (cd) to either the echoclient or echoserver directory and run 'make'.
I think it would be clearer if the text specifies that the reader should cd into the original_src/echoclient or original_src/echoserver.
3. In Section 11.7, the text shows a command for linking the wolfSSL library to the echoserver:
gcc -o echoserver ../lib/*.c tcpserv04.c -I ../include -lm -lwolfssl
This didn't work for me. I found I had to modify the command by adding -L/usr/local/lib:
gcc -o echoserver ../lib/*.c tcpserv04.c -I ../include -lm -L/usr/local/lib/ -lwolfssl
Is this a platform-specific difference?
4. I wanted to be able to work through the tutorial using Win32 first, and using Cygwin second. Using Cygwin was fine, but I wasn't able to figure out how to do the steps using Win32 and Microsoft Visual Studio. I could build the wolfSSL solution and run the testsuite successfully with no failures, but the tutorial doesn't seem to provide the steps necessary to follow the echoserver and echoclient tutorial using Visual Studio. Is the tutorial code actually compatible with Win32? For example, the unp.h file has an #include for sys/socket.h, that I wasn't aware was available for Windows.
I assume I need to create two new projects, one for echoserver and the other for echoclient, and then link the required libraries. It would be nice to have the Win32 steps in the tutorial along with the *nix steps. I still have yet to get the tutorial working using Visual Studio, so any advice would be much appreciated!