comparison dbmulti.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 9b7fc71039cd
children 740e782679be af4ef98b8591
comparison
equal deleted inserted replaced
57:3b2a5a1c4347 118:5312ca05ed48
1 /*
2 * Dropbear SSH
3 *
4 * Copyright (c) 2002,2003 Matt Johnston
5 * All rights reserved.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal
9 * in the Software without restriction, including without limitation the rights
10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 * copies of the Software, and to permit persons to whom the Software is
12 * furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included in
15 * all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 * SOFTWARE. */
24
1 #include "includes.h" 25 #include "includes.h"
2 26
3 /* definitions are cleanest if we just put them here */ 27 /* definitions are cleanest if we just put them here */
4 int dropbear_main(int argc, char ** argv); 28 int dropbear_main(int argc, char ** argv);
5 int dropbearkey_main(int argc, char ** argv); 29 int dropbearkey_main(int argc, char ** argv);
18 if (strcmp(progname, "dropbear") == 0) { 42 if (strcmp(progname, "dropbear") == 0) {
19 return dropbear_main(argc, argv); 43 return dropbear_main(argc, argv);
20 } 44 }
21 #endif 45 #endif
22 #ifdef DBMULTI_dbclient 46 #ifdef DBMULTI_dbclient
23 if (strcmp(progname, "dbclient") == 0) { 47 if (strcmp(progname, "dbclient") == 0
48 || strcmp(progname, "ssh") == 0) {
24 return cli_main(argc, argv); 49 return cli_main(argc, argv);
25 } 50 }
26 #endif 51 #endif
27 #ifdef DBMULTI_dropbearkey 52 #ifdef DBMULTI_dropbearkey
28 if (strcmp(progname, "dropbearkey") == 0) { 53 if (strcmp(progname, "dropbearkey") == 0) {
45 "Make a symlink pointing at this binary with one of the following names:\n" 70 "Make a symlink pointing at this binary with one of the following names:\n"
46 #ifdef DBMULTI_dropbear 71 #ifdef DBMULTI_dropbear
47 "'dropbear' - the Dropbear server\n" 72 "'dropbear' - the Dropbear server\n"
48 #endif 73 #endif
49 #ifdef DBMULTI_dbclient 74 #ifdef DBMULTI_dbclient
50 "'dbclient' - the Dropbear client\n" 75 "'dbclient' or 'ssh' - the Dropbear client\n"
51 #endif 76 #endif
52 #ifdef DBMULTI_dropbearkey 77 #ifdef DBMULTI_dropbearkey
53 "'dropbearkey' - the key generator\n" 78 "'dropbearkey' - the key generator\n"
54 #endif 79 #endif
55 #ifdef DBMULTI_dropbearconvert 80 #ifdef DBMULTI_dropbearconvert