OpenVAS Libraries  4.0+rc3.SVN
nasl/openvas_smb_interface.h
Go to the documentation of this file.
00001 /* OpenVAS
00002  *
00003  * $Id$
00004  * Description: API protos describing the interface of a smb interface
00005  * implementation.
00006  *
00007  * Authors:
00008  * Chandrashekhar B <bchandra@secpod.com>
00009  *
00010  * Copyright:
00011  * Copyright (c) 2009 Greenbone Networks GmbH, http://www.greenbone.net
00012  *
00013  * This program is free software; you can redistribute it and/or modify
00014  * it under the terms of the GNU General Public License version 2
00015  * (or any later version), as published by the Free Software Foundation.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
00025  */
00026 
00035 #ifndef _NASL_OPENVAS_SMB_INTERFACE_H
00036 #define _NASL_OPENVAS_SMB_INTERFACE_H
00037 
00038 typedef int SMB_HANDLE;
00039 
00040 char *smb_versioninfo ();
00041 int smb_connect (const char *, const char *, const char *, const char *,
00042                  SMB_HANDLE *);
00043 int smb_close (SMB_HANDLE);
00044 char *smb_file_SDDL (SMB_HANDLE, const char *);
00045 char *smb_file_OwnerSID (SMB_HANDLE, const char *);
00046 char *smb_file_GroupSID (SMB_HANDLE, const char *);
00047 char *smb_file_TrusteeRights (SMB_HANDLE, const char *);
00048 
00049 #endif