comparison cli-main.c @ 795:7f604f9b3756 ecc

ecdsa is working
author Matt Johnston <matt@ucc.asn.au>
date Fri, 03 May 2013 23:07:48 +0800
parents 00eca37e47e8
children 7dcb46da72d9
comparison
equal deleted inserted replaced
794:d386defb5376 795:7f604f9b3756
26 26
27 #include "includes.h" 27 #include "includes.h"
28 #include "dbutil.h" 28 #include "dbutil.h"
29 #include "runopts.h" 29 #include "runopts.h"
30 #include "session.h" 30 #include "session.h"
31 #include "random.h"
32 #include "crypto_desc.h"
31 33
32 static void cli_dropbear_exit(int exitcode, const char* format, va_list param) ATTRIB_NORETURN; 34 static void cli_dropbear_exit(int exitcode, const char* format, va_list param) ATTRIB_NORETURN;
33 static void cli_dropbear_log(int priority, const char* format, va_list param); 35 static void cli_dropbear_log(int priority, const char* format, va_list param);
34 36
35 #ifdef ENABLE_CLI_PROXYCMD 37 #ifdef ENABLE_CLI_PROXYCMD
48 50
49 _dropbear_exit = cli_dropbear_exit; 51 _dropbear_exit = cli_dropbear_exit;
50 _dropbear_log = cli_dropbear_log; 52 _dropbear_log = cli_dropbear_log;
51 53
52 disallow_core(); 54 disallow_core();
55
56 seedrandom();
57 crypto_init();
53 58
54 cli_getopts(argc, argv); 59 cli_getopts(argc, argv);
55 60
56 TRACE(("user='%s' host='%s' port='%s'", cli_opts.username, 61 TRACE(("user='%s' host='%s' port='%s'", cli_opts.username,
57 cli_opts.remotehost, cli_opts.remoteport)) 62 cli_opts.remotehost, cli_opts.remoteport))