Merge pull request 'src/Native/NativeState.php aktualisiert' (#137) from b3roch/SMB:b3roch-patch-encrypt-stat into master

Reviewed-on: https://codeberg.org/icewind/SMB/pulls/137
This commit is contained in:
Robin Appelman 2025-10-25 20:28:07 +02:00
commit bf27345a53

View file

@ -108,6 +108,7 @@ class NativeState {
smbclient_option_set($this->state, SMBCLIENT_OPT_AUTO_ANONYMOUS_LOGIN, false);
/** @psalm-suppress UnusedFunctionCall */
smbclient_option_set($this->state, SMBCLIENT_OPT_TIMEOUT, $options->getTimeout() * 1000);
smbclient_option_set($this->state, SMBCLIENT_OPT_ENCRYPT_LEVEL, SMBCLIENT_ENCRYPTLEVEL_REQUEST); // Request encrypted connection
if (function_exists('smbclient_client_protocols')) {
smbclient_client_protocols($this->state, $options->getMinProtocol(), $options->getMaxProtocol());