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

dropbearkey: save a public key file .pub #267

Merged
merged 3 commits into from
Jan 22, 2024
Merged

dropbearkey: save a public key file .pub #267

merged 3 commits into from
Jan 22, 2024

Commits on Dec 18, 2023

  1. dropbearkey: -C option to specify a comment/email for the generated key

    The OpenSSH keygen stores the key comment into a private key.
    The Dropbear key format is simpler and can't do that.
    But we can store/print it to a public key.
    
    The option also improves compatibility with scripts developed for OpenSSH keygen.
    
    Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
    stokito committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    b51e1fa View commit details
    Browse the repository at this point in the history
  2. dropbearkey: save a public key file on a key generation

    The OpenSSH keygen stores the public part of a new key to a .pub file.
    Make the DropBear behave same.
    
    Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
    stokito committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    efb106c View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Use fprintf rather than dprintf to write pubkey

    dprintf() was only introduced in posix 2008 so won't be supported
    by older platforms. gnulib suggests:
    
    https://www.gnu.org/software/gnulib/manual/html_node/dprintf.html
    This function is missing on many non-glibc platforms: Mac OS X 10.5,
    FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11,
    IRIX 6.5, Solaris 11.3, Cygwin 1.5.x, mingw, MSVC 14.
    mkj committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    44b611f View commit details
    Browse the repository at this point in the history