forked from wolfSSL/osp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request wolfSSL#195 from ColtonWilley/zephyr_tls_patch
Add patch that adds support for wolfssl TLS sockets in zephyr
- Loading branch information
Showing
2 changed files
with
3,758 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## How to setup wolfSSL support for standard Zephyr TLS Sockets and RNG | ||
|
||
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. | ||
|
||
### Run Zephyr TLS samples | ||
|
||
``` | ||
west build -b <your_board> samples/net/sockets/echo_server -DEXTRA_CONF_FILE=overlay-wolfssl.conf | ||
``` | ||
|
||
### Run Zephyr TLS tests | ||
|
||
``` | ||
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 | ||
``` | ||
|
||
|
Oops, something went wrong.