Skip to content

Commit

Permalink
Merge pull request wolfSSL#195 from ColtonWilley/zephyr_tls_patch
Browse files Browse the repository at this point in the history
Add patch that adds support for wolfssl TLS sockets in zephyr
  • Loading branch information
dgarske authored Jul 24, 2024
2 parents 7fe892b + edbec11 commit 97634ae
Show file tree
Hide file tree
Showing 2 changed files with 3,758 additions and 0 deletions.
33 changes: 33 additions & 0 deletions zephyr/README.md
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
```


Loading

0 comments on commit 97634ae

Please sign in to comment.