Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
timweri committed May 6, 2024
1 parent 31b1e14 commit 59bb199
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ssh/allowed_signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,11 @@ impl AllowedSigners {
}

/// A type used to split the allowed signer segments, abstracting out the handling of double quotes.
/// The splitter is highly aware of the allowed_signer format and will catch certain invalid
/// formats.
///
/// For example: "principals option1=\"value1 value2\" option2 option3=value kt key_data" is split into
/// ["principals", "option1=\"value1 value2\"", "option2", "option3=value", "kt", "key_data"]
struct AllowedSignerSplitter {
/// A buffer of remaining tokens in reverse order.
buffer: Vec<String>,
Expand Down

0 comments on commit 59bb199

Please sign in to comment.