OpenVAS Libraries  8.0.3
openvas_smb_interface.h
Go to the documentation of this file.
1 /* OpenVAS
2  *
3  * $Id$
4  * Description: API protos describing the interface of a smb interface
5  * implementation.
6  *
7  * Authors:
8  * Chandrashekhar B <bchandra@secpod.com>
9  *
10  * Copyright:
11  * Copyright (c) 2009 Greenbone Networks GmbH, http://www.greenbone.net
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26  */
27 
36 #ifndef _NASL_OPENVAS_SMB_INTERFACE_H
37 #define _NASL_OPENVAS_SMB_INTERFACE_H
38 
39 typedef int SMB_HANDLE;
40 
41 char *smb_versioninfo (void);
42 int smb_connect (const char *, const char *, const char *, const char *,
43  SMB_HANDLE *);
44 int smb_close (SMB_HANDLE);
45 char *smb_file_SDDL (SMB_HANDLE, const char *);
46 char *smb_file_OwnerSID (SMB_HANDLE, const char *);
47 char *smb_file_GroupSID (SMB_HANDLE, const char *);
48 char *smb_file_TrusteeRights (SMB_HANDLE, const char *);
49 int wincmd(int argc, char *argv[], char **res);
50 
51 #endif
char * smb_versioninfo(void)
Return version info for SMB implementation.
Definition: smb_interface_stub.c:48
int SMB_HANDLE
Definition: openvas_smb_interface.h:39
char * smb_file_OwnerSID(SMB_HANDLE, const char *)
Obtain the SID of the Owner for a given file/path.
Definition: smb_interface_stub.c:110
int smb_close(SMB_HANDLE)
Close the connection handle for SMB service.
Definition: smb_interface_stub.c:82
char * smb_file_SDDL(SMB_HANDLE, const char *)
Obtain Windows file rights in SDDL format.
Definition: smb_interface_stub.c:96
char * smb_file_TrusteeRights(SMB_HANDLE, const char *)
Obtain the Trustee SID and their rights for a given file/path.
Definition: smb_interface_stub.c:139
int smb_connect(const char *, const char *, const char *, const char *, SMB_HANDLE *)
Establish connection to a SMB service.
Definition: smb_interface_stub.c:68
char * smb_file_GroupSID(SMB_HANDLE, const char *)
Obtain the SID of the Group for a given file/path.
Definition: smb_interface_stub.c:125
int wincmd(int argc, char *argv[], char **res)
Command Execution in Windows.
Definition: smb_interface_stub.c:154