Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dtls.c, crypto.h: add documentation for handling dtls_user_parameters_t. #239

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading