Deleted Added
full compact
auth.h (74472) auth.h (90271)
1/* $NetBSD: auth.h,v 1.15 2000/06/02 22:57:55 fvdl Exp $ */
2
3/*
4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * unrestricted use provided that this legend is included on all tape
6 * media and as a part of the software program in whole or part. Users
7 * may copy or modify Sun RPC without charge, but are not authorized
8 * to license or distribute it to anyone else except as part of a product or

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

26 *
27 * Sun Microsystems, Inc.
28 * 2550 Garcia Avenue
29 * Mountain View, California 94043
30 *
31 * from: @(#)auth.h 1.17 88/02/08 SMI
32 * from: @(#)auth.h 2.3 88/08/07 4.0 RPCSRC
33 * from: @(#)auth.h 1.43 98/02/02 SMI
1/* $NetBSD: auth.h,v 1.15 2000/06/02 22:57:55 fvdl Exp $ */
2
3/*
4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * unrestricted use provided that this legend is included on all tape
6 * media and as a part of the software program in whole or part. Users
7 * may copy or modify Sun RPC without charge, but are not authorized
8 * to license or distribute it to anyone else except as part of a product or

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

26 *
27 * Sun Microsystems, Inc.
28 * 2550 Garcia Avenue
29 * Mountain View, California 94043
30 *
31 * from: @(#)auth.h 1.17 88/02/08 SMI
32 * from: @(#)auth.h 2.3 88/08/07 4.0 RPCSRC
33 * from: @(#)auth.h 1.43 98/02/02 SMI
34 * $FreeBSD: head/include/rpc/auth.h 74472 2001-03-19 19:36:11Z alfred $
34 * $FreeBSD: head/include/rpc/auth.h 90271 2002-02-05 23:43:43Z alfred $
35 */
36
37/*
38 * auth.h, Authentication interface.
39 *
40 * Copyright (C) 1984, Sun Microsystems, Inc.
41 *
42 * The data structures are completely opaque to the client. The client

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

262 */
263__BEGIN_DECLS
264extern AUTH *authdes_create (char *, u_int, struct sockaddr *, des_block *);
265extern AUTH *authdes_seccreate (const char *, const u_int, const char *,
266 const des_block *);
267__END_DECLS
268
269__BEGIN_DECLS
35 */
36
37/*
38 * auth.h, Authentication interface.
39 *
40 * Copyright (C) 1984, Sun Microsystems, Inc.
41 *
42 * The data structures are completely opaque to the client. The client

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

262 */
263__BEGIN_DECLS
264extern AUTH *authdes_create (char *, u_int, struct sockaddr *, des_block *);
265extern AUTH *authdes_seccreate (const char *, const u_int, const char *,
266 const des_block *);
267__END_DECLS
268
269__BEGIN_DECLS
270extern bool_t xdr_opaque_auth __P((XDR *, struct opaque_auth *));
270extern bool_t xdr_opaque_auth (XDR *, struct opaque_auth *);
271__END_DECLS
272
273#define authsys_create(c,i1,i2,i3,ip) authunix_create((c),(i1),(i2),(i3),(ip))
274#define authsys_create_default() authunix_create_default()
275
276/*
277 * Netname manipulation routines.
278 */

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

293__BEGIN_DECLS
294extern int key_decryptsession(const char *, des_block *);
295extern int key_encryptsession(const char *, des_block *);
296extern int key_gendes(des_block *);
297extern int key_setsecret(const char *);
298extern int key_secretkey_is_set(void);
299__END_DECLS
300
271__END_DECLS
272
273#define authsys_create(c,i1,i2,i3,ip) authunix_create((c),(i1),(i2),(i3),(ip))
274#define authsys_create_default() authunix_create_default()
275
276/*
277 * Netname manipulation routines.
278 */

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

293__BEGIN_DECLS
294extern int key_decryptsession(const char *, des_block *);
295extern int key_encryptsession(const char *, des_block *);
296extern int key_gendes(des_block *);
297extern int key_setsecret(const char *);
298extern int key_secretkey_is_set(void);
299__END_DECLS
300
301/*
302 * Publickey routines.
303 */
304__BEGIN_DECLS
305extern int getpublickey (const char *, char *);
306extern int getpublicandprivatekey (char *, char *);
307extern int getsecretkey (char *, char *, char *);
308__END_DECLS
309
301#ifdef KERBEROS
302/*
303 * Kerberos style authentication
304 * AUTH *authkerb_seccreate(service, srv_inst, realm, window, timehost, status)
305 * const char *service; - service name
306 * const char *srv_inst; - server instance
307 * const char *realm; - server realm
308 * const u_int window; - time to live

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

329extern int authkerb_getucred(/* struct svc_req *, uid_t *, gid_t *,
330 short *, int * */);
331__END_DECLS
332#endif /* KERBEROS */
333
334__BEGIN_DECLS
335struct svc_req;
336struct rpc_msg;
310#ifdef KERBEROS
311/*
312 * Kerberos style authentication
313 * AUTH *authkerb_seccreate(service, srv_inst, realm, window, timehost, status)
314 * const char *service; - service name
315 * const char *srv_inst; - server instance
316 * const char *realm; - server realm
317 * const u_int window; - time to live

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

338extern int authkerb_getucred(/* struct svc_req *, uid_t *, gid_t *,
339 short *, int * */);
340__END_DECLS
341#endif /* KERBEROS */
342
343__BEGIN_DECLS
344struct svc_req;
345struct rpc_msg;
337enum auth_stat _svcauth_null __P((struct svc_req *, struct rpc_msg *));
338enum auth_stat _svcauth_short __P((struct svc_req *, struct rpc_msg *));
339enum auth_stat _svcauth_unix __P((struct svc_req *, struct rpc_msg *));
346enum auth_stat _svcauth_null (struct svc_req *, struct rpc_msg *);
347enum auth_stat _svcauth_short (struct svc_req *, struct rpc_msg *);
348enum auth_stat _svcauth_unix (struct svc_req *, struct rpc_msg *);
340__END_DECLS
341
342#define AUTH_NONE 0 /* no authentication */
343#define AUTH_NULL 0 /* backward compatibility */
344#define AUTH_SYS 1 /* unix style (uid, gids) */
345#define AUTH_UNIX AUTH_SYS
346#define AUTH_SHORT 2 /* short hand unix style */
347#define AUTH_DH 3 /* for Diffie-Hellman mechanism */
348#define AUTH_DES AUTH_DH /* for backward compatibility */
349#define AUTH_KERB 4 /* kerberos style */
350
351#endif /* !_RPC_AUTH_H */
349__END_DECLS
350
351#define AUTH_NONE 0 /* no authentication */
352#define AUTH_NULL 0 /* backward compatibility */
353#define AUTH_SYS 1 /* unix style (uid, gids) */
354#define AUTH_UNIX AUTH_SYS
355#define AUTH_SHORT 2 /* short hand unix style */
356#define AUTH_DH 3 /* for Diffie-Hellman mechanism */
357#define AUTH_DES AUTH_DH /* for backward compatibility */
358#define AUTH_KERB 4 /* kerberos style */
359
360#endif /* !_RPC_AUTH_H */