Contiki-NG
Loading...
Searching...
No Matches
edhoc-server.h File Reference

EDHOC server API [RFC9528] with CoAP Block-Wise Transfer [RFC7959]. More...

#include "coap-engine.h"
#include "edhoc.h"
#include "coap-timer.h"
#include "coap-block1.h"
#include "edhoc-exporter.h"

Go to the source code of this file.

Data Structures

struct  edhoc_server
 EDHOC Server Struct. More...
struct  edhoc_server_ad
 EDHOC server Application data struct. More...
struct  ecc_data_event
 EDHOC server data event struct. More...

Macros

#define SERV_TIMEOUT_VAL   10000
 Time limit value for EDHOC protocol completion.

Typedefs

typedef struct edhoc_server edhoc_server_t
 EDHOC Server Struct.
typedef struct edhoc_server_ad edhoc_server_ad_t
 EDHOC server Application data struct.
typedef struct ecc_data_event ecc_data_event_t
 EDHOC server data event struct.

Functions

void edhoc_server_init (void)
 Activate the EDHOC CoAP Resource.
uint8_t edhoc_server_start (void)
 Create a new EDHOC context for a new EDHOC protocol session.
uint8_t edhoc_server_reset_handshake (void)
 Reset the EDHOC handshake state for a new client connection.
int8_t edhoc_server_callback (process_event_t ev, void *data)
 Check if an EDHOC server session has finished.
void edhoc_server_close (void)
 Close the EDHOC context.
void edhoc_server_process (coap_message_t *req, coap_message_t *res, edhoc_server_t *ser, uint8_t *msg, size_t len)
 Run the EDHOC Responder role process.
void edhoc_server_set_ad_2 (const void *buf, uint8_t buf_sz)
 Set the Application Data to be carried in EDHOC message 2.
uint8_t edhoc_server_get_ad_1 (char *buf)
 Get the Application Data received in EDHOC message 1.
uint8_t edhoc_server_get_ad_3 (char *buf)
 Get the Application Data received in EDHOC message 3.

Variables

coap_resource_t res_edhoc
 CoAP resource.

Detailed Description

EDHOC server API [RFC9528] with CoAP Block-Wise Transfer [RFC7959].

Author
Lidia Pocero pocer.nosp@m.o@is.nosp@m.i.gr, Peter A Jonsson, Rikard Höglund, Marco Tiloca Christos Koulamas cklm@.nosp@m.isi..nosp@m.gr

Definition in file edhoc-server.h.