comparison dropbearconvert.c @ 118:5312ca05ed48 private-rez

propagate of 717950f4061f1123659ee87c7c168805af920ab7 and 839f98f136788cc1466e4641bf796f96040a085d from branch 'matt.dbclient.authpam' to 'matt.dbclient.rez'
author Matt Johnston <matt@ucc.asn.au>
date Sun, 12 Sep 2004 04:56:50 +0000
parents c85c88500ea6
children 740e782679be 71e7d31f7671
comparison
equal deleted inserted replaced
57:3b2a5a1c4347 118:5312ca05ed48
45 "The input and output types are one of:\n" 45 "The input and output types are one of:\n"
46 "openssh\n" 46 "openssh\n"
47 "dropbear\n" 47 "dropbear\n"
48 "\n" 48 "\n"
49 "Example:\n" 49 "Example:\n"
50 "dropbearconvert openssh dropbear /etc/ssh/ssh_host_rsa_key /etc/dropbear_rsa_host_key\n" 50 "dropbearconvert openssh dropbear /etc/ssh/ssh_host_rsa_key /etc/dropbear_rsa_host_key\n",
51 "\n" 51 progname);
52 "The inputfile and output file can be '-' to specify\n"
53 "standard input or standard output.\n", progname);
54 } 52 }
55 53
56 #if defined(DBMULTI_dropbearconvert) || !defined(DROPBEAR_MULTI) 54 #if defined(DBMULTI_dropbearconvert) || !defined(DROPBEAR_MULTI)
57 #if defined(DBMULTI_dropbearconvert) && defined(DROPBEAR_MULTI) 55 #if defined(DBMULTI_dropbearconvert) && defined(DROPBEAR_MULTI)
58 int dropbearconvert_main(int argc, char ** argv) { 56 int dropbearconvert_main(int argc, char ** argv) {
61 #endif 59 #endif
62 60
63 int intype, outtype; 61 int intype, outtype;
64 const char* infile; 62 const char* infile;
65 const char* outfile; 63 const char* outfile;
64
65 #ifdef DEBUG_TRACE
66 /* It's hard for it to get in the way _too_ much */
67 debug_trace = 1;
68 #endif
66 69
67 /* get the commandline options */ 70 /* get the commandline options */
68 if (argc != 5) { 71 if (argc != 5) {
69 fprintf(stderr, "All arguments must be specified\n"); 72 fprintf(stderr, "All arguments must be specified\n");
70 goto usage; 73 goto usage;