-
Notifications
You must be signed in to change notification settings - Fork 2.5k
stream: allow registering a user-provided TLS constructor #3465
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
12ae5c1
to
50b6261
Compare
Will this make it into 0.24.0? |
@@ -39,6 +39,19 @@ typedef struct git_stream { | |||
void (*free)(struct git_stream *); | |||
} git_stream; | |||
|
|||
typedef int (*git_stream_ctor)(git_stream **out, const char *host, const char *port); |
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.
I think that this might slightly better match some of the existing type names if it were git_stream_cb
. (See for example git_transport_cb
which has a similar purpose.)
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.
Done.
Minor nit on the name, otherwise 👍 |
98fc0a8
to
5acca4b
Compare
This allows the application to use their own TLS stream, regardless of the capabilities of libgit2 itself.
5acca4b
to
7fafde6
Compare
stream: allow registering a user-provided TLS constructor
Lovely, thanks! |
This allows the application to use their own TLS stream, regardless of
the capabilities of libgit2 itself.
The naming feels a bit all over the place, so suggestions there would be great.