search for: do_convert_to_ssh2

Displaying 3 results from an estimated 3 matches for "do_convert_to_ssh2".

2013 Dec 09
1
[Bug 2180] New: Improve the handling of the key comment field
...is missing). Thus, it should be interesting that "ssh-keygen -e" exports the initial comment and "ssh-keygen -i" generates an output with the key comment indicated in key file. ssh-keygen.c: http://www.openssh.com/cgi-bin/cvsweb/src/usr.bin/ssh/ssh-keygen.c ssh-keygen.c:259: do_convert_to_ssh2(struct passwd *pw, Key *k) [...]/* Comment + surrounds must fit into 72 chars (RFC 4716 sec 3.3) */ snprintf(comment, sizeof(comment), "%u-bit %s, converted by %s@%s from OpenSSH", key_size(k), key_type(k), pw->pw_name, hostname); keygen.c:50...
2005 May 19
1
ssh-keygen private keys export - new feature
...; + pb = buffer_ptr(&b); + PUT_32BIT(pb + 4, len); + PUT_32BIT(pb + len1, len - len1 - 4); + PUT_32BIT(pb + len1 + 4, len - len1 - 8); + if (blobp != NULL) { + *blobp = xmalloc(len); + memcpy(*blobp, pb, len); + } + memset(pb, 0, len); + buffer_free(&b); + return len; +} + static void do_convert_to_ssh2(struct passwd *pw) { @@ -161,6 +258,7 @@ u_int len; u_char *blob; struct stat st; + int private = 0; if (!have_identity) ask_filename(pw, "Enter file in which the key is"); @@ -168,27 +266,39 @@ perror(identity_file); exit(1); } - if ((k = key_load_public(ide...
2020 Apr 25
2
[PATCH 1/3] Add private key protection information extraction to ssh-keygen
...;%s: %s: %s", __progname, identity_file, strerror(errno)); ??? ?if ((r = sshkey_load_public(identity_file, &k, NULL)) != 0) -?? ??? ?k = load_identity(identity_file, NULL); +?? ??? ?k = load_identity(identity_file, NULL, NULL); ??? ?switch (convert_format) { ??? ?case FMT_RFC4716: ??? ??? ?do_convert_to_ssh2(pw, k); @@ -806,19 +808,33 @@ do_print_public(struct passwd *pw) ??? ?struct stat st; ??? ?int r; ??? ?char *comment = NULL; +?? ?struct sshkey_vault *vault_info = NULL; ? ??? ?if (!have_identity) ??? ??? ?ask_filename(pw, "Enter file in which the key is"); ??? ?if (stat(identity_file, &a...