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 signature-handling methods #1304

Merged
merged 3 commits into from
Apr 27, 2016
Merged

Add signature-handling methods #1304

merged 3 commits into from
Apr 27, 2016

Conversation

carlosmn
Copy link
Member

@carlosmn carlosmn commented Apr 15, 2016

Wrap the library's signed-commit handling methods.

CreateCommitWithSignature() is in ObjectDatabase since that's where the rest are, although we'd want to move them all together into Repository eventually.

Fixes #1101

}
}

return LaxUtf8Marshaler.FromNative(buf.ptr);
Copy link
Member

Choose a reason for hiding this comment

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

Odd formatting here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

We have some methods for creating objects from specific data, but not
for creating it out of an existing buffer.
This method returns the signature data along with the rest of the commit
without this header field, ready to be fed to whatever authentication
method the caller prefers.
First you need to create a buffer which you can apply the signature
function to. You can then create the commit object the data and its
signature.
@ethomson
Copy link
Member

🎉

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