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

OpenSSL: Need to add openssl/applink.c to Windows executables using OpenSSL #4864

Closed
obiltschnig opened this issue Feb 7, 2025 · 2 comments · Fixed by #4865
Closed

OpenSSL: Need to add openssl/applink.c to Windows executables using OpenSSL #4864

obiltschnig opened this issue Feb 7, 2025 · 2 comments · Fixed by #4865

Comments

@obiltschnig
Copy link
Member

When building on Windows with OpenSSL, the file applink.c needs to be compiled into the executable.
With CMake this can be done by adding:

target_link_libraries(target PRIVATE OpenSSL::applink)

This is apparent when trying to run the NetSSL test suite on Windows.

@matejk
Copy link
Contributor

matejk commented Feb 7, 2025

Did this issue occur with release 1.14?

We use pre-built OpenSSL 3 with 1.13 and there was no need to link additional file.

Which applink.c has to be used?

Can it be added to git and be used with any pre-compiled OpenSSL?

@obiltschnig
Copy link
Member Author

It's usually included with OpenSSL (in the include/openssl directory). Whether it's actually needed depends apparently on a few things (it's not well documented). This probably includes how OpenSSL was built.

OPENSSL_Applink
https://cmake.org/cmake/help/latest/module/FindOpenSSL.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants