-
Notifications
You must be signed in to change notification settings - Fork 52
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 MakeCredential and ActivateCredential to Context #158
Add MakeCredential and ActivateCredential to Context #158
Conversation
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.
Looks good! Only a couple of requests
@@ -653,6 +653,77 @@ impl Context { | |||
} | |||
} | |||
|
|||
pub fn activate_credential( |
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.
Could you add some docs?
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.
Hah! I had actually typed those, but then realized just now that I never committed that!
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.
Actually, are we missing some clippy lint here, I would've thought the CI should fail if something wasn't documented. Or was it because we have way too many types and most are not documented?
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.
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.
oops 😅
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.
We have so much stuff undocumented so enable that would mean a serious amount of errors.
These are basically buffers, but they used a different field name. So in order to accomodate that, I abstracted the buffer_type to named_field_buffer_type. Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This implements the MakeCredential and ActivateCredential TPM2 commands. Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
022f3be
to
f62c08a
Compare
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.
Looks good to me!
I only have one thing to comment about but it is more a matter of preference and feel free to ignore it. I would preferred the name to be IdObject
instead of IDObject
. But that is just my personal preference and feel free to ignore it.
No description provided.