mbedtls-sys

Crates.iombedtls-sys
lib.rsmbedtls-sys
version0.0.2
sourcesrc
created_at2016-08-30 14:48:36.891832
updated_at2016-08-31 09:01:19.768625
descriptionA rust FFI wrapper around mbedtls which provides TLS, DTLS and generic crypto and hash functions
homepagehttps://github.com/lemonrock/mbedtls-sys
repositoryhttps://github.com/lemonrock/mbedtls-sys.git
max_upload_size
id6185
size113,336
Raphael Cohn (raphaelcohn)

documentation

https://github.com/lemonrock/mbedtls-sys/blob/master/README.md

README

[](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

Commit count: 18

cargo fmt