OpenVAS Scanner 23.40.3
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
13
14/* for NULL */
16
17#include <string.h>
18
26char *
28{
29 return NULL;
30}
31
47int
48smb_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
66int
68{
69 (void) handle;
70 return -1;
71}
72
82char *
83smb_file_SDDL (SMB_HANDLE handle, const char *filename)
84{
85 (void) handle;
86 (void) filename;
87 return NULL;
88}
89
99char *
100smb_file_OwnerSID (SMB_HANDLE handle, const char *filename)
101{
102 (void) handle;
103 (void) filename;
104 return NULL;
105}
106
116char *
117smb_file_GroupSID (SMB_HANDLE handle, const char *filename)
118{
119 (void) handle;
120 (void) filename;
121 return NULL;
122}
123
133char *
134smb_file_TrusteeRights (SMB_HANDLE handle, const char *filename)
135{
136 (void) handle;
137 (void) filename;
138 return NULL;
139}
API protos describing the interface of a smb interface implementation.
long int SMB_HANDLE
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_TrusteeRights(SMB_HANDLE handle, const char *filename)
Obtain the Trustee SID and their rights for a given file/path.
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_close(SMB_HANDLE handle)
Close the connection handle for SMB service.
char * smb_versioninfo()
Return version info for SMB implementation.
char * smb_file_SDDL(SMB_HANDLE handle, const char *filename)
Obtain Windows file rights in SDDL format.