Skip to main content

parse_github_keys

Function parse_github_keys 

Source
pub fn parse_github_keys(
    body: &str,
    username: &str,
) -> Result<Vec<(MurkRecipient, String)>, GitHubError>
Expand description

Parse SSH keys from a GitHub .keys response body.

Filters to ed25519 and rsa only. Normalizes by stripping comments.