summaryrefslogtreecommitdiff
path: root/auth.h
diff options
context:
space:
mode:
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 0684f6ff3..457553397 100644
--- a/auth.h
+++ b/auth.h
@@ -28,6 +28,13 @@
28 28
29#include <openssl/rsa.h> 29#include <openssl/rsa.h>
30 30
31#ifdef HAVE_LOGIN_CAP
32#include <login_cap.h>
33#endif
34#ifdef BSD_AUTH
35#include <bsd_auth.h>
36#endif
37
31typedef struct Authctxt Authctxt; 38typedef struct Authctxt Authctxt;
32struct Authctxt { 39struct Authctxt {
33 int success; 40 int success;
@@ -39,6 +46,9 @@ struct Authctxt {
39 char *service; 46 char *service;
40 struct passwd *pw; 47 struct passwd *pw;
41 char *style; 48 char *style;
49#ifdef BSD_AUTH
50 auth_session_t *as;
51#endif
42}; 52};
43 53
44/* 54/*
@@ -59,7 +69,7 @@ auth_rhosts_rsa(struct passwd * pw, const char *client_user, RSA* client_host_ke
59 * Tries to authenticate the user using password. Returns true if 69 * Tries to authenticate the user using password. Returns true if
60 * authentication succeeds. 70 * authentication succeeds.
61 */ 71 */
62int auth_password(struct passwd * pw, const char *password); 72int auth_password(Authctxt *authctxt, const char *password);
63 73
64/* 74/*
65 * Performs the RSA authentication dialog with the client. This returns 0 if 75 * Performs the RSA authentication dialog with the client. This returns 0 if