Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 801 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 801 Bytes

zig-mbedtls-example

An example of using mbedtls with Zig v11.

This is a translation of the ssl_server.c example from the mbedtls github.

The src directory contains a single file that has the mbedTLS struct that contains all the functions needed to make a ssl server.

The lib directory has 2 files as zig can't get the size of the mbedtls_ssl_config struct. I took this code from Ninjacato's zig-mbedtls.

The build.zig contains the steps needed to build the project.

The code in this project is an example for me to be able to use mbedtls in my ScarletDME project. YMMV :)