diff options
author | Derrell Lipman <derrell@samba.org> | 2006-03-22 22:05:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:42 -0500 |
commit | e836508704dd964e22e8bfc0f8e9ec520a2c94f2 (patch) | |
tree | 8128e5217661a19e3adcdfde5e812f845d2c611b /source3/include/libsmb_internal.h | |
parent | 853ad11aaf281d8f83561bd273b3271ff7f388cc (diff) | |
download | samba-e836508704dd964e22e8bfc0f8e9ec520a2c94f2.tar.gz samba-e836508704dd964e22e8bfc0f8e9ec520a2c94f2.tar.bz2 samba-e836508704dd964e22e8bfc0f8e9ec520a2c94f2.zip |
r14664: r13868@cabra: derrell | 2006-03-22 17:04:30 -0500
Implement enhancement request 3505. Two additional features are added here.
There is now a method of saving an opaque user data handle in the smbc_
context, and there is now a way to request that the context be passed to the
authentication function. See examples/libsmbclient/testbrowse.c for an example
of using these features.
(This used to be commit 203b4911c16bd7e10198a6f0e63960f2813025ef)
Diffstat (limited to 'source3/include/libsmb_internal.h')
-rw-r--r-- | source3/include/libsmb_internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/include/libsmb_internal.h b/source3/include/libsmb_internal.h index 0426430328..5aca12554f 100644 --- a/source3/include/libsmb_internal.h +++ b/source3/include/libsmb_internal.h @@ -79,6 +79,18 @@ struct smbc_internal_data { * Log to standard error instead of the more typical standard output */ BOOL _debug_stderr; + + /* + * Authentication function which includes the context. This will be + * used if set; otherwise context->callbacks.auth_fn() will be used. + */ + smbc_get_auth_data_with_context_fn _auth_fn_with_context; + + /* + * An opaque (to this library) user data handle which can be set + * and retrieved with smbc_option_set() and smbc_option_get(). + */ + void * _user_data; }; |