summaryrefslogtreecommitdiff
path: root/ssh-agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-agent.c')
-rw-r--r--ssh-agent.c25
1 files changed, 4 insertions, 21 deletions
diff --git a/ssh-agent.c b/ssh-agent.c
index 8c4b5397c..6a0c0d07f 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-agent.c,v 1.52 2001/03/06 00:33:04 deraadt Exp $ */ 1/* $OpenBSD: ssh-agent.c,v 1.53 2001/03/26 23:23:24 markus Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -37,7 +37,7 @@
37 */ 37 */
38 38
39#include "includes.h" 39#include "includes.h"
40RCSID("$OpenBSD: ssh-agent.c,v 1.52 2001/03/06 00:33:04 deraadt Exp $"); 40RCSID("$OpenBSD: ssh-agent.c,v 1.53 2001/03/26 23:23:24 markus Exp $");
41 41
42#include <openssl/evp.h> 42#include <openssl/evp.h>
43#include <openssl/md5.h> 43#include <openssl/md5.h>
@@ -361,25 +361,6 @@ process_remove_all_identities(SocketEntry *e, int version)
361} 361}
362 362
363void 363void
364generate_additional_parameters(RSA *rsa)
365{
366 BIGNUM *aux;
367 BN_CTX *ctx;
368 /* Generate additional parameters */
369 aux = BN_new();
370 ctx = BN_CTX_new();
371
372 BN_sub(aux, rsa->q, BN_value_one());
373 BN_mod(rsa->dmq1, rsa->d, aux, ctx);
374
375 BN_sub(aux, rsa->p, BN_value_one());
376 BN_mod(rsa->dmp1, rsa->d, aux, ctx);
377
378 BN_clear_free(aux);
379 BN_CTX_free(ctx);
380}
381
382void
383process_add_identity(SocketEntry *e, int version) 364process_add_identity(SocketEntry *e, int version)
384{ 365{
385 Key *k = NULL; 366 Key *k = NULL;
@@ -738,6 +719,8 @@ main(int ac, char **av)
738 extern int optind; 719 extern int optind;
739 fd_set *readsetp = NULL, *writesetp = NULL; 720 fd_set *readsetp = NULL, *writesetp = NULL;
740 721
722 SSLeay_add_all_algorithms();
723
741 __progname = get_progname(av[0]); 724 __progname = get_progname(av[0]);
742 init_rng(); 725 init_rng();
743 seed_rng(); 726 seed_rng();