-
Notifications
You must be signed in to change notification settings - Fork 398
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
Add the ssh_key_from_memory optional feature. #331
Add the ssh_key_from_memory optional feature. #331
Conversation
Thanks! It looks like though this is defined by libgit2's build system if it detects a symbol in libssh2, and maybe the detection is broken? Are you sure the libssh2 build you're using has the |
When I enable the feature, everything works as expected. |
In that case perhaps this should be enabled unconditionally? Assuming that we put it on ourselves to find an appropriate libssh2 build? |
Maybe. I made it optional because I don't know what would happen if someone uses it with a system libssh2 that does not support it. In my case I'm also using the |
Hm yeah the API there seems to have been added 4 years ago, so it seems fine to unconditionally enable this. |
Does that mean I remove the cargo "feature" thing, or make it enabled by default? |
Indeed! |
Users with older versions of libssh can still disable it if needed.
@alexcrichton Here you go! |
Thanks! |
Fix for https://github.com/alexcrichton/git2-rs/issues/320
This is done through a feature that will enable the
GIT_SSH_MEMORY_CREDENTIALS
flag when buildinglibgit2-sys
.This feature is optional so that the current behavior is unchanged.