- 12 Nov, 2020 4 commits
-
-
Olaf Bergmann authored
-
Olaf Bergmann authored
Use coap_run_once() on for older versions of libcoap.
-
Olaf Bergmann authored
As version 4.2.1 of libcoap has the addr_info field in coap_session_t it is being used here.
-
Olaf Bergmann authored
Although raw_identity is not used for libcoap prior version 4.3, it must be defined as it is set in the PSK decode logic.
-
- 29 Sep, 2020 10 commits
-
-
Olaf Bergmann authored
-
Olaf Bergmann authored
-
Olaf Bergmann authored
The dcaf_ticket_request_t structure now contains a flags parameter to convey control options contained in requests. This field is currently used only for ACE implementations.
-
Olaf Bergmann authored
* CBOR option numbers for ACE fields and error codes have been updated to draft-ietf-ace-oauth-authz-33 and draft-ietf-ace-oauth-params-13. * Cleanup of unused definitions. * New configuration parameter CONFIG_ACE_REQUEST_PROFILE. If set to a value != 0, the client will include an empty ace_profile parameter in the token request.
-
Olaf Bergmann authored
When LIBCOAP_VERSION < 4003000U is used, coap_new_client_session_psk() must be called with a zero-terminated psk_identity. This change ensures that identity is always terminated with a zero, and raw_identity is never used.
-
Olaf Bergmann authored
* An empty ticket request is answered with an access ticket and instructions about the server to contact
-
Olaf Bergmann authored
A client may post an empty DCAF request to its CAM in order to get instructions which server to contact along with a valid access ticket.
-
Olaf Bergmann authored
-
Olaf Bergmann authored
dcaf_config.h includes pre-processor symbols that control the build process for optional parameters and therefore must be included before dcaf_int.h
-
Olaf Bergmann authored
* encapsulate CoAP processing loop for blocking requests in function dcaf_loop_io() for re-use in dcaf state engine (dcaf.c) * allow transaction creation with empty PDU (allows state handling for cases where no initial unauthorized request has been performed)
-
- 27 Sep, 2020 6 commits
-
-
Olaf Bergmann authored
-
Olaf Bergmann authored
-
Olaf Bergmann authored
-
Olaf Bergmann authored
The pre-processor options DCAF_CLIENT, DCAF_SERVER, and DCAF_AM are set properly according to the respective CONFIG_ options.
-
Olaf Bergmann authored
The new options '--disable-client', '--disable-server', and '--disable-am' can be used to exclude client-specific, server-specific, or authorization-manager-specific code from the build process. These options are specifically targeted on specialized builds on constrained platforms to save memory.
-
Olaf Bergmann authored
The pre-processor symbol DCAF_CLIENT_VALIDITY_OPTION can be used to the validity option supported by the DCAF client. Allowed values are 1, 2, and 3, respectively, the default is 1.
-
- 19 Sep, 2020 4 commits
-
-
Olaf Bergmann authored
When the pre-processor symbol ESP_PLATFORM is defined, the default pseudo random number generation function is set to esp_fill_random().
-
Olaf Bergmann authored
-
Olaf Bergmann authored
-
Olaf Bergmann authored
-
- 11 Sep, 2020 1 commit
-
-
Olaf Bergmann authored
This change fixes a warning issued on platforms where size_t is 32 bit rather than 64 bit.
-
- 10 Sep, 2020 7 commits
-
-
Olaf Bergmann authored
The pre-processor symbol CONFIG_DCAF_LOG_DEFAULT_LEVEL can be used to set the default maximum log level. Debug messages can be disabled entirely by setting CONFIG_DCAF_NODEBUG.
-
Olaf Bergmann authored
-
Olaf Bergmann authored
-
Olaf Bergmann authored
This reverts commit 871e673d.
-
Olaf Bergmann authored
This reverts commit 013e3f8c.
-
Olaf Bergmann authored
anybor is a light-weight CBOR encoder/decoder specifically developed for the DCAF framework.
-
-
- 22 Jul, 2020 2 commits
-
-
Olaf Bergmann authored
This change checks tinycbor.pc and sets cbor_CFLAGS and cbor_LIBS accordingly. If tinycbor was found, HAVE_TINYCBOR is set to 1. When tinycbor was not found, cn-cbor is tried as fallback. If present, cbor_CFLAGS, cbor_LIBS, and HAVE_CNCBOR are set accordingly.
-
Olaf Bergmann authored
-
- 18 Jun, 2020 6 commits
-
-
Olaf Bergmann authored
A DCAF_STRING of sufficient size is allocated for encoding or decoding the psk_identity. When no processing is required or no string object was allocated the psk_identity is parsed as raw data.
-
Olaf Bergmann authored
-
Olaf Bergmann authored
-
Olaf Bergmann authored
The function utf8_length() counts the total number of bytes required to encode a given byte string.
-
Olaf Bergmann authored
-
Olaf Bergmann authored
-