Skip to content

Commit

Permalink
Release 1.0.3
Browse files Browse the repository at this point in the history
min/max client protocol now supported on streams.
Either min/max client protocol can now be null on smbclient_client_protocols().
  • Loading branch information
eduardok committed Jan 21, 2021
1 parent 66ff6bf commit 73d5c79
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@ The state resource should be released when you're done with it by passing it to
### smbclient_client_protocols

```php
bool smbclient_client_protocols ( resource $state, string $min_protocol, string $max_protocol )
bool smbclient_client_protocols ( resource $state, string $min_protocol = null, string $max_protocol = null )
```

Sets the minimum and maximum protocols (client min protocol and client max protocol) for negotiation.
Either can be set to null.
Returns `true` on success, `false` on failure.

### smbclient_option_set
Expand Down
21 changes: 18 additions & 3 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
<email>[email protected]</email>
<active>yes</active>
</contributor>
<date>2021-01-20</date>
<date>2021-01-21</date>
<time>12:00:00</time>
<version>
<release>1.0.2</release>
<release>1.0.3</release>
<api>0.8.0</api>
</version>
<stability>
Expand All @@ -34,7 +34,7 @@
</stability>
<license uri="http://opensource.org/licenses/BSD-2-Clause">BSD 2-clause</license>
<notes>
--- Introduces smbclient_client_protocols() to set min and max protocol for negotiation.
Add client min/max protocol to streams, and make either min/max optional.
</notes>
<contents>
<dir name="/">
Expand Down Expand Up @@ -82,6 +82,21 @@
<providesextension>smbclient</providesextension>
<extsrcrelease/>
<changelog>
<release>
<date>2021-01-21</date>
<version>
<release>1.0.3</release>
<api>0.8.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://opensource.org/licenses/BSD-2-Clause">BSD 2-clause</license>
<notes>
- Add client min/max protocol to streams, and make either min/max optional.
</notes>
</release>
<release>
<date>2021-01-20</date>
<version>
Expand Down
2 changes: 1 addition & 1 deletion php_smbclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

#include <libsmbclient.h>

#define PHP_SMBCLIENT_VERSION "1.0.2"
#define PHP_SMBCLIENT_VERSION "1.0.3"

extern zend_module_entry smbclient_module_entry;
#define phpext_smbclient_ptr &smbclient_module_entry
Expand Down

0 comments on commit 73d5c79

Please sign in to comment.