Skip to content
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 flags parameter to LIBSSH2_AUTHAGENT_SIGN_FUNC #1385

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MichaelBuckley
Copy link
Contributor

Another change from the Panic repo. Allows agent signing using rsa-sha2-256 and rsa-sha-512 when setting a callback with LIBSSH2_CALLBACK_AUTHAGENT_SIGN.

@vszakats
Copy link
Member

Thanks!

Wouldn't this be an ABI breaking change? In such case perhaps we might do a libssh2_session_callback_set3, while also fixing up other stuff like going with size_t, if it makes sense here?

@MichaelBuckley
Copy link
Contributor Author

It's definitely an ABI breaking change. In this case, I just created a pull request from a commit in our repo that someone else at Panic wrote, without considering if it broke ABI.

If we wanted to preserve ABI, rather than making a libssh2_session_callback_set3, I think we'd have to create a LIBSSH2_CALLBACK_AUTHAGENT_SIGN_2 and a LIBSSH2_AUTHAGENT_SIGN_2. The callback registration wouldn't need to change, since how users interact with this function is by calling LIBSSH2_AUTHAGENT_SIGN.

@vszakats
Copy link
Member

If we wanted to preserve ABI, rather than making a libssh2_session_callback_set3, I think we'd have to create a LIBSSH2_CALLBACK_AUTHAGENT_SIGN_2 and a LIBSSH2_AUTHAGENT_SIGN_2. The callback registration wouldn't need to change, since how users interact with this function is by calling LIBSSH2_AUTHAGENT_SIGN.

You're right, that's a much better way to go.

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.

None yet

2 participants