Lines Matching +full:system +full:- +full:auth

1 /*	$NetBSD: auth.h,v 1.15 2000/06/02 22:57:55 fvdl Exp $	*/
3 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
11 * - Redistributions of source code must retain the above copyright notice,
13 * - Redistributions in binary form must reproduce the above copyright notice,
16 * - Neither the name of Sun Microsystems, Inc. nor the names of its
34 * auth.h, Authentication interface.
39 * is required to pass an AUTH * to routines that create rpc
98 * in sec_data->data opaque field.
167 enum_t oa_flavor; /* flavor of auth */
168 caddr_t oa_base; /* address of more auth stuff */
174 * Auth handle, interface to client side authenticators.
193 } AUTH; typedef
198 * The ops and the auth handle provide the interface to the authenticators.
200 * AUTH *auth;
204 #define AUTH_NEXTVERF(auth) \ argument
205 ((*((auth)->ah_ops->ah_nextverf))(auth))
206 #define auth_nextverf(auth) \ argument
207 ((*((auth)->ah_ops->ah_nextverf))(auth))
209 #define AUTH_MARSHALL(auth, xdrs) \ argument
210 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
211 #define auth_marshall(auth, xdrs) \ argument
212 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
214 #define AUTH_VALIDATE(auth, verfp) \ argument
215 ((*((auth)->ah_ops->ah_validate))((auth), verfp))
216 #define auth_validate(auth, verfp) \ argument
217 ((*((auth)->ah_ops->ah_validate))((auth), verfp))
219 #define AUTH_REFRESH(auth, msg) \ argument
220 ((*((auth)->ah_ops->ah_refresh))(auth, msg))
221 #define auth_refresh(auth, msg) \ argument
222 ((*((auth)->ah_ops->ah_refresh))(auth, msg))
224 #define AUTH_DESTROY(auth) \ argument
225 ((*((auth)->ah_ops->ah_destroy))(auth))
226 #define auth_destroy(auth) \ argument
227 ((*((auth)->ah_ops->ah_destroy))(auth))
239 * System style authentication
240 * AUTH *authunix_create(machname, uid, gid, len, aup_gids)
248 extern AUTH *authunix_create(char *, u_int, u_int, int, u_int *);
249 extern AUTH *authunix_create_default(void); /* takes no parameters */
250 extern AUTH *authnone_create(void); /* takes no parameters */
254 * AUTH *authsecdes_create(servername, window, timehost, ckey)
255 * char *servername; - network name of server
256 * u_int window; - time to live
257 * const char *timehost; - optional hostname to sync with
258 * des_block *ckey; - optional conversation key to use
261 extern AUTH *authdes_create (char *, u_int, struct sockaddr *, des_block *);
262 extern AUTH *authdes_seccreate (const char *, const u_int, const char *,
311 * AUTH *authkerb_seccreate(service, srv_inst, realm, window, timehost, status)
312 * const char *service; - service name
313 * const char *srv_inst; - server instance
314 * const char *realm; - server realm
315 * const u_int window; - time to live
316 * const char *timehost; - optional hostname to sync with
317 * int *status; - kerberos status returned
320 extern AUTH *authkerb_seccreate(const char *, const char *, const char *,
328 * const struct svc_req *rqst; - request pointer
354 #define AUTH_DH 3 /* for Diffie-Hellman mechanism */
360 * Pseudo auth flavors for RPCSEC_GSS.