1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Fix bug 901.

This commit is contained in:
Werner Koch 2008-12-08 17:11:26 +00:00
parent c0e87630d5
commit e46668599d
3 changed files with 19 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2008-12-08 Werner Koch <wk@g10code.com>
* gpgkey2ssh.c (main): Change order of output for RSA. Change name
of DSA identifier. Reported by Daniel Kahn Gillmor. This is
bug#901.
2008-12-05 Werner Koch <wk@g10code.com>
* gpg-connect-agent.c (opts): Use ARGPARSE_ macros.

View file

@ -1,4 +1,4 @@
/* gpgkey2ssh.c - Converter ...
/* gpgkey2ssh.c - Converter (Debug helper)
* Copyright (C) 2005 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
@ -17,6 +17,15 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
/*
FIXME: This tool needs some cleanup:
- Do not use assert() for error output.
- Add proper option parsing and standard options.
- retrieve_key_material needs to take the ordinal at field 1 in account.
0 Write a man page.
*/
#include <config.h>
#include <gcrypt.h>
@ -272,11 +281,11 @@ main (int argc, char **argv)
{
identifier = "ssh-rsa";
ret = key_to_blob (&blob, &blob_n, identifier,
&pkdbuf[0], &pkdbuf[1], NULL);
&pkdbuf[1], &pkdbuf[0], NULL);
}
else if (algorithm_id == 17)
{
identifier = "ssh-dsa";
identifier = "ssh-dss";
ret = key_to_blob (&blob, &blob_n, identifier,
&pkdbuf[0], &pkdbuf[1], &pkdbuf[2], &pkdbuf[3], NULL);
}