OpenVAS Scanner  22.7.9
smb_interface_stub.c
Go to the documentation of this file.
1 /* SPDX-FileCopyrightText: 2023 Greenbone AG
2  *
3  * SPDX-License-Identifier: GPL-2.0-or-later
4  */
5 
14 /* for NULL */
15 #include "openvas_smb_interface.h"
16 
17 #include <string.h>
18 
26 char *
28 {
29  return NULL;
30 }
31 
47 int
48 smb_connect (const char *server, const char *share, const char *username,
49  const char *password, SMB_HANDLE *con)
50 {
51  (void) server;
52  (void) share;
53  (void) username;
54  (void) password;
55  (void) con;
56  return -1;
57 }
58 
66 int
68 {
69  (void) handle;
70  return -1;
71 }
72 
82 char *
83 smb_file_SDDL (SMB_HANDLE handle, const char *filename)
84 {
85  (void) handle;
86  (void) filename;
87  return NULL;
88 }
89 
99 char *
100 smb_file_OwnerSID (SMB_HANDLE handle, const char *filename)
101 {
102  (void) handle;
103  (void) filename;
104  return NULL;
105 }
106 
116 char *
117 smb_file_GroupSID (SMB_HANDLE handle, const char *filename)
118 {
119  (void) handle;
120  (void) filename;
121  return NULL;
122 }
123 
133 char *
134 smb_file_TrusteeRights (SMB_HANDLE handle, const char *filename)
135 {
136  (void) handle;
137  (void) filename;
138  return NULL;
139 }
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:48
SMB_HANDLE
long int SMB_HANDLE
Definition: openvas_smb_interface.h:17
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:100
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:83
smb_versioninfo
char * smb_versioninfo()
Return version info for SMB implementation.
Definition: smb_interface_stub.c:27
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:117
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:134
smb_close
int smb_close(SMB_HANDLE handle)
Close the connection handle for SMB service.
Definition: smb_interface_stub.c:67