liboscore 0.2.7

Rust wrapper around the libOSCORE implementation of OSCORE (RFC8613), a security layer for CoAP
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Implementation of the few libc functions libOSCORE needs, providing backends for
//! oscore_native/platform.h
//!
//! This only implements functions as used; it seems that the string functions are all well handled
//! by the compilers internally anyway (which makes sense -- after all, in Rust they are part of
//! core, only in C it was chosen not to make them part of the freestanding set).

#[cfg(feature = "provide-assert")]
#[no_mangle]
extern "C" fn assert(expression: bool) {
    debug_assert!(expression, "Assert from C failed");
}

#[cfg(feature = "provide-abort")]
#[no_mangle]
extern "C" fn abort() {
    panic!("Abort triggered from C");
}