OpenVAS Libraries  9.0.3
smb_interface_stub.c
Go to the documentation of this file.
1 /* OpenVAS
2  *
3  * $Id$
4  * Description: Stub implementation for a smb interface.
5  *
6  * Authors:
7  * Chandrashekhar B <bchandra@secpod.com>
8  *
9  * Copyright:
10  * Copyright (c) 2009 Greenbone Networks GmbH, http://www.greenbone.net
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
25  */
26 
35 /* for NULL */
36 #include <string.h>
37 
38 #include "openvas_smb_interface.h"
39 
47 char *
49 {
50  return NULL;
51 }
52 
68 int smb_connect(const char *server, const char *share,
69  const char *username, const char *password,
70  SMB_HANDLE *con)
71 {
72  (void) server;
73  (void) share;
74  (void) username;
75  (void) password;
76  (void) con;
77  return -1;
78 }
79 
87 int smb_close(SMB_HANDLE handle)
88 {
89  (void) handle;
90  return -1;
91 }
92 
102 char *smb_file_SDDL(SMB_HANDLE handle, const char *filename)
103 {
104  (void) handle;
105  (void) filename;
106  return NULL;
107 }
108 
118 char *smb_file_OwnerSID(SMB_HANDLE handle, const char *filename)
119 {
120  (void) handle;
121  (void) filename;
122  return NULL;
123 }
124 
125 
135 char *smb_file_GroupSID(SMB_HANDLE handle, const char *filename)
136 {
137  (void) handle;
138  (void) filename;
139  return NULL;
140 }
141 
151 char *smb_file_TrusteeRights(SMB_HANDLE handle, const char *filename)
152 {
153  (void) handle;
154  (void) filename;
155  return NULL;
156 }
157 
167 int
168 wincmd(int argc, char *argv[], char **res)
169 {
170  (void) argc;
171  (void) argv;
172  (void) res;
173  return -1;
174 }
int wincmd(int argc, char *argv[], char **res)
Command Execution in Windows.
char * smb_versioninfo()
Return version info for SMB implementation.
int smb_connect(const char *server, const char *share, const char *username, const char *password, SMB_HANDLE *con)
Establish connection to a SMB service.
char * smb_file_OwnerSID(SMB_HANDLE handle, const char *filename)
Obtain the SID of the Owner for a given file/path.
char * smb_file_GroupSID(SMB_HANDLE handle, const char *filename)
Obtain the SID of the Group for a given file/path.
int SMB_HANDLE
char * smb_file_SDDL(SMB_HANDLE handle, const char *filename)
Obtain Windows file rights in SDDL format.
char * smb_file_TrusteeRights(SMB_HANDLE handle, const char *filename)
Obtain the Trustee SID and their rights for a given file/path.
API protos describing the interface of a smb interface implementation.
int smb_close(SMB_HANDLE handle)
Close the connection handle for SMB service.