1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 /* 22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. 24 */ 25 26 #ifndef _LIBSMBRDR_H 27 #define _LIBSMBRDR_H 28 29 #pragma ident "%Z%%M% %I% %E% SMI" 30 31 #include <smbsrv/libsmb.h> 32 33 #ifdef __cplusplus 34 extern "C" { 35 #endif 36 37 /* 38 * Redirector IPC functions 39 * 40 * The following functions are required by the mlsvc_join to 41 * apply new authentication information for the authenticated IPC, rollback 42 * or commit the changes to the original authentication information. 43 */ 44 extern void smbrdr_ipc_set(char *, unsigned char *); 45 extern void smbrdr_ipc_commit(void); 46 extern void smbrdr_ipc_rollback(void); 47 extern int smbrdr_ipc_skip_lsa_query(void); 48 extern char *smbrdr_ipc_get_user(void); 49 extern unsigned char *smbrdr_ipc_get_passwd(void); 50 51 52 /* Redirector LOGON function */ 53 extern int mlsvc_logon(char *, char *, char *); 54 55 extern int smbrdr_readx(int, char *, int); 56 57 58 /* Redirector rpcpipe functions */ 59 extern int mlsvc_open_pipe(char *, char *, char *, char *); 60 extern int mlsvc_close_pipe(int); 61 62 63 /* Redirector session functions */ 64 extern void smbrdr_init(void); 65 extern int mlsvc_session_native_values(int, int *, int *, int *); 66 extern int mlsvc_echo(char *); 67 extern void mlsvc_disconnect(char *); 68 69 70 extern int smbrdr_transact(int, char *, int, char *, int); 71 72 73 /* DEBUG functions */ 74 extern void smbrdr_dump_ofiles(void); 75 extern void smbrdr_dump_sessions(void); 76 extern void smbrdr_dump_netuse(); 77 78 #ifdef __cplusplus 79 } 80 #endif 81 82 #endif /* _LIBSMBRDR_H */ 83