Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print comment when converting from/to RFC4716. Bugzilla #2180 #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oliness
Copy link

@oliness oliness commented Mar 18, 2020

As reported in Bugzilla #2180, preserve the comment field when converting public keys from and to RFC4716 format, On export to RFC4716, this change will preserve a comment if one exists or if not, keep the standard user@host comment. On import, it will keep a comment if one exists.

RFC4716 sec 3 does allow multi-line comments indicated by a '', however as supporting that would require a larger code change I haven't included support for it here. If multi-line comments are desirable I'm happy to implement them next.

Some existing unit tests have been change to only check the algorithm and key, as the user@host comment will change per machine. New unit tests are added to test the new comment features.

When converting public keys from RFC4716 to ssh2 format, preserve the comment field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant