Skip to content

Commit

Permalink
dtls.c, crypto.h: add documentation for handling dtls_user_parameters_t.
Browse files Browse the repository at this point in the history
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
  • Loading branch information
boaks committed May 13, 2024
1 parent 802e137 commit ab0644f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ struct netq_t;

/**
* Set of user parameters used by the handshake.
*
* A copy of default_user_parameters (see dtls.c) are passed to the
* get_user_parameters callback provided in dtls_handler_t and may be
* adapted according the user's requirements.
*/
typedef struct dtls_user_parameters_t {
/**
Expand Down
5 changes: 5 additions & 0 deletions dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,11 @@ dtls_set_handshake_header(uint8 type,
return buf;
}

/**
* A copy of default_user_parameters are passed to the get_user_parameters
* callback provided in dtls_handler_t and may be adapted according the user's
* requirements.
*/
static const dtls_user_parameters_t default_user_parameters = {
.cipher_suites =
#ifdef DTLS_DEFAULT_CIPHER_SUITES
Expand Down

0 comments on commit ab0644f

Please sign in to comment.