Skip to content

Patch for all-1s valid_before cert#3

Open
lanshubo wants to merge 1 commit into
Eugeny:russh-current-0.6.7from
mujin:patch-all-1s-cert
Open

Patch for all-1s valid_before cert#3
lanshubo wants to merge 1 commit into
Eugeny:russh-current-0.6.7from
mujin:patch-all-1s-cert

Conversation

@lanshubo
Copy link
Copy Markdown

For OpenSSH certs, the "valid_before" field can be set to u64::MAX to indicate that the certificate never expires (i.e. "forever"). Current code will panic when decoding certificates with all-1s "valid_before". This PR patches this situation, by setting secs to the actual number u64::MAX, and setting time to i64::MAX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant