Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

crylico
Copy link

@crylico crylico commented Mar 15, 2017

…g for pointed-to-only functions

@Midar
Copy link
Collaborator

Midar commented Mar 20, 2017

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
Copy link
Author

crylico commented Mar 23, 2017

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
Copy link
Collaborator

Midar commented Mar 23, 2017

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
Copy link
Author

crylico commented Mar 23, 2017

Yep! I'm using Debian 8.7.

@Midar
Copy link
Collaborator

Midar commented Mar 25, 2017

What does openssl version print for you?

@crylico
Copy link
Author

crylico commented Mar 27, 2017 via email

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