version 1.12, 2001/02/22 21:59:43 |
version 1.13, 2001/03/20 18:57:04 |
|
|
|
|
#include <openssl/rsa.h> |
#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; |
typedef struct Authctxt Authctxt; |
struct Authctxt { |
struct Authctxt { |
int success; |
int success; |
|
|
char *service; |
char *service; |
struct passwd *pw; |
struct passwd *pw; |
char *style; |
char *style; |
|
#ifdef BSD_AUTH |
|
auth_session_t *as; |
|
#endif |
}; |
}; |
|
|
/* |
/* |
|
|
* Tries to authenticate the user using password. Returns true if |
* Tries to authenticate the user using password. Returns true if |
* authentication succeeds. |
* 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 |
* Performs the RSA authentication dialog with the client. This returns 0 if |