Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 2 commits into from
Nov 4, 2015

Conversation

carlosmn
Copy link
Member

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.

@tkelman tkelman mentioned this pull request Oct 13, 2015
@carlosmn carlosmn force-pushed the cmn/tls-register branch 2 times, most recently from 12ae5c1 to 50b6261 Compare October 13, 2015 13:33
@tkelman
Copy link
Contributor

tkelman commented Nov 1, 2015

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);
Copy link
Member

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.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ethomson
Copy link
Member

ethomson commented Nov 2, 2015

Minor nit on the name, otherwise 👍

@carlosmn carlosmn force-pushed the cmn/tls-register branch 2 times, most recently from 98fc0a8 to 5acca4b Compare November 3, 2015 16:08
This allows the application to use their own TLS stream, regardless of
the capabilities of libgit2 itself.
ethomson added a commit that referenced this pull request Nov 4, 2015
stream: allow registering a user-provided TLS constructor
@ethomson ethomson merged commit 5aa28a8 into master Nov 4, 2015
@tkelman
Copy link
Contributor

tkelman commented Nov 4, 2015

Lovely, thanks!

@carlosmn carlosmn deleted the cmn/tls-register branch December 9, 2015 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants