search for: read_public_only

Displaying 1 result from an estimated 1 matches for "read_public_only".

2012 Sep 09
2
Patch for ssh-keygen to allow conversion of public key to openssh format
...nssh-6.1p1/ssh-keygen.c openssh-6.1p1-lano/ssh-keygen.c --- openssh-6.1p1/ssh-keygen.c 2012-07-31 04:20:44.000000000 +0200 +++ openssh-6.1p1-lano/ssh-keygen.c 2012-09-07 09:26:01.000000000 +0200 @@ -141,6 +141,7 @@ } convert_format = FMT_RFC4716; int print_public = 0; int print_generic = 0; +int read_public_only = 0; char *key_type_name = NULL; @@ -240,6 +241,13 @@ char *pass; Key *prv; + if (read_public_only) { + Key *pub; + + pub = key_load_public(filename, NULL); + return pub; + } + prv = key_load_private(filename, "", NULL);...