diff options
Diffstat (limited to 'auth-passwd.c')
-rw-r--r-- | auth-passwd.c | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/auth-passwd.c b/auth-passwd.c index 184ce154c..8295ea177 100644 --- a/auth-passwd.c +++ b/auth-passwd.c | |||
@@ -11,30 +11,7 @@ | |||
11 | * incompatible with the protocol description in the RFC file, it must be | 11 | * incompatible with the protocol description in the RFC file, it must be |
12 | * called by a name other than "ssh" or "Secure Shell". | 12 | * called by a name other than "ssh" or "Secure Shell". |
13 | * | 13 | * |
14 | * | ||
15 | * Copyright (c) 1999 Dug Song. All rights reserved. | 14 | * Copyright (c) 1999 Dug Song. All rights reserved. |
16 | * | ||
17 | * Redistribution and use in source and binary forms, with or without | ||
18 | * modification, are permitted provided that the following conditions | ||
19 | * are met: | ||
20 | * 1. Redistributions of source code must retain the above copyright | ||
21 | * notice, this list of conditions and the following disclaimer. | ||
22 | * 2. Redistributions in binary form must reproduce the above copyright | ||
23 | * notice, this list of conditions and the following disclaimer in the | ||
24 | * documentation and/or other materials provided with the distribution. | ||
25 | * | ||
26 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
27 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
28 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
29 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
30 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
31 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
32 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
33 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
34 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
35 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
36 | * | ||
37 | * | ||
38 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 15 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
39 | * | 16 | * |
40 | * Redistribution and use in source and binary forms, with or without | 17 | * Redistribution and use in source and binary forms, with or without |
@@ -59,7 +36,7 @@ | |||
59 | */ | 36 | */ |
60 | 37 | ||
61 | #include "includes.h" | 38 | #include "includes.h" |
62 | RCSID("$OpenBSD: auth-passwd.c,v 1.18 2000/10/03 18:03:03 markus Exp $"); | 39 | RCSID("$OpenBSD: auth-passwd.c,v 1.19 2001/01/18 16:59:59 markus Exp $"); |
63 | 40 | ||
64 | #if !defined(USE_PAM) && !defined(HAVE_OSF_SIA) | 41 | #if !defined(USE_PAM) && !defined(HAVE_OSF_SIA) |
65 | 42 | ||
@@ -68,6 +45,8 @@ RCSID("$OpenBSD: auth-passwd.c,v 1.18 2000/10/03 18:03:03 markus Exp $"); | |||
68 | #include "servconf.h" | 45 | #include "servconf.h" |
69 | #include "xmalloc.h" | 46 | #include "xmalloc.h" |
70 | 47 | ||
48 | #include "auth.h" | ||
49 | |||
71 | #ifdef WITH_AIXAUTHENTICATE | 50 | #ifdef WITH_AIXAUTHENTICATE |
72 | # include <login.h> | 51 | # include <login.h> |
73 | #endif | 52 | #endif |
@@ -156,15 +135,6 @@ auth_password(struct passwd * pw, const char *password) | |||
156 | } | 135 | } |
157 | #endif | 136 | #endif |
158 | 137 | ||
159 | #ifdef SKEY_VIA_PASSWD_IS_DISABLED | ||
160 | if (options.skey_authentication == 1) { | ||
161 | int ret = auth_skey_password(pw, password); | ||
162 | if (ret == 1 || ret == 0) | ||
163 | return ret; | ||
164 | /* Fall back to ordinary passwd authentication. */ | ||
165 | } | ||
166 | #endif | ||
167 | |||
168 | #ifdef WITH_AIXAUTHENTICATE | 138 | #ifdef WITH_AIXAUTHENTICATE |
169 | return (authenticate(pw->pw_name,password,&reenter,&authmsg) == 0); | 139 | return (authenticate(pw->pw_name,password,&reenter,&authmsg) == 0); |
170 | #endif | 140 | #endif |