-
Notifications
You must be signed in to change notification settings - Fork 168
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 version range #16
Comments
we should support openssl 0.9.8 to 1.1.0, and libressl |
Thanks for the quick reply. I think it would make sense adding this information to https://github.com/creytiv/re/blob/master/docs/README |
#if defined(SSL_CTX_set_ecdh_auto)
...
#else
...
#endif
#if OPENSSL_VERSION_NUMBER >= 0x1000200fL
...
#else
...
#endif
Move along, nothing to see here! 😰 |
I am not a project member, so take my word with some grain of salt, but:
cat > t.c << EOF
#include <stdio.h>
int
main(void)
{
printf("#ifdef printf: ");
#ifdef printf
printf("true\n");
#else
printf("false\n");
#endif
printf("#if defined(printf): ");
#if defined(printf)
printf("true\n");
#else
printf("false\n");
#endif
return 0;
}
EOF
cc -o t t.c
./t |
Oh, you're right... I'm a bit embarrassed about that. The check above only works because |
can we close this now? if a macro is available to show if a feature is present or not, it is good to use it. |
Obviously, OpenSSL 1.1.0 support is currently being implemented. But what is the minimum OpenSSL version we should support?
This is vital information for PRs such as #15 and an upcoming PR to set Diffie-Hellman parameters. I need to know which functions I can use.
The text was updated successfully, but these errors were encountered: