ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
SmbConfig Struct Reference

Server credentials + the file to open. Strings are ASCII/UTF-8 (encoded UTF-16LE for you). More...

#include <smb_client.h>

Public Attributes

const char * user
 account name
 
const char * pass
 password
 
const char * domain
 NTLM domain (null/empty for a local account)
 
const char * workstation
 client name to announce (null => none)
 
const char * share
 the tree path, UNC \\server\share
 
const char * path
 file name relative to the share root (e.g. PROGRAMS\A.NC)
 
uint32_t desired_access
 SMB2_FILE_GENERIC_READ and/or _WRITE.
 
uint32_t disposition
 SMB2_FILE_OPEN / _OPEN_IF / _OVERWRITE_IF / _CREATE.
 
proto_bool encrypt
 
uint16_t cipher_pref
 

Detailed Description

Server credentials + the file to open. Strings are ASCII/UTF-8 (encoded UTF-16LE for you).

Definition at line 56 of file smb_client.h.

Member Data Documentation

◆ user

const char* SmbConfig::user

account name

Definition at line 58 of file smb_client.h.

◆ pass

const char* SmbConfig::pass

password

Definition at line 59 of file smb_client.h.

◆ domain

const char* SmbConfig::domain

NTLM domain (null/empty for a local account)

Definition at line 60 of file smb_client.h.

◆ workstation

const char* SmbConfig::workstation

client name to announce (null => none)

Definition at line 61 of file smb_client.h.

◆ share

const char* SmbConfig::share

the tree path, UNC \\server\share

Definition at line 62 of file smb_client.h.

◆ path

const char* SmbConfig::path

file name relative to the share root (e.g. PROGRAMS\A.NC)

Definition at line 63 of file smb_client.h.

◆ desired_access

uint32_t SmbConfig::desired_access

SMB2_FILE_GENERIC_READ and/or _WRITE.

Definition at line 64 of file smb_client.h.

◆ disposition

uint32_t SmbConfig::disposition

SMB2_FILE_OPEN / _OPEN_IF / _OVERWRITE_IF / _CREATE.

Definition at line 65 of file smb_client.h.

◆ encrypt

proto_bool SmbConfig::encrypt

request SMB 3.x transport encryption from the session on (client-forced, like smbclient -e): needed to reach a share whose server requires encryption, which rejects the unencrypted TREE_CONNECT before it can advertise the share flag.

Definition at line 66 of file smb_client.h.

◆ cipher_pref

uint16_t SmbConfig::cipher_pref

preferred Smb2Cipher to negotiate (moved to the front of the offer); 0 = default order (AES-128-GCM, AES-256-GCM, AES-128-CCM, AES-256-CCM).

Definition at line 69 of file smb_client.h.


The documentation for this struct was generated from the following file: