X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fauth.h;h=46c23fbd1fc7bfe856ef3377bb42ee1879c6f030;hb=2fdd522410f80afcd055d7333f491ee6c0b4b9fa;hp=a473757da317d39fdde3f5e18af051ead7abd6dd;hpb=5ee4cf1e95071dea98a833ca37d24899cd899978;p=netatalk.git diff --git a/etc/afpd/auth.h b/etc/afpd/auth.h index a473757d..46c23fbd 100644 --- a/etc/afpd/auth.h +++ b/etc/afpd/auth.h @@ -1,6 +1,4 @@ /* - * $Id: auth.h,v 1.7 2009-02-02 11:55:00 franklahm Exp $ - * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. */ @@ -8,21 +6,28 @@ #ifndef AFPD_AUTH_H #define AFPD_AUTH_H 1 -#ifdef HAVE_LIMITS_H #include -#endif /* HAVE_LIMITS_H */ -#ifdef HAVE_SYS_CDEFS_H -#include -#endif /* HAVE_SYS_CDEFS_H */ - -#include "globals.h" +#include struct afp_versions { char *av_name; int av_number; }; +static const struct afp_versions afp_versions[] = { +#ifndef NO_DDP + { "AFPVersion 1.1", 11 }, + { "AFPVersion 2.0", 20 }, + { "AFPVersion 2.1", 21 }, +#endif /* ! NO_DDP */ + { "AFP2.2", 22 }, + { "AFPX03", 30 }, + { "AFP3.1", 31 }, + { "AFP3.2", 32 }, + { "AFP3.3", 33 } +}; + /* for GetUserInfo */ #define USERIBIT_USER (1 << 0) #define USERIBIT_GROUP (1 << 1) @@ -38,14 +43,14 @@ extern gid_t *groups; extern int ngroups; /* FP functions */ -extern int afp_login __P((AFPObj *, char *, int, char *, int *)); -extern int afp_login_ext __P((AFPObj *, char *, unsigned int, char *, unsigned int *)); -extern int afp_logincont __P((AFPObj *, char *, int, char *, int *)); -extern int afp_changepw __P((AFPObj *, char *, int, char *, int *)); -extern int afp_logout __P((AFPObj *, char *, int, char *, int *)); -extern int afp_getuserinfo __P((AFPObj *, char *, int, char *, int *)); -extern int afp_getsession __P((AFPObj *, char *, unsigned int, char *, unsigned int *)); -extern int afp_disconnect __P((AFPObj *, char *, int, char *, int *)); -extern int afp_zzz __P((AFPObj *, char *, unsigned int, char *, unsigned int *)); +int afp_login (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); +int afp_login_ext (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); +int afp_logincont (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); +int afp_changepw (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); +int afp_logout (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); +int afp_getuserinfo (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); +int afp_getsession (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); +int afp_disconnect (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); +int afp_zzz (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); #endif /* auth.h */