=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh-keygen.c,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- src/usr.bin/ssh/ssh-keygen.c 2001/03/11 22:33:24 1.49 +++ src/usr.bin/ssh/ssh-keygen.c 2001/03/12 22:02:02 1.50 @@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-keygen.c,v 1.49 2001/03/11 22:33:24 markus Exp $"); +RCSID("$OpenBSD: ssh-keygen.c,v 1.50 2001/03/12 22:02:02 markus Exp $"); #include #include @@ -349,7 +349,7 @@ debug("try_load_public_key KEY_UNSPEC failed"); } if (success) { - fp = key_fingerprint_ex(public, type, rep); + fp = key_fingerprint(public, type, rep); printf("%d %s %s\n", key_size(public), fp, comment); key_free(public); @@ -405,7 +405,7 @@ } } comment = *cp ? cp : comment; - fp = key_fingerprint_ex(public, type, rep); + fp = key_fingerprint(public, type, rep); printf("%d %s %s\n", key_size(public), fp, comment ? comment : "no comment"); xfree(fp); @@ -850,10 +850,12 @@ fclose(f); if (!quiet) { + char *fp = key_fingerprint(public, SSH_FP_MD5, SSH_FP_HEX); printf("Your public key has been saved in %s.\n", identity_file); printf("The key fingerprint is:\n"); - printf("%s %s\n", key_fingerprint(public), comment); + printf("%s %s\n", fp, comment); + xfree(fp); } key_free(public);