Skip to content

[RFC] Certs and Creds from a managed smart subtransport #1178

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 4 commits into from
Feb 26, 2016

Conversation

carlosmn
Copy link
Member

The current implementation does not ask for credentials or confirm server certs via the libgit2 channel; the implementation we know of wants to bypass libgit2 for these things. Which is fine, but if we want a managed implementation to behave like the built-in ones, we also need to let the subtransport ask for them.

This is an attempt at such an implementation. Basically nothing is final, but I'd like to know what we consider best to deal with return codes coming from the callbacks. We might be able to punt and say that we only support whatever libgit2sharp itself would return, so maybe we don't have to deal with PASSTHROUGH if we never generate it.

This depends on updated libgit2 binaries.

@carlosmn carlosmn force-pushed the cmn/subtransport-owner branch from bebede8 to 5b6bea0 Compare August 23, 2015 15:45
@carlosmn carlosmn changed the title [WIP] Certs and Creds from a managed smart subtransport [RFC] Certs and Creds from a managed smart subtransport Aug 23, 2015
Implement a method for a smart subtransport implementation ask the
caller for what credentials to use.

The certificate callback is also here, but untested as the web requests
go to the central service point instead of asking individually.
@carlosmn carlosmn force-pushed the cmn/subtransport-owner branch from 5b6bea0 to c3a3be5 Compare February 26, 2016 10:44
@carlosmn
Copy link
Member Author

I'm merging this since it's all new functionality so existing code will still work, and we can still try to figure out if something isn't quite right with the code in mainline.

carlosmn added a commit that referenced this pull request Feb 26, 2016
[RFC] Certs and Creds from a managed smart subtransport
@carlosmn carlosmn merged commit 64cafa2 into libgit2:vNext Feb 26, 2016
@carlosmn carlosmn deleted the cmn/subtransport-owner branch February 26, 2016 11:01
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.

1 participant