summaryrefslogtreecommitdiff
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-07-04 05:08:39 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-07-04 05:08:39 +0000
commitd6e049cd59712b42ceb6d7cdfec254706c0480a2 (patch)
tree87f52e64a0baa8f5d0420baf72e65452839cb864 /ssh-keygen.c
parent7feba35a47ad79dd344eee01a07f1dace1c06622 (diff)
- markus@cvs.openbsd.org 2001/06/29 07:11:01
[ssh-keygen.c] initialize early
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index f1e6d53c7..bcb7ab2c3 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.70 2001/06/29 07:06:34 markus Exp $"); 15RCSID("$OpenBSD: ssh-keygen.c,v 1.71 2001/06/29 07:11:01 markus Exp $");
16 16
17#include <openssl/evp.h> 17#include <openssl/evp.h>
18#include <openssl/pem.h> 18#include <openssl/pem.h>
@@ -405,6 +405,8 @@ do_upload(struct passwd *pw, int reader)
405 int len, status = 1, i, fd = -1, ret; 405 int len, status = 1, i, fd = -1, ret;
406 int r1 = 0, r2 = 0, cla = 0x00; 406 int r1 = 0, r2 = 0, cla = 0x00;
407 407
408 for (i = 0; i < NUM_RSA_KEY_ELEMENTS; i++)
409 elements[i] = NULL;
408 if (!have_identity) 410 if (!have_identity)
409 ask_filename(pw, "Enter file in which the key is"); 411 ask_filename(pw, "Enter file in which the key is");
410 if (stat(identity_file, &st) < 0) { 412 if (stat(identity_file, &st) < 0) {
@@ -416,8 +418,6 @@ do_upload(struct passwd *pw, int reader)
416 error("load failed"); 418 error("load failed");
417 goto done; 419 goto done;
418 } 420 }
419 for (i = 0; i < NUM_RSA_KEY_ELEMENTS; i++)
420 elements[i] = NULL;
421 COPY_RSA_KEY(q, 0); 421 COPY_RSA_KEY(q, 0);
422 COPY_RSA_KEY(p, 1); 422 COPY_RSA_KEY(p, 1);
423 COPY_RSA_KEY(iqmp, 2); 423 COPY_RSA_KEY(iqmp, 2);