1*61f28255Scgd /*- 2*61f28255Scgd * Copyright (c) 1991 The Regents of the University of California. 3*61f28255Scgd * All rights reserved. 4*61f28255Scgd * 5*61f28255Scgd * Redistribution and use in source and binary forms, with or without 6*61f28255Scgd * modification, are permitted provided that the following conditions 7*61f28255Scgd * are met: 8*61f28255Scgd * 1. Redistributions of source code must retain the above copyright 9*61f28255Scgd * notice, this list of conditions and the following disclaimer. 10*61f28255Scgd * 2. Redistributions in binary form must reproduce the above copyright 11*61f28255Scgd * notice, this list of conditions and the following disclaimer in the 12*61f28255Scgd * documentation and/or other materials provided with the distribution. 13*61f28255Scgd * 3. All advertising materials mentioning features or use of this software 14*61f28255Scgd * must display the following acknowledgement: 15*61f28255Scgd * This product includes software developed by the University of 16*61f28255Scgd * California, Berkeley and its contributors. 17*61f28255Scgd * 4. Neither the name of the University nor the names of its contributors 18*61f28255Scgd * may be used to endorse or promote products derived from this software 19*61f28255Scgd * without specific prior written permission. 20*61f28255Scgd * 21*61f28255Scgd * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22*61f28255Scgd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23*61f28255Scgd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24*61f28255Scgd * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25*61f28255Scgd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26*61f28255Scgd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27*61f28255Scgd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28*61f28255Scgd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29*61f28255Scgd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30*61f28255Scgd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31*61f28255Scgd * SUCH DAMAGE. 32*61f28255Scgd * 33*61f28255Scgd * @(#)auth.h 5.1 (Berkeley) 2/28/91 34*61f28255Scgd */ 35*61f28255Scgd 36*61f28255Scgd /* 37*61f28255Scgd * Copyright (C) 1990 by the Massachusetts Institute of Technology 38*61f28255Scgd * 39*61f28255Scgd * Export of this software from the United States of America is assumed 40*61f28255Scgd * to require a specific license from the United States Government. 41*61f28255Scgd * It is the responsibility of any person or organization contemplating 42*61f28255Scgd * export to obtain such a license before exporting. 43*61f28255Scgd * 44*61f28255Scgd * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 45*61f28255Scgd * distribute this software and its documentation for any purpose and 46*61f28255Scgd * without fee is hereby granted, provided that the above copyright 47*61f28255Scgd * notice appear in all copies and that both that copyright notice and 48*61f28255Scgd * this permission notice appear in supporting documentation, and that 49*61f28255Scgd * the name of M.I.T. not be used in advertising or publicity pertaining 50*61f28255Scgd * to distribution of the software without specific, written prior 51*61f28255Scgd * permission. M.I.T. makes no representations about the suitability of 52*61f28255Scgd * this software for any purpose. It is provided "as is" without express 53*61f28255Scgd * or implied warranty. 54*61f28255Scgd */ 55*61f28255Scgd 56*61f28255Scgd #ifndef __AUTH__ 57*61f28255Scgd #define __AUTH__ 58*61f28255Scgd 59*61f28255Scgd #define AUTH_REJECT 0 /* Rejected */ 60*61f28255Scgd #define AUTH_UNKNOWN 1 /* We don't know who he is, but he's okay */ 61*61f28255Scgd #define AUTH_OTHER 2 /* We know him, but not his name */ 62*61f28255Scgd #define AUTH_USER 3 /* We know he name */ 63*61f28255Scgd #define AUTH_VALID 4 /* We know him, and he needs no password */ 64*61f28255Scgd 65*61f28255Scgd #if !defined(P) 66*61f28255Scgd #ifdef __STDC__ 67*61f28255Scgd #define P(x) x 68*61f28255Scgd #else 69*61f28255Scgd #define P(x) () 70*61f28255Scgd #endif 71*61f28255Scgd #endif 72*61f28255Scgd 73*61f28255Scgd typedef struct XauthP { 74*61f28255Scgd int type; 75*61f28255Scgd int way; 76*61f28255Scgd int (*init) P((struct XauthP *, int)); 77*61f28255Scgd int (*send) P((struct XauthP *)); 78*61f28255Scgd void (*is) P((struct XauthP *, unsigned char *, int)); 79*61f28255Scgd void (*reply) P((struct XauthP *, unsigned char *, int)); 80*61f28255Scgd int (*status) P((struct XauthP *, char *, int)); 81*61f28255Scgd void (*printsub) P((unsigned char *, int, unsigned char *, int)); 82*61f28255Scgd } Authenticator; 83*61f28255Scgd 84*61f28255Scgd #include "auth-proto.h" 85*61f28255Scgd 86*61f28255Scgd extern auth_debug_mode; 87*61f28255Scgd #endif 88