auth.h (149753) | auth.h (162856) |
---|---|
1/* $OpenBSD: auth.h,v 1.51 2005/06/06 11:20:36 djm Exp $ */ 2/* $FreeBSD: head/crypto/openssh/auth.h 149753 2005-09-03 07:04:25Z des $ */ | 1/* $OpenBSD: auth.h,v 1.58 2006/08/18 09:15:20 markus Exp $ */ 2/* $FreeBSD: head/crypto/openssh/auth.h 162856 2006-09-30 13:38:06Z des $ */ |
3 4/* 5 * Copyright (c) 2000 Markus Friedl. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * 27 */ 28 29#ifndef AUTH_H 30#define AUTH_H 31 | 3 4/* 5 * Copyright (c) 2000 Markus Friedl. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * 27 */ 28 29#ifndef AUTH_H 30#define AUTH_H 31 |
32#include "key.h" 33#include "hostfile.h" 34#include "buffer.h" | 32#include <signal.h> 33 |
35#include <openssl/rsa.h> 36 37#ifdef HAVE_LOGIN_CAP 38#include <login_cap.h> 39#endif 40#ifdef BSD_AUTH 41#include <bsd_auth.h> 42#endif 43#ifdef KRB5 44#include <krb5.h> 45#endif 46 47typedef struct Authctxt Authctxt; 48typedef struct Authmethod Authmethod; 49typedef struct KbdintDevice KbdintDevice; 50 51struct Authctxt { | 34#include <openssl/rsa.h> 35 36#ifdef HAVE_LOGIN_CAP 37#include <login_cap.h> 38#endif 39#ifdef BSD_AUTH 40#include <bsd_auth.h> 41#endif 42#ifdef KRB5 43#include <krb5.h> 44#endif 45 46typedef struct Authctxt Authctxt; 47typedef struct Authmethod Authmethod; 48typedef struct KbdintDevice KbdintDevice; 49 50struct Authctxt { |
52 int success; | 51 sig_atomic_t success; 52 int authenticated; /* authenticated and alarms cancelled */ |
53 int postponed; /* authentication needs another step */ 54 int valid; /* user exists and is allowed to login */ 55 int attempt; 56 int failures; 57 int force_pwchange; 58 char *user; /* username sent by the client */ 59 char *service; 60 struct passwd *pw; /* set if 'valid' */ --- 147 unchanged lines hidden --- | 53 int postponed; /* authentication needs another step */ 54 int valid; /* user exists and is allowed to login */ 55 int attempt; 56 int failures; 57 int force_pwchange; 58 char *user; /* username sent by the client */ 59 char *service; 60 struct passwd *pw; /* set if 'valid' */ --- 147 unchanged lines hidden --- |