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

CMake buid scripts don't offer --enable-keylog-export like option #8165

Open
redbaron opened this issue Nov 8, 2024 · 5 comments · May be fixed by #8174
Open

CMake buid scripts don't offer --enable-keylog-export like option #8165

redbaron opened this issue Nov 8, 2024 · 5 comments · May be fixed by #8174
Assignees

Comments

@redbaron
Copy link

redbaron commented Nov 8, 2024

Version

5.7.4

Description

configure script has --enable-keylog-export param which defines WOLFSSL_SSLKEYLOGFILE. This feature doesn't seem to be supported by CMake build scripts.

@dgarske
Copy link
Contributor

dgarske commented Nov 8, 2024

@bigbrett can you review this bug report and evaluate effort to fix?

@bigbrett
Copy link
Contributor

bigbrett commented Nov 8, 2024

@redbaron Thanks for pointing that out, we can add it in.

In the meantime, if you ensure the C macros -DSHOW_SECRETS -DHAVE_SECRET_CALLBACK -DWOLFSSL_SSLKEYLOGFILE -DWOLFSSL_KEYLOG_EXPORT_WARNED are defined, it will have the equivalent behavior.

@redbaron
Copy link
Author

@bigbrett , yeah passing -DWOLFSSL_DEFINITIONS with list of defines does the trick nicely in all cases so far, but first class CMake support will help discovering these features easier.

In general it seems that autotools has more love: 148 vs 34 commits this year so far.

$ git log  CMakeLists.txt cmake |grep -F ' 2024 ' | wc -l
34

$ git log  configure.ac |grep -F ' 2024 ' | wc -l  
148

It is probably because autotools is more popular among embedded devs, but your build instructions don't mention CMake either :(

@bigbrett
Copy link
Contributor

@redbaron Yep I agree, our CMake coverage does often slip behind. wolfSSL has a long history with autotools, and for better or for worse, that is our default supported build system. So we do rely on the community for issues like this in keeping our CMake support up to date. Community PRs for CMake support are always appreciated :)

@redbaron
Copy link
Author

@bigbrett ,

Community PRs for CMake support are always appreciated :)

took opportunity to add more ergonomic helper to define build option: #8174

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 a pull request may close this issue.

3 participants