Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

openssl >= 1.0.1 has SSL_OP_NO_SSLv2 == 0; fix unused-function warnin…#1

Open
crylico wants to merge 1 commit into
masterfrom
unknown repository
Open

openssl >= 1.0.1 has SSL_OP_NO_SSLv2 == 0; fix unused-function warnin…#1
crylico wants to merge 1 commit into
masterfrom
unknown repository

Conversation

@crylico

@crylico crylico commented Mar 15, 2017

Copy link
Copy Markdown

…g for pointed-to-only functions

@Midar

Midar commented Mar 20, 2017

Copy link
Copy Markdown
Collaborator

Hm, this works for me with OpenSSL 1.0.2j. The #pragma part of the change seems like a hash, can you paste the actual error you get? There might be a better way to do this, depending on the error you get.

@crylico

crylico commented Mar 23, 2017

Copy link
Copy Markdown
Author

I'm using libcurl4-openssl-dev as my openssl implementation - Maybe they've diverged from the general OpenSSL releases?

As for the #pragma's, it only shows up under -Wall and is only a problem under -Werror. This is probably something that doesn't belong in the code now that I think about it.

Perhaps the change to the SSL flag checking is still good to assure correctness regardless of version?

@Midar

Midar commented Mar 23, 2017

Copy link
Copy Markdown
Collaborator

libcurl4-openssl-dev sounds like you're using Debian? Which release exactly?

Yes, it's normal that it only shows up with -Wall and only is a problem with -Werror - but that is intentional. Since this is not 1.0 yet, I'd rather have people open bugs because it doesn't compile than warnings going unnoticed :). The bug sounds pretty similar to what I've seen on OpenSSL 1.1, though. I was thinking about maybe just adding some (void)foo to make the unused warning go away in that case.

@crylico

crylico commented Mar 23, 2017

Copy link
Copy Markdown
Author

Yep! I'm using Debian 8.7.

@Midar

Midar commented Mar 25, 2017

Copy link
Copy Markdown
Collaborator

What does openssl version print for you?

@crylico

crylico commented Mar 27, 2017 via email

Copy link
Copy Markdown
Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants