version 1.15.2.1, 2001/09/27 19:03:54 |
version 1.15.2.2, 2002/03/09 00:20:43 |
|
|
|
/* $OpenBSD$ */ |
|
|
/* |
/* |
* Copyright (c) 2000 Markus Friedl. All rights reserved. |
* Copyright (c) 2000 Markus Friedl. All rights reserved. |
* |
* |
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
* |
* |
* $OpenBSD$ |
|
*/ |
*/ |
|
|
#ifndef AUTH_H |
#ifndef AUTH_H |
#define AUTH_H |
#define AUTH_H |
|
|
|
|
|
|
/* |
/* |
* Keyboard interactive device: |
* Keyboard interactive device: |
* init_ctx returns: non NULL upon success |
* init_ctx returns: non NULL upon success |
* query returns: 0 - success, otherwise failure |
* query returns: 0 - success, otherwise failure |
* respond returns: 0 - success, 1 - need further interaction, |
* respond returns: 0 - success, 1 - need further interaction, |
* otherwise - failure |
* otherwise - failure |
*/ |
*/ |
struct KbdintDevice |
struct KbdintDevice |
{ |
{ |
const char *name; |
const char *name; |
void* (*init_ctx) __P((Authctxt*)); |
void* (*init_ctx)(Authctxt*); |
int (*query) __P((void *ctx, char **name, char **infotxt, |
int (*query)(void *ctx, char **name, char **infotxt, |
u_int *numprompts, char ***prompts, |
u_int *numprompts, char ***prompts, u_int **echo_on); |
u_int **echo_on)); |
int (*respond)(void *ctx, u_int numresp, char **responses); |
int (*respond) __P((void *ctx, u_int numresp, char **responses)); |
void (*free_ctx)(void *ctx); |
void (*free_ctx) __P((void *ctx)); |
|
}; |
}; |
|
|
int auth_rhosts(struct passwd *, const char *); |
int auth_rhosts(struct passwd *, const char *); |
int |
int |
auth_rhosts2(struct passwd *, const char *, const char *, const char *); |
auth_rhosts2(struct passwd *, const char *, const char *, const char *); |
|
|
int auth_rhosts_rsa(struct passwd *, const char *, RSA *); |
int auth_rhosts_rsa(struct passwd *, const char *, Key *); |
int auth_password(Authctxt *, const char *); |
int auth_password(Authctxt *, const char *); |
int auth_rsa(struct passwd *, BIGNUM *); |
int auth_rsa(struct passwd *, BIGNUM *); |
int auth_rsa_read_key(char **, u_int *, BIGNUM *, BIGNUM *); |
|
int auth_rsa_challenge_dialog(RSA *); |
int auth_rsa_challenge_dialog(RSA *); |
|
|
#ifdef KRB4 |
#ifdef KRB4 |
|
|
int auth_root_allowed(char *); |
int auth_root_allowed(char *); |
|
|
int auth2_challenge(Authctxt *, char *); |
int auth2_challenge(Authctxt *, char *); |
|
void auth2_challenge_stop(Authctxt *); |
|
|
int allowed_user(struct passwd *); |
int allowed_user(struct passwd *); |
|
|