Small static psk TLS 1.2 build for microchip
Combined some of the files into psk-tls.c and psk-ssl.c to reduce stack depth by aggressively altering call stack. An example client is located in mplabx/small-psk-build. Running the commandscd mplabx/small-psk-build && make will build it, creating the executable mplabx/small-psk-build/Build/example-client-psk. ~~Currently the PSK identity is restricted to 10 characters so to connect to the default wolfSSL example server (./example/server/server -s -d -l PSK-AES128-CBC-SHA256) the check in my_psk_server_cb needs altered.~~
The compiler was working with kept having silent run time issues with enums and unnamed enums. Where it would use to small of a type then at run time not have the correct value. Especially when any arithmetic or bit shifts were done when creating the enum value. Hence the change of so many enums over to macro defines.
Please resolve merge conflicts. Feel free to assign over to me for review.
retest this please Jenkins
Client connection failed
FAIL scripts/external.test (exit status: 1)
<<<
Error: Test runtime=111sec. Make Check RESULT = 2