#tls #ssl #dtls #mbed #mbedtls

mbedtls-sys

A rust FFI wrapper around mbedtls which provides TLS, DTLS and generic crypto and hash functions

2 releases

Uses old Rust 2015

0.0.2 Aug 31, 2016
0.0.1 Aug 30, 2016

#10 in #dtls

MIT license

110KB
2K SLoC

[](This file is part of mbedtls-sys. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/mbedtls-sys/master/COPYRIGHT. No part of mbedtls-sys, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.) [](Copyright © 2016 The developers of mbedtls-sys. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/mbedtls-sys/master/COPYRIGHT.)

mbedtls-sys

Clippy Linting Result

mbedtls-sys is a rust crate that has bindings to the mbedtls C library. It currently generates them for version 2.3.0.

Licensing

The license for this project is MIT.

Recompilation

To recompile, use bindgen/generate-macosx. This only works on Mac OS X, and you will need Homebrew installed (as brew). It assumes brew and cargo are in your path, and will install bindgen and rustfmt as needed. We don't use the bindgen plugin as we have to munge the output from bindgen extensively.

Known Issues

  • At this time, the wrapper will not compile on Windows due to the use of pthread_mutex_t. This is probably fixable.
  • mbedtls has extensive compile-time configuration options, and it's quite possible that a function we define isn't compiled in. The config.h we used is in bindgen/include-fixes/config.h

Dependencies