Skip to content

Commit

Permalink
Add patch that adds support for wolfssl TLS sockets in zephyr
Browse files Browse the repository at this point in the history
  • Loading branch information
ColtonWilley committed Jul 23, 2024
1 parent 7fe892b commit edbec11
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 edbec11

Please sign in to comment.