Skip to content

session mbedtls, openssl UPDATE optionally enforce EKU and KU#619

Merged
michalvasko merged 1 commit into
CESNET:develfrom
niklas-moser:tls_client_enforce_eku_and_ku_extensions
Jul 13, 2026
Merged

session mbedtls, openssl UPDATE optionally enforce EKU and KU#619
michalvasko merged 1 commit into
CESNET:develfrom
niklas-moser:tls_client_enforce_eku_and_ku_extensions

Conversation

@niklas-moser

Copy link
Copy Markdown

Continuation of this PR, with devel as target branch.

@niklas-moser niklas-moser force-pushed the tls_client_enforce_eku_and_ku_extensions branch 2 times, most recently from 9b0567c to 8e7e05a Compare July 7, 2026 15:29

@Roytak Roytak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, but needs a bit of refactor.

Comment thread src/session_mbedtls.c Outdated
Comment thread src/session_openssl.c Outdated
Comment thread CMakeLists.txt Outdated
@niklas-moser niklas-moser force-pushed the tls_client_enforce_eku_and_ku_extensions branch from 8e7e05a to 824a417 Compare July 8, 2026 10:57
@niklas-moser

niklas-moser commented Jul 8, 2026

Copy link
Copy Markdown
Author

Thank you! I updated the branch, let me know what you think

@niklas-moser niklas-moser requested a review from Roytak July 8, 2026 11:04

@Roytak Roytak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Last comment from me, otherwise LGTM. Will wait for Michal to look at it and merge it when he comes back next week.

Comment thread CMakeLists.txt Outdated
@niklas-moser niklas-moser force-pushed the tls_client_enforce_eku_and_ku_extensions branch from 824a417 to e6f89fb Compare July 8, 2026 13:20
@niklas-moser

Copy link
Copy Markdown
Author

Okay, updated the PR. Thanks!

@michalvasko michalvasko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just some minor changes are needed. As for formatting (the failed tests), a newline is expected before #endif. But please also add one after every #ifxxx, thanks.

Comment thread CMakeLists.txt
@niklas-moser niklas-moser force-pushed the tls_client_enforce_eku_and_ku_extensions branch from e6f89fb to d564c9d Compare July 13, 2026 09:03
@niklas-moser

Copy link
Copy Markdown
Author

Thank you, I updated the PR with the newlines and using #cmakedefine through config.h.in.

@michalvasko michalvasko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not exactly sure why, but uncrustify does not like the newlines in session_mbedtls.c on 838 and 843andsession_openssl.con519and524. Best to just run uncrustify` locally but if you remove these 4 newlines, the tests should finally pass.

…Key Usage (KU) set by client, optional through compile-time flag

Signed-off-by: Niklas Moser <niklas.moser@srs.io>
@niklas-moser niklas-moser force-pushed the tls_client_enforce_eku_and_ku_extensions branch from d564c9d to 3d6aa74 Compare July 13, 2026 10:14
@niklas-moser

Copy link
Copy Markdown
Author

Done!

@michalvasko michalvasko merged commit 7e6e314 into CESNET:devel Jul 13, 2026
11 checks passed
@niklas-moser niklas-moser deleted the tls_client_enforce_eku_and_ku_extensions branch July 13, 2026 12:52
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