diff options
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 | |||
31 | typedef struct Authctxt Authctxt; | 38 | typedef struct Authctxt Authctxt; |
32 | struct Authctxt { | 39 | struct 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 | */ |
62 | int auth_password(struct passwd * pw, const char *password); | 72 | int 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 |