summaryrefslogtreecommitdiff
path: root/auth.h
diff options
context:
space:
mode:
authordjm <djm>2001-02-18 06:01:00 +0000
committerdjm <djm>2001-02-18 06:01:00 +0000
commit121dc2cdb3ca19b028358f100332ac81947f7bdf (patch)
treec0fe36a3636704dde3af956e4f796882163ea0b5 /auth.h
parent69ae2acc67360b956ffad6247b7af273d7752f48 (diff)
downloadopenssh-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.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/auth.h b/auth.h
index 0684f6ff..45755339 100644
--- a/auth.h
+++ b/auth.h
@@ -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