diff options
author | Volker Lendecke <vl@samba.org> | 2010-01-24 19:24:10 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-01-24 20:32:17 +0100 |
commit | 4eb1523d87e4ed1bcc5b1ec64da0b53ce2264000 (patch) | |
tree | 9a055dd6b0d22d1805aca5660332c8fee2161480 /source3/libsmb/libsmb_setget.c | |
parent | dc1bcec73cb3c895ebd84614cc5a14ca0eae0505 (diff) | |
download | samba-4eb1523d87e4ed1bcc5b1ec64da0b53ce2264000.tar.gz samba-4eb1523d87e4ed1bcc5b1ec64da0b53ce2264000.tar.bz2 samba-4eb1523d87e4ed1bcc5b1ec64da0b53ce2264000.zip |
s3-libsmbclient: Add smbc_setOptionUseCCache()
Can we enable this by default? This would be a change in behaviour, but this
feature is just too cool for everyone to catch up in the apps.
The patch would be
Diffstat (limited to 'source3/libsmb/libsmb_setget.c')
-rw-r--r-- | source3/libsmb/libsmb_setget.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/libsmb/libsmb_setget.c b/source3/libsmb/libsmb_setget.c index 791b4cd9e4..20835781ec 100644 --- a/source3/libsmb/libsmb_setget.c +++ b/source3/libsmb/libsmb_setget.c @@ -420,6 +420,24 @@ smbc_setOptionNoAutoAnonymousLogin(SMBCCTX *c, smbc_bool b) } } +/** Get whether to enable use of kerberos */ +smbc_bool +smbc_getOptionUseCCache(SMBCCTX *c) +{ + return c->flags & SMB_CTX_FLAG_USE_CCACHE ? True : False; +} + +/** Set whether to enable use of kerberos */ +void +smbc_setOptionUseCCache(SMBCCTX *c, smbc_bool b) +{ + if (b) { + c->flags |= SMB_CTX_FLAG_USE_CCACHE; + } else { + c->flags &= ~SMB_CTX_FLAG_USE_CCACHE; + } +} + /** Get the function for obtaining authentication data */ smbc_get_auth_data_fn smbc_getFunctionAuthData(SMBCCTX *c) |