diff options
author | djm <djm> | 2001-02-18 06:01:00 +0000 |
---|---|---|
committer | djm <djm> | 2001-02-18 06:01:00 +0000 |
commit | 121dc2cdb3ca19b028358f100332ac81947f7bdf (patch) | |
tree | c0fe36a3636704dde3af956e4f796882163ea0b5 /auth.h | |
parent | 69ae2acc67360b956ffad6247b7af273d7752f48 (diff) | |
download | openssh-121dc2cdb3ca19b028358f100332ac81947f7bdf.tar.gz |
- (djm) Merge BSD_AUTH support from Markus Friedl and David J. MacKenzie
enable with --with-bsd-auth.
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -28,6 +28,13 @@ #include <openssl/rsa.h> +#ifdef HAVE_LOGIN_CAP +#include <login_cap.h> +#endif +#ifdef BSD_AUTH +#include <bsd_auth.h> +#endif + typedef struct Authctxt Authctxt; struct Authctxt { int success; @@ -39,6 +46,9 @@ struct Authctxt { char *service; struct passwd *pw; char *style; +#ifdef BSD_AUTH + auth_session_t *as; +#endif }; /* @@ -59,7 +69,7 @@ auth_rhosts_rsa(struct passwd * pw, const char *client_user, RSA* client_host_ke * Tries to authenticate the user using password. Returns true if * authentication succeeds. */ -int auth_password(struct passwd * pw, const char *password); +int auth_password(Authctxt *authctxt, const char *password); /* * Performs the RSA authentication dialog with the client. This returns 0 if |