diff options
author | Damien Miller <djm@mindrot.org> | 2001-02-18 07:01:00 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-02-18 07:01:00 +0100 |
commit | 60396b060b803fd2d20aa151dc0432a344f798b0 (patch) | |
tree | 6027eced4465cbb8ab7146ba6cd3f9a89c38bd03 /auth.h | |
parent | - (djm) Update RPM spec files for 2.5.0p1 (diff) | |
download | openssh-60396b060b803fd2d20aa151dc0432a344f798b0.tar.xz openssh-60396b060b803fd2d20aa151dc0432a344f798b0.zip |
- (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 |