summaryrefslogtreecommitdiffstats
path: root/examples/libsmbclient/testbrowse.c
Commit message (Collapse)AuthorAgeFilesLines
* Add krb5 support for the testbrowse example.Andreas Schneider2008-06-231-0/+3
| | | | | Signed-off-by: Andreas Schneider <anschneider@suse.de> Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
* Missed a few 'deprecated' markersDerrell Lipman2008-03-031-1/+1
|
* Remove use of deprecated functionDerrell Lipman2008-03-021-2/+2
|
* Additional revamped libsmbclient documentationDerrell Lipman2008-03-011-13/+4
| | | | | | | | - Ensured that all public functions have documentation in libsmbclient.h - Reformatted for "proper" indentation - Re-added temporarily-disabled alternate authentication function capability Derrell
* Initial revamp of the libsmbclient interface.Derrell Lipman2008-03-011-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The libsmbclient interface has suffered from difficulty of improvement and feature enrichment without causing ABI breakage. Although there were a number of issues, the primary ones were: (a) the user of the library would manually manipulate the context structure members, meaning that nothing in the context structure could change other than adding stuff at the end; (b) there were three methods of setting options: setting bits in a flags field within the context structure, setting explicit options variables within an options structure in the context structure, and by calling the smbc_option_set() function; (c) the authentication callback did not traditionally provide enough information to the callee which required adding an option for a callback with a different signature, and now there are requests for even more information at the callback, requiring yet a third signature and option to set it (if we implement that feature). This commit provides a reorganization of the code which fixes (a) and (b). The context structure is now entirely opaque, and there are setter and getter functions for manipulating it. This makes maintaining ABI consistency much, much easier. Additionally, the options setting/getting has been unified into a single mechanism using smbc_option_set() and smbc_option_get(). Yet to be completed is a refactoring of the authentication callback (c). The test programs in examples/libsmbclient have been modified (if necessary; some applications require no changes at all) for the new API and a few have been minimally tested. Derrell
* r16550: Fix bug 3866. Thanks for the report!Derrell Lipman2007-10-101-2/+2
| | | | | | | | | | | | | | | | | Although I've never met a computer or compiler that produced pointers to functions which are a different size than pointers to data, I suppose they probably exist. Assigning a pointer to a function is technically illegal in C anyway. Change casts of the option_value based on the option_name to use of variable argument lists. For binary compatibility, I've maintained but deprecated the old behavior of debug_stderr (which expected to be passed a NULL or non-NULL pointer) and added a new option debug_to_stderr which properly expects a boolean (int) parameter. Derrell
* r14664: r13868@cabra: derrell | 2006-03-22 17:04:30 -0500Derrell Lipman2007-10-101-2/+49
| | | | | | | | 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.
* r12757: r12126@cabra: derrell | 2006-01-03 15:21:36 -0500Derrell Lipman2007-10-101-2/+11
| | | | added flag to not request authentication information
* r12579: r12122@cabra: derrell | 2005-12-29 12:03:00 -0500Derrell Lipman2007-10-101-1/+1
| | | | allow for arbitrary option value types
* r12576: r12115@cabra: derrell | 2005-12-29 11:16:03 -0500Derrell Lipman2007-10-101-12/+34
| | | | bug (enhancement) #2651: add option to log debug messages to stderr instead of stdout
* r12080: r10673@cabra: derrell | 2005-12-05 13:22:34 -0500Derrell Lipman2007-10-101-75/+163
| | | | | | Correct some memory and file descriptor leaks. This should fix bugs 3257, 3267 and 3273.
* r6149: Fixes bugs #2498 and 2484.Derrell Lipman2007-10-101-60/+2
| | | | | | | | | | | | | | | | | | 1. using smbc_getxattr() et al, one may now request all access control entities in the ACL without getting all other NT attributes. 2. added the ability to exclude specified attributes from the result set provided by smbc_getxattr() et al, when requesting all attributes, all NT attributes, or all DOS attributes. 3. eliminated all compiler warnings, including when --enable-developer compiler flags are in use. removed -Wcast-qual flag from list, as that is specifically to force warnings in the case of casting away qualifiers. Note: In the process of eliminating compiler warnings, a few nasties were discovered. In the file libads/sasl.c, PRIVATE kerberos interfaces are being used; and in libsmb/clikrb5.c, both PRIAVE and DEPRECATED kerberos interfaces are being used. Someone who knows kerberos should look at these and determine if there is an alternate method of accomplishing the task.
* r6108: Added smbsh/smbwrapper for Linux to example/libsmbclient tree; ↵Derrell Lipman2007-10-101-54/+165
| | | | provided more complete libsmbclient testbrowse utility
* Apply some more of Derrell Lipman's changes.Richard Sharpe2004-03-191-0/+91