version 1.20.2.2, 2001/02/19 17:18:39 |
version 1.20.2.3, 2001/03/21 19:46:22 |
|
|
#include "ssh2.h" |
#include "ssh2.h" |
#include "xmalloc.h" |
#include "xmalloc.h" |
#include "rsa.h" |
#include "rsa.h" |
#include "pty.h" |
#include "sshpty.h" |
#include "packet.h" |
#include "packet.h" |
#include "buffer.h" |
#include "buffer.h" |
#include "log.h" |
#include "log.h" |
|
|
#include "pathnames.h" |
#include "pathnames.h" |
#include "uidswap.h" |
#include "uidswap.h" |
#include "auth-options.h" |
#include "auth-options.h" |
|
#include "misc.h" |
|
|
/* import */ |
/* import */ |
extern ServerOptions options; |
extern ServerOptions options; |
|
|
|
|
/* helper */ |
/* helper */ |
Authmethod *authmethod_lookup(const char *name); |
Authmethod *authmethod_lookup(const char *name); |
struct passwd *pwcopy(struct passwd *pw); |
|
int user_key_allowed(struct passwd *pw, Key *key); |
int user_key_allowed(struct passwd *pw, Key *key); |
char *authmethods_get(void); |
char *authmethods_get(void); |
|
|
|
|
} |
} |
if (fail) { |
if (fail) { |
fclose(f); |
fclose(f); |
log("%s",buf); |
log("%s", buf); |
restore_uid(); |
restore_uid(); |
return 0; |
return 0; |
} |
} |
|
|
restore_uid(); |
restore_uid(); |
fclose(f); |
fclose(f); |
key_free(found); |
key_free(found); |
|
if (!found_key) |
|
debug2("key not found"); |
return found_key; |
return found_key; |
} |
} |