wolfSSL can also be used as the underlying implementation for the default Zephyr TLS socket interface. With this enabled, all existing applications using the Zephyr TLS sockets will now use wolfSSL inside for all TLS operations. This will also enable wolfSSL as the default RNG implementation. To enable this feature, first ensure wolfSSL has been added to the west manifest using the instructions from the README.md here: https://github.com/wolfSSL/wolfssl/tree/master/zephyr
Once the west manifest has been updated, run west update, then run the following command to patch the sources
patch -p1 < /path/to/your/osp/zephyr/zephyr-tls-{PATCH_VERSION}.patch
Where PATCH_VERSION is the appropriate patch version.
west build -b <your_board> samples/net/sockets/echo_server -DEXTRA_CONF_FILE=overlay-wolfssl.conf
west build -b <your_board> tests/net/socket/tls_ext/ -DEXTRA_CONF_FILE=overlay-wolfssl.conf
west build -b <your_board> tests/net/socket/tls/ -DEXTRA_CONF_FILE=overlay-wolfssl.conf