summaryrefslogtreecommitdiffstats
path: root/source/include/libsmbclient.h
Commit message (Collapse)AuthorAgeFilesLines
* The buf in the smbclient write function should be const.Andreas Schneider2008-07-161-2/+2
| | | | | | | | As we try to provide POSIX function, we should use const like all other POSIX function. Signed-off-by: Andreas Schneider <anschneider@suse.de> Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
* Fix typos.Derrell Lipman2008-07-161-1/+1
| | | | | | libsmbclient doesn't have bool defined; rather it uses smbc_bool Derrell
* [BUG 5580] Allow access to DFS shares via libsmbclientDerrell Lipman2008-07-081-0/+27
| | | | | | | | | Brian Sheehan provided a nice patch intended for the 3.0 code base. This commit applies a similar patch for the 3.3 code base. It adds a new public function to libsmbclient -- smbc_set_credentials() -- that may be called from the authentication callback when DFS referrals are in use. Derrell
* Add documentation for kerberos support in libsmbclient.Andreas Schneider2008-06-231-0/+10
| | | | | Signed-off-by: Andreas Schneider <anschneider@suse.de> Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
* Remove prototype of unimplemented smbc_chown() function.Derrell Lipman2008-06-181-26/+0
|
* use constant name less likely to cause conflictDerrell Lipman2008-03-031-50/+50
|
* Missed a few 'deprecated' markersDerrell Lipman2008-03-031-2/+2
|
* Continued revamping of libsmbclient.Derrell Lipman2008-03-031-126/+121
| | | | | | | | | | | | | - James suggested using gcc's "deprecated" attribute to mark the context structure fields to generate warnings. This creates a scenario with the best of all worlds. I'm able to move to an organization that more easily allows future enhancements, while avoiding any mandatory changes by applications. Thanks, James! - Updated WHATSNEW.txt so that it accurately reflects the current state of affairs. Derrell
* fixed missing white spaceDerrell Lipman2008-03-021-0/+1
|
* change variable name from f to fn for function pointersDerrell Lipman2008-03-011-37/+37
|
* Comment was in wrong placeDerrell Lipman2008-03-011-4/+3
|
* Mark smbc_option_{get,set} as deprecatedDerrell Lipman2008-03-011-23/+3
|
* Additional revamped libsmbclient documentationDerrell Lipman2008-03-011-81/+320
| | | | | | | | - Ensured that all public functions have documentation in libsmbclient.h - Reformatted for "proper" indentation - Re-added temporarily-disabled alternate authentication function capability Derrell
* Modified revamp of the libsmbclient interface.Derrell Lipman2008-03-011-1/+281
| | | | | | | | | | | | | | | | | | | | Given the tacit (if that) approval by some people, and clear disapproval by others for my proposed clean-up and reorganization of libsmbclient, I've come up with a slightly different approach. This commit changes back to the original libsmbclient.h SMBCCTX structure which will maintain ABI compatibility. I retain, here, the setter and getter functions which all new code should use. Older programs already compiled should continue to work fine. Older programs being recompiled will encounter compile-time errors (intentionally!) so that the code can be corrected to use the setter/getter interfaces. Although this doesn't clean up the interface in the way I had wanted, the code reorganization and requirement for new programs to use the setters and getters allows future progress to be made on libsmbclient without further muddying up the interface, while retaining the ABI compatibility that was the big issue causing disapproval. I hope that this compromise is adequate. Derrell
* Initial revamp of the libsmbclient interface.Derrell Lipman2008-03-011-203/+292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* add smbc_ftruncate() to emulate POSIX ftruncate()Derrell Lipman2008-02-261-0/+31
|
* Fix smbc_listxattr() and friends (bug #5189)Derrell Lipman2008-01-131-1/+1
| | | | | | | | | | When the capability of using full names for DOS attributes was added, a bug was introduced which caused the wrong number of bytes to be returned. This patch to smbc_listxattr_ctx() fixes the problem. Thanks to Jack Schmidt for this patch. Derrell
* r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r21132: - Fixes bug 4366. Documentation for smbc_utimes() was incorrect.Derrell Lipman2007-10-101-9/+11
| | | | | | | | | | | | | - Should fix bug 4115 (but needs confirmation from OP). If the kerberos use flag is set in the context, then also pass it to smbc_attr_server for use by cli_full_connection() - Should fix bug 4309 (but needs confirmation from OP). We no longer send a keepalive packet unconditionally. Instead, we assume (yes, possibly incorrectly, but it's the best guess we can make) that if the connection is on port 139, it's netbios and otherwise, it isn't. If netbios is in use, we send a keepalive packet. Otherwise, we check that the connection is alive using getpeername().
* r18013: Fix for "bug" (enhancement) 3684.Derrell Lipman2007-10-101-0/+14
| | | | | Provide a new option to specify the share mode to be used when opening a file.
* r16550: Fix bug 3866. Thanks for the report!Derrell Lipman2007-10-101-1/+1
| | | | | | | | | | | | | | | | | 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-10/+86
| | | | | | | | 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.
* r11719: Remove silly #define of close -> close_fn as this borksJeremy Allison2007-10-101-7/+0
| | | | | | | any code that includes libsmbclient.h that also calls the system close() fn. Doh ! Thanks to John Terpstra for reporting this. Jeremy.
* r11573: Adding Andrew Bartlett's patch to make machine accountJeremy Allison2007-10-101-0/+5
| | | | | | | | | | | | | | | | | logons work if the client gives the MSV1_0_ALLOW_SERVER_TRUST_ACCOUNT or MSV1_0_ALLOW_WORKSTATION_TRUST_ACCOUNT flags. This changes the auth module interface to 2 (from 1). The effect of this is that clients can access resources as a machine account if they set these flags. This is the same as Windows (think of a VPN where the vpn client authenticates itself to a VPN server using machine account credentials - the vpn server checks that the machine password was valid by performing a machine account check with the PDC in the same was as it would a user account check. I may add in a restriction (parameter) to allow this behaviour to be turned off (as it was previously). That may be on by default. Andrew Bartlett please review this change carefully. Jeremy.
* r9540: correct comments in struct smbc_dirent (fixes bug 3030)Derrell Lipman2007-10-101-4/+4
|
* r8093: Next round. Now it compiles with --enable-socket-wrapper.Volker Lendecke2007-10-101-1/+1
| | | | Volker
* r5916: Only one C++ guard is necessary, not one around each smbc function.Tim Potter2007-10-101-261/+34
|
* r5752: implement derrell's solution for binary compatibilty in the _SMBCCTX ↵Gerald Carter2007-10-101-5/+63
| | | | structure; note that we break compat with 3.0.11 but are ok with earlier versions
* r5735: rest of derrel's patch for BUG 2308; had to move the options ↵Gerald Carter2007-10-101-1/+87
| | | | structure from the _SMBCCTX to the internals structure to maintain binary compatibility (derrel, we should talk more about this)
* r4970: Fix for bug 2092, allowing fallback after kerberos and allowJeremy Allison2007-10-101-0/+6
| | | | | gnome vfs to prevent auto-anonymous logon. Jeremy.
* r599: Bug #1178. Make the libsmbclient routines callable by C++ programs. AlsoRichard Sharpe2007-10-101-29/+264
| | | | clean up the format of the file a bit.
* Add prototype for smbc_remove_unused_server() to fix compiler warning.Tim Potter2003-11-021-0/+11
| | | | Bug #706.
* Commit Derrell's changes to libsmbclient plus a small change to configure.inRichard Sharpe2003-10-241-0/+864
| | | | to see if SGI and other platforms will build.
* Add support for the new modules system to auth/ (merge from HEAD)Jelmer Vernooij2003-04-161-6/+5
|
* Now that I am running config.developer, I decided to get rif of some warnings:Richard Sharpe2003-01-131-97/+160
| | | | | | | | | 1. reboot in parse_reg and cli_reg was shadowing a definition on FreeBSD 4.3 from system includes. 2. Added a bit of const to places. 3. Made sure internal functions were declared where needed.
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-1/+1
|
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-14/+234
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Made a libsmbclient doxygen group and moved all the libsmbclient groupsTim Potter2001-11-221-13/+21
| | | | under it.
* Fix up libsmbclient in head.Richard Sharpe2001-11-211-93/+96
| | | | | Apply the patches from Tom Jansen, get rid of fprintfs and change them to DEBUGs, etc ...
* Updated the inplace documentation to reflect change from EUCLEAN to EINVAL.Richard Sharpe2001-05-151-39/+32
|
* More documentation in the header in doxygen formatRichard Sharpe2001-03-101-3/+12
|
* Fix the definition and implementation of smbc_lseekdir ...Richard Sharpe2001-03-071-68/+82
|
* Added commented/documented version of libsmbclient.h and fixed up a smallRichard Sharpe2001-02-121-160/+692
| | | | problem in libsmbclient.c where we no longer pass the workgroup.
* Fix problems in libsmbclient with pring job struct plus add implementationRichard Sharpe2001-02-061-0/+12
| | | | of last two print routines ...
* Implement two printing related functions and start the remaining two.Richard Sharpe2001-02-051-2/+2
|
* Fix some further small bugs in libsmbclient to make it pass theRichard Sharpe2001-02-041-1/+23
| | | | Caldera test suite and start to add the printing routines.
* Some more bug fixes plus implementations of smbc_mkdir and smbc_rmdir,Richard Sharpe2001-01-121-0/+12
| | | | | | both tested ... More later.
* Many bug fixes to the libsmbclient.c code plusRichard Sharpe2001-01-121-2/+9
| | | | | | | - an implementation of smbc_readdir - extensions to tree.c to show files in a second window - changes to auth_fn to provide buffers for username, password, etc from caller rather than callee