1*ed9aabc7SGordon Ross /* 2*ed9aabc7SGordon Ross * CDDL HEADER START 3*ed9aabc7SGordon Ross * 4*ed9aabc7SGordon Ross * The contents of this file are subject to the terms of the 5*ed9aabc7SGordon Ross * Common Development and Distribution License (the "License"). 6*ed9aabc7SGordon Ross * You may not use this file except in compliance with the License. 7*ed9aabc7SGordon Ross * 8*ed9aabc7SGordon Ross * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*ed9aabc7SGordon Ross * or http://www.opensolaris.org/os/licensing. 10*ed9aabc7SGordon Ross * See the License for the specific language governing permissions 11*ed9aabc7SGordon Ross * and limitations under the License. 12*ed9aabc7SGordon Ross * 13*ed9aabc7SGordon Ross * When distributing Covered Code, include this CDDL HEADER in each 14*ed9aabc7SGordon Ross * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*ed9aabc7SGordon Ross * If applicable, add the following below this CDDL HEADER, with the 16*ed9aabc7SGordon Ross * fields enclosed by brackets "[]" replaced with your own identifying 17*ed9aabc7SGordon Ross * information: Portions Copyright [yyyy] [name of copyright owner] 18*ed9aabc7SGordon Ross * 19*ed9aabc7SGordon Ross * CDDL HEADER END 20*ed9aabc7SGordon Ross */ 21*ed9aabc7SGordon Ross /* 22*ed9aabc7SGordon Ross * Copyright 2011 Nexenta Systems, Inc. All rights reserved. 23*ed9aabc7SGordon Ross * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24*ed9aabc7SGordon Ross * Use is subject to license terms. 25*ed9aabc7SGordon Ross */ 26*ed9aabc7SGordon Ross 27*ed9aabc7SGordon Ross #ifndef _LIBSMBRDR_H 28*ed9aabc7SGordon Ross #define _LIBSMBRDR_H 29*ed9aabc7SGordon Ross 30*ed9aabc7SGordon Ross #include <smbsrv/libsmb.h> 31*ed9aabc7SGordon Ross 32*ed9aabc7SGordon Ross #ifdef __cplusplus 33*ed9aabc7SGordon Ross extern "C" { 34*ed9aabc7SGordon Ross #endif 35*ed9aabc7SGordon Ross 36*ed9aabc7SGordon Ross void smbrdr_init(void); 37*ed9aabc7SGordon Ross 38*ed9aabc7SGordon Ross struct smb_ctx; 39*ed9aabc7SGordon Ross int smbrdr_ctx_new(struct smb_ctx **, char *, char *, char *); 40*ed9aabc7SGordon Ross void smbrdr_ctx_free(struct smb_ctx *); 41*ed9aabc7SGordon Ross 42*ed9aabc7SGordon Ross /* Redirector LOGON function */ 43*ed9aabc7SGordon Ross extern int smbrdr_logon(char *, char *, char *); 44*ed9aabc7SGordon Ross extern int smbrdr_get_ssnkey(int, unsigned char *, size_t); 45*ed9aabc7SGordon Ross 46*ed9aabc7SGordon Ross /* Redirector session functions */ 47*ed9aabc7SGordon Ross extern void smbrdr_disconnect(const char *); 48*ed9aabc7SGordon Ross 49*ed9aabc7SGordon Ross #ifdef __cplusplus 50*ed9aabc7SGordon Ross } 51*ed9aabc7SGordon Ross #endif 52*ed9aabc7SGordon Ross 53*ed9aabc7SGordon Ross #endif /* _LIBSMBRDR_H */ 54