Deleted Added
full compact
auth.h (137019) auth.h (147005)
1/* $OpenBSD: auth.h,v 1.50 2004/05/23 23:59:53 dtucker Exp $ */
1/* $OpenBSD: auth.h,v 1.50 2004/05/23 23:59:53 dtucker Exp $ */
2/* $FreeBSD: head/crypto/openssh/auth.h 137019 2004-10-28 16:11:31Z des $ */
2/* $FreeBSD: head/crypto/openssh/auth.h 147005 2005-06-05 15:46:09Z 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

--- 15 unchanged lines hidden (view full) ---

26 *
27 */
28
29#ifndef AUTH_H
30#define AUTH_H
31
32#include "key.h"
33#include "hostfile.h"
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

--- 15 unchanged lines hidden (view full) ---

26 *
27 */
28
29#ifndef AUTH_H
30#define AUTH_H
31
32#include "key.h"
33#include "hostfile.h"
34#include "buffer.h"
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

--- 22 unchanged lines hidden (view full) ---

64#endif
65#ifdef KRB5
66 krb5_context krb5_ctx;
67 krb5_ccache krb5_fwd_ccache;
68 krb5_principal krb5_user;
69 char *krb5_ticket_file;
70 char *krb5_ccname;
71#endif
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

--- 22 unchanged lines hidden (view full) ---

65#endif
66#ifdef KRB5
67 krb5_context krb5_ctx;
68 krb5_ccache krb5_fwd_ccache;
69 krb5_principal krb5_user;
70 char *krb5_ticket_file;
71 char *krb5_ccname;
72#endif
73 Buffer *loginmsg;
72 void *methoddata;
73};
74/*
75 * Every authentication method has to handle authentication requests for
76 * non-existing users, or for users that are not allowed to login. In this
77 * case 'valid' is set to 0, but 'user' points to the username requested by
78 * the client.
79 */

--- 46 unchanged lines hidden (view full) ---

126
127#if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
128#include <shadow.h>
129int auth_shadow_acctexpired(struct spwd *);
130int auth_shadow_pwexpired(Authctxt *);
131#endif
132
133#include "auth-pam.h"
74 void *methoddata;
75};
76/*
77 * Every authentication method has to handle authentication requests for
78 * non-existing users, or for users that are not allowed to login. In this
79 * case 'valid' is set to 0, but 'user' points to the username requested by
80 * the client.
81 */

--- 46 unchanged lines hidden (view full) ---

128
129#if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
130#include <shadow.h>
131int auth_shadow_acctexpired(struct spwd *);
132int auth_shadow_pwexpired(Authctxt *);
133#endif
134
135#include "auth-pam.h"
136#include "audit.h"
137void remove_kbdint_device(const char *);
138
134void disable_forwarding(void);
135
136void do_authentication(Authctxt *);
137void do_authentication2(Authctxt *);
138
139void auth_log(Authctxt *, int, char *, char *);
140void userauth_finish(Authctxt *, int, char *);
139void disable_forwarding(void);
140
141void do_authentication(Authctxt *);
142void do_authentication2(Authctxt *);
143
144void auth_log(Authctxt *, int, char *, char *);
145void userauth_finish(Authctxt *, int, char *);
146void userauth_send_banner(const char *);
141int auth_root_allowed(char *);
142
143char *auth2_read_banner(void);
144
145void privsep_challenge_enable(void);
146
147int auth2_challenge(Authctxt *, char *);
148void auth2_challenge_stop(Authctxt *);

--- 28 unchanged lines hidden (view full) ---

177
178/* debug messages during authentication */
179void auth_debug_add(const char *fmt,...) __attribute__((format(printf, 1, 2)));
180void auth_debug_send(void);
181void auth_debug_reset(void);
182
183struct passwd *fakepw(void);
184
147int auth_root_allowed(char *);
148
149char *auth2_read_banner(void);
150
151void privsep_challenge_enable(void);
152
153int auth2_challenge(Authctxt *, char *);
154void auth2_challenge_stop(Authctxt *);

--- 28 unchanged lines hidden (view full) ---

183
184/* debug messages during authentication */
185void auth_debug_add(const char *fmt,...) __attribute__((format(printf, 1, 2)));
186void auth_debug_send(void);
187void auth_debug_reset(void);
188
189struct passwd *fakepw(void);
190
191int sys_auth_passwd(Authctxt *, const char *);
192
185#define AUTH_FAIL_MSG "Too many authentication failures for %.100s"
186
187#ifdef SKEY
188#ifdef OPIE
189#define SKEY_PROMPT "\nOPIE Password: "
190#else
191#define SKEY_PROMPT "\nS/Key Password: "
192#endif
193#endif
194
195#endif
193#define AUTH_FAIL_MSG "Too many authentication failures for %.100s"
194
195#ifdef SKEY
196#ifdef OPIE
197#define SKEY_PROMPT "\nOPIE Password: "
198#else
199#define SKEY_PROMPT "\nS/Key Password: "
200#endif
201#endif
202
203#endif