summaryrefslogtreecommitdiff
path: root/ssh-keygen.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index db4fef2fe..299ba79c8 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: ssh-keygen.c,v 1.80 2001/09/17 19:27:15 stevesk Exp $"); 15RCSID("$OpenBSD: ssh-keygen.c,v 1.81 2001/09/17 20:50:22 markus Exp $");
16 16
17#include <openssl/evp.h> 17#include <openssl/evp.h>
18#include <openssl/pem.h> 18#include <openssl/pem.h>
@@ -163,7 +163,10 @@ do_convert_to_ssh2(struct passwd *pw)
163 exit(1); 163 exit(1);
164 } 164 }
165 } 165 }
166 key_to_blob(k, &blob, &len); 166 if (key_to_blob(k, &blob, &len) <= 0) {
167 fprintf(stderr, "key_to_blob failed\n");
168 exit(1);
169 }
167 fprintf(stdout, "%s\n", SSH_COM_PUBLIC_BEGIN); 170 fprintf(stdout, "%s\n", SSH_COM_PUBLIC_BEGIN);
168 fprintf(stdout, 171 fprintf(stdout,
169 "Comment: \"%d-bit %s, converted from OpenSSH by %s@%s\"\n", 172 "Comment: \"%d-bit %s, converted from OpenSSH by %s@%s\"\n",