Skip to main content

mbedtls_sys/
lib.rs

1/* Copyright (c) Fortanix, Inc.
2 *
3 * Licensed under the GNU General Public License, version 2 <LICENSE-GPL or
4 * https://www.gnu.org/licenses/gpl-2.0.html> or the Apache License, Version
5 * 2.0 <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0>, at your
6 * option. This file may not be copied, modified, or distributed except
7 * according to those terms. */
8
9#![cfg_attr(not(feature = "std"), no_std)]
10#[cfg(feature = "std")]
11extern crate core;
12
13#[macro_use]
14extern crate cfg_if;
15
16pub mod types;
17include!(concat!(env!("OUT_DIR"), "/mod-bindings.rs"));
18
19pub use bindings::*;
20
21/* This value is defined by a C function macro, something which is not supported by bindgen currently
22   https://github.com/rust-lang-nursery/rust-bindgen/issues/231
23*/
24pub const ECDSA_MAX_LEN: u32 = 141;