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

[4.7.1] can't compile cloud-auth when using libressl #4923

Open
ThomasDevoogdt opened this issue Apr 25, 2024 · 2 comments
Open

[4.7.1] can't compile cloud-auth when using libressl #4923

ThomasDevoogdt opened this issue Apr 25, 2024 · 2 comments
Labels

Comments

@ThomasDevoogdt
Copy link

syslog-ng

Version of syslog-ng

syslog-ng-4.7.1

Platform

buildroot
libressl-3.8.2

Issue

Failure

--enable-cloud-auth is broken when using libressl,
I personally don't use it, so I just disabled it, but could be useful if it gets fixed/ or if cmake/.configure checks for the feature.

./modules/cloud-auth/jwt-cpp/include/jwt-cpp/jwt.h:1158:33: error: invalid use of incomplete type 'struct ECDSA_SIG_st'
     auto rr = helper::bn2raw(sig->r);

./modules/cloud-auth/jwt-cpp/include/jwt-cpp/jwt.h:1159:33: error: invalid use of incomplete type 'struct ECDSA_SIG_st'
     auto rs = helper::bn2raw(sig->s);

./modules/cloud-auth/jwt-cpp/include/jwt-cpp/jwt.h:1181:15: error: aggregate 'ECDSA_SIG sig' has incomplete type and cannot be defined
     ECDSA_SIG sig;

@MrAnno
Copy link
Collaborator

MrAnno commented Apr 25, 2024

Thanks for opening this issue.

jwt-cpp supports LibreSSL, but it requires reconfiguration:
https://github.com/Thalhammer/jwt-cpp/blob/master/docs/ssl.md

I guess we can make that configurable in our configure/CMake script and run the regeneration in case LibreSSL or wolfSSL is chosen.

@ThomasDevoogdt
Copy link
Author

Thanks for opening this issue.

jwt-cpp supports LibreSSL, but it requires reconfiguration: https://github.com/Thalhammer/jwt-cpp/blob/master/docs/ssl.md

I guess we can make that configurable in our configure/CMake script and run the regeneration in case LibreSSL or wolfSSL is chosen.

That sounds as a good plan! Most probably, there are some libressl/wolfssl specific version tags which you can check on in the cmake/configure. Or if needed, make a configuration option, and push the problem up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants