Includes some porting ideas from qursa-uc3m libcoap-wolfssl work. Some common ASN1 code moved from coap_gnutls.c to coap_asn1.c to support RPK. WolfSSL build $ ./configure --enable-all --enable-dtls13 CFLAGS="-DBUILD_TLS_PSK_WITH_AES_128_CCM -DHAVE_RPK" Interoperability requirements DTLS1.3 downgrade requires https://github.com/eclipse/tinydtls/pull/230 https://github.com/wolfSSL/wolfssl/pull/7367 TLS1.3 downgrade requires https://github.com/wolfSSL/wolfssl/pull/7367 (D)TLS1.2 use of RPK requires https://github.com/wolfSSL/wolfssl/pull/7375 MbedTLS using TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 requires https://github.com/wolfSSL/wolfssl/pull/7132 GnuTLS using PSK and TLS1.3 requires https://github.com/wolfSSL/wolfssl/pull/7407
3.3 KiB
libcoap
A C implementation of the Constrained Application Protocol (RFC 7252)
Copyright (C) 2010--2024 by Olaf Bergmann bergmann@tzi.org and others
About libcoap
libcoap is a C implementation of a lightweight application-protocol for devices that are constrained their resources such as computing power, RF range, memory, bandwidth, or network packet sizes. This protocol, CoAP, is standardized by the IETF as RFC 7252. For further information related to CoAP, see https://coap.space or CoAP Wiki.
You might want to check out libcoap-minimal for usage examples.
The following RFCs are supported
-
RFC7390: Group Communication for the Constrained Application Protocol (CoAP)
-
RFC7641: Observing Resources in the Constrained Application Protocol (CoAP)
-
RFC7959: Block-Wise Transfers in the Constrained Application Protocol (CoAP)
-
RFC7967: Constrained Application Protocol (CoAP) Option for No Server Response
-
RFC8132: PATCH and FETCH Methods for the Constrained Application Protocol (CoAP)
-
RFC8323: CoAP (Constrained Application Protocol) over TCP, TLS, and WebSockets
-
RFC8516: "Too Many Requests" Response Code for the Constrained Application Protocol
-
RFC8613: Object Security for Constrained RESTful Environments (OSCORE)
-
RFC8768: Constrained Application Protocol (CoAP) Hop-Limit Option
-
RFC8974: Extended Tokens and Stateless Clients in the Constrained Application Protocol (CoAP)
There is (D)TLS support for the following libraries
-
OpenSSL (Minimum version 1.1.0) [PKI, PSK and PKCS11]
-
GnuTLS (Minimum version 3.3.0) [PKI, PSK, RPK(3.6.6+) and PKCS11]
-
Mbed TLS (Minimum version 2.7.10) [PKI and PSK]
-
wolfSSL (Minimum version 5.2.0) [PKI, PSK and RPK(5.6.4+)]
-
TinyDTLS [PSK and RPK] [DTLS Only]
Documentation
This set of pages contains the current set of documention for the libcoap APIs.
License Information
This library is published as open-source software without any warranty of any kind. Use is permitted under the terms of the simplified BSD license. It includes public domain software. libcoap binaries may also include open-source software with their respective licensing terms. Please refer to LICENSE for further details in the source.