Macro to handle legacy OpenSSL SSLeay_add_all_algorithms() #5294
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, I am one of the Fedora Owncloud-Client maintainers.
Fedora Rawhide (26) ships OpenSSL 1.1.0 that no longer permits to call the old
SSLeay_add_all_algorithms()that has been replaced withOpenSSL_add_all_algorithms()since OpenSSL version 0.9.5. So we started getting build failuresI solved by adding a macro that calls
SSLeay_add_all_algorithms()if the system uses OpenSSL <= 0.9.4OpenSSL_add_all_algorithms()if the system uses OpenSSL > 0.9.4The hexadecimal code for OpenSSL 0.9.4 version has been taken from [here] (https://github.com/openssl/openssl/blob/6f0ac0e2f27d9240516edb9a23b7863e7ad02898/include/openssl/opensslv.h#L29)
Best regards
Germano Massullo