Stub implementatin for SMB interface.
More...
#include <string.h>
#include "openvas_smb_interface.h"
Functions |
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.
|
int | smb_close (SMB_HANDLE handle) |
| Close the connection handle for SMB service.
|
char * | smb_file_SDDL (SMB_HANDLE handle, const char *filename) |
| Obtain Windows file rights in SDDL format.
|
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.
|
char * | smb_file_TrusteeRights (SMB_HANDLE handle, const char *filename) |
| Obtain the Trustee SID and their rights for a given file/path.
|
Detailed Description
Stub implementatin for SMB interface.
This file contains an empty implementation that fulfills the SMB interface specfified in openvas_smb_interface.h
Function Documentation
Close the connection handle for SMB service.
- Parameters:
-
[in] | handle | - SMB connection handle |
- Returns:
- , 0 on success, -1 on failure
int smb_connect |
( |
const char * |
server, |
|
|
const char * |
share, |
|
|
const char * |
username, |
|
|
const char * |
password, |
|
|
SMB_HANDLE * |
con |
|
) |
| |
Establish connection to a SMB service.
- Parameters:
-
[in] | server | - The host system to connect to |
[in] | share | - The file system share. |
[in] | username | - The username for getting access to SMB service |
[in] | password | - The password that corresponds to username |
[out] | handle | - A connection handle in case of success. |
- Returns:
- , 0 on success, -1 on failure
Obtain the SID of the Group for a given file/path.
- Parameters:
-
[in] | handle | - SMB connection handle |
[in] | filename | - File system path |
- Returns:
- , Group SID string on success, NULL on failure.
Obtain the SID of the Owner for a given file/path.
- Parameters:
-
[in] | handle | - SMB connection handle |
[in] | filename | - File system path |
- Returns:
- , Owner SID string on success, NULL on failure.
Obtain Windows file rights in SDDL format.
- Parameters:
-
[in] | handle | - SMB connection handle |
[in] | filename | - File system path |
- Returns:
- , Security Descriptor in SDDL format on success, NULL on failure.
Obtain the Trustee SID and their rights for a given file/path.
- Parameters:
-
[in] | handle | - SMB connection handle |
[in] | filename | - File system path |
- Returns:
- , Trustee SID:Access_Mask string on success, NULL on failure.
Return version info for SMB implementation.
- Returns:
- NULL if this the impementation is a non-functional stub, else a arbitrary string that explains the version of the implementation.