4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
28 * nfs_sec.h, NFS specific security service information.
34 #pragma ident "%Z%%M% %I% %E% SMI"
40 #include <rpc/rpcsec_gss.h>
43 #define NFSSEC_CONF "/etc/nfssec.conf"
46 * An error string produced by nfs_syslog_scerr can be no longer than
52 * Errors for the nfssec_*
58 #define SC_BADENTRIES 4 /* Bad entries in nfssec.conf file */
61 typedef struct seconfig
{
62 char sc_name
[MAX_NAME_LEN
];
65 char sc_gss_mech
[MAX_NAME_LEN
];
66 struct rpc_gss_OID_s
*sc_gss_mech_type
;
68 rpc_gss_service_t sc_service
;
73 typedef struct seconfig32
{
74 char sc_name
[MAX_NAME_LEN
];
77 char sc_gss_mech
[MAX_NAME_LEN
];
78 caddr32_t sc_gss_mech_type
;
83 #endif /* _SYSCALL32 */
86 extern int nfs_getseconfig_default(seconfig_t
*);
87 extern int nfs_getseconfig_byname(char *, seconfig_t
*);
88 extern int nfs_getseconfig_bynumber(int, seconfig_t
*);
89 extern int nfs_getseconfig_bydesc(char *, char *, rpc_gss_service_t
,
91 extern sec_data_t
*nfs_clnt_secdata(seconfig_t
*, char *, struct knetconfig
*,
92 struct netbuf
*, int);
93 extern void nfs_free_secdata(sec_data_t
*);
94 extern int nfs_syslog_scerr(int, char[]);
95 extern bool_t
nfs_get_root_principal(seconfig_t
*, char *, caddr_t
*);
102 #endif /* !_NFS_SEC_H */