Skip to content

Commit

Permalink
cannot set client min/max protocol on libsmbc under 0.5.0 #16
Browse files Browse the repository at this point in the history
  • Loading branch information
hamano committed Feb 5, 2021
1 parent 87bbb14 commit 286b379
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions smbc/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ Context_init (Context *self, PyObject *args, PyObject *kwds)
#if SMBCLIENT_VERSION >= 500 /* 0.5.0 or newer */
debugprintf("-> Setting client min/max protocol to %s by smbc_setOptionProtocols\n", proto);
smbc_setOptionProtocols(ctx, proto, proto);
#else
debugprintf("-> Setting client min/max protocol to %s by smbc_option_set\n", proto);
smbc_option_set(ctx, "client max protocol", proto);
smbc_option_set(ctx, "client min protocol", proto);
#endif
}

Expand Down

0 comments on commit 286b379

Please sign in to comment.