-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat(ffi): PKCS7 C# bindings #255
Conversation
Co-authored-by: Benoît Cortier <[email protected]>
…rs into ARC-167-PKCS7-binding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think you are on the right track! 👍
For some reason, I updated the branch, but the PR is not synchronized. the actual commit is here master...ARC-167-PKCS7-binding Update: fixed it |
Can you add a few tests? Create a new |
ffi/src/utils.rs
Outdated
#[diplomat::opaque] // Named RsBuffer to avoid conflict with the Diplomat runtime Buffer | ||
pub struct RsBuffer(pub Vec<u8>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: VecU8
(I know it’s not ideal either)
ffi/src/utils.rs
Outdated
#[diplomat::opaque] | ||
pub struct BufferIterator(pub Vec<Buffer>); | ||
pub struct BufferIterator(pub Vec<RsBuffer>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: VecU8Iterator
found out I missed a important part of what is exposed in Pkcs7, will push up a new commit today. |
No problem! I’ll merge when I wake up tomorrow then! |
@CBenoit 😕 , I can't pass the locally created Pkcs7 test, the Edit: I need a few tips on how to debug the DLL, eprintln! seems not printing anything at all. |
CI is not running the C# tests at all for now. It required manual modification of the csproj file at some point. We should be able to add it to the CI soon though. But yeah, you have to ensure the tests are green manually for now. |
Try to use |
…rs into ARC-167-PKCS7-binding
Thanks, I think I have fixed it
|
I think it is good to merge now @CBenoit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Good job!
Hello @CBenoit , this is a draft, not completely finished yet but it have the basic structure here. I would appreciate your feedback to make sure if I am on the right track!
Thanks 😄