comparison cli-authpasswd.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 e3adf4cf5465
children 0cfba3034be5
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 #include "buffer.h" 26 #include "buffer.h"
3 #include "dbutil.h" 27 #include "dbutil.h"
4 #include "session.h" 28 #include "session.h"
5 #include "ssh.h" 29 #include "ssh.h"
6 #include "runopts.h" 30 #include "runopts.h"
7 31
32 #ifdef ENABLE_CLI_PASSWORD_AUTH
8 int cli_auth_password() { 33 int cli_auth_password() {
9 34
10 char* password = NULL; 35 char* password = NULL;
11 TRACE(("enter cli_auth_password")); 36 TRACE(("enter cli_auth_password"));
12 37
33 58
34 TRACE(("leave cli_auth_password")); 59 TRACE(("leave cli_auth_password"));
35 return 1; /* Password auth can always be tried */ 60 return 1; /* Password auth can always be tried */
36 61
37 } 62 }
63 #endif