Skip to content

Conversation

@mrdeep1
Copy link
Contributor

@mrdeep1 mrdeep1 commented Jan 16, 2025

No description provided.

@mrdeep1
Copy link
Contributor Author

mrdeep1 commented Jan 16, 2025

Addresses #245.

Copy link
Contributor

@obgm obgm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

static unsigned int force_extended_master_secret = 0;
static unsigned int force_renegotiation_info = 0;

static int quit = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C is too long ago for me ;-).
Doesn't this require a volatile?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. If the while (!quit) loop did not call other functions, volatile would certainly be needed. Here, the compiler is unlikely to optimize it out as it is a global, but I guess that it is possible.

I will update the PR accordingly.

Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
@boaks
Copy link
Contributor

boaks commented Jan 18, 2025

LGTM

@boaks boaks merged commit 8a9e048 into eclipse-tinydtls:main Jan 18, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants