Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Miscellaneous small fixes #28

Merged
merged 3 commits into from
Apr 25, 2018
Merged

Miscellaneous small fixes #28

merged 3 commits into from
Apr 25, 2018

Conversation

csssuf
Copy link
Contributor

@csssuf csssuf commented Apr 25, 2018

The most significant thing here is deriving Fail for ReturnCode, which allows returning bare ReturnCodes. Eventually I'd like to move over to doing so for most functions which return Results, and leave it up to the library consumer to appropriately handle various ReturnCodes.

csssuf added 3 commits April 24, 2018 16:38
Eventually we should just return ReturnCodes directly from most
functions rather than formatted strings, and leave it up to the
consumer what to do with the ReturnCode.
Callers of reset() will care about a ReturnCode::NetError, since this is
what is actually typically returned on success. The HSM reboots
immediately when reset() is called, meaning it vanishes out from under
the connector which dutifully returns a NetError. However, don't try to
be clever here in the library and let callers deal with it.
@csssuf csssuf requested a review from crawford April 25, 2018 00:33
@csssuf csssuf merged commit 36f26b3 into coreos:master Apr 25, 2018
@csssuf csssuf deleted the fixes branch April 25, 2018 18:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants