-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subject_name: rm unused err return for IP subj. cmp.
Previously the ip address module's `presented_id_matches_reference_id` function returned `Result<bool, Error>`, similar to the DNS subject name function of the same name. In the case of the IP address implementation there is no codepath that returns an error. The lengths of the inputs are checked ahead of time, and the DER reads are infallible for the byte-for-byte compare. All of our unit tests also expect a true/false return, not an error. With the above in mind this commit changes the `presented_id_matches_reference_id` return type to `bool` and updates the call-sites and unit tests accordingly.
- Loading branch information
Showing
2 changed files
with
40 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters