-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Enable https transport for custom TLS streams #3850
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
Conversation
This is something we've gone back and forth on a bit. Whether we should treat HTTPS or SSH any different just because git ships with them. We currently treat them as any other pluggable protocol, but there's been some confusion as it often ends up without HTTPS on the field. The way to fix this should be to remove the special-casing, rather than adding more. If adding this define makes the code work sensibly, it shows that we don't actually need it and should instead let the TLS stream constructors error out instead. |
@@ -29,7 +29,7 @@ int git_libgit2_features(void) | |||
#ifdef GIT_THREADS | |||
| GIT_FEATURE_THREADS | |||
#endif | |||
#if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT) | |||
#if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT) || defined(GIT_CUSTOM_TLS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This defines are there to show how libgit2 was compiled. Adding this would make it meaningless.
Fair enough. Removing this make sense as TLS stream creation would fail if stream constructor is not provided. |
Bump. Thoughts on this without any of the ifdefs? |
@ethomson Review, plz. |
Yep! This looks good to me - thanks! |
Unfortunately, custom TLS stream API is useless because
https
transport become disabled when any of secure connection frameworks aren't used.