OpenVAS Scanner  7.0.1~git
smb_interface_stub.c
Go to the documentation of this file.
1 /* Copyright (C) 2009-2019 Greenbone Networks GmbH
2  *
3  * SPDX-License-Identifier: GPL-2.0-or-later
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
28 /* for NULL */
29 #include "openvas_smb_interface.h"
30 
31 #include <string.h>
32 
40 char *
42 {
43  return NULL;
44 }
45 
61 int
62 smb_connect (const char *server, const char *share, const char *username,
63  const char *password, SMB_HANDLE *con)
64 {
65  (void) server;
66  (void) share;
67  (void) username;
68  (void) password;
69  (void) con;
70  return -1;
71 }
72 
80 int
82 {
83  (void) handle;
84  return -1;
85 }
86 
96 char *
97 smb_file_SDDL (SMB_HANDLE handle, const char *filename)
98 {
99  (void) handle;
100  (void) filename;
101  return NULL;
102 }
103 
113 char *
114 smb_file_OwnerSID (SMB_HANDLE handle, const char *filename)
115 {
116  (void) handle;
117  (void) filename;
118  return NULL;
119 }
120 
130 char *
131 smb_file_GroupSID (SMB_HANDLE handle, const char *filename)
132 {
133  (void) handle;
134  (void) filename;
135  return NULL;
136 }
137 
147 char *
148 smb_file_TrusteeRights (SMB_HANDLE handle, const char *filename)
149 {
150  (void) handle;
151  (void) filename;
152  return NULL;
153 }
154 
164 int
165 wincmd (int argc, char *argv[], char **res)
166 {
167  (void) argc;
168  (void) argv;
169  (void) res;
170  return -1;
171 }
smb_connect
int smb_connect(const char *server, const char *share, const char *username, const char *password, SMB_HANDLE *con)
Establish connection to a SMB service.
Definition: smb_interface_stub.c:62
SMB_HANDLE
long int SMB_HANDLE
Definition: openvas_smb_interface.h:31
smb_file_OwnerSID
char * smb_file_OwnerSID(SMB_HANDLE handle, const char *filename)
Obtain the SID of the Owner for a given file/path.
Definition: smb_interface_stub.c:114
smb_file_SDDL
char * smb_file_SDDL(SMB_HANDLE handle, const char *filename)
Obtain Windows file rights in SDDL format.
Definition: smb_interface_stub.c:97
smb_versioninfo
char * smb_versioninfo()
Return version info for SMB implementation.
Definition: smb_interface_stub.c:41
smb_file_GroupSID
char * smb_file_GroupSID(SMB_HANDLE handle, const char *filename)
Obtain the SID of the Group for a given file/path.
Definition: smb_interface_stub.c:131
openvas_smb_interface.h
API protos describing the interface of a smb interface implementation.
smb_file_TrusteeRights
char * smb_file_TrusteeRights(SMB_HANDLE handle, const char *filename)
Obtain the Trustee SID and their rights for a given file/path.
Definition: smb_interface_stub.c:148
smb_close
int smb_close(SMB_HANDLE handle)
Close the connection handle for SMB service.
Definition: smb_interface_stub.c:81
wincmd
int wincmd(int argc, char *argv[], char **res)
Command Execution in Windows.
Definition: smb_interface_stub.c:165