Klaas Freitag
8ba2f483bf
Add a vio capabilites function to let a module define its capabilities.
2012-07-04 13:56:24 +02:00
Klaas Freitag
c263a39334
Compute server time from http header and adjust mtimes.
2012-07-03 14:38:43 +02:00
Klaas Freitag
adda008122
Remove wrong cast
2012-06-20 15:19:05 +02:00
Klaas Freitag
27dbdb29fc
ownCloud: Fix mem leaks to bring valgrind down to zero loss.
2012-06-20 15:01:54 +02:00
Klaas Freitag
6354c32d3b
ownCloud: Use wide char aware file system functions.
2012-06-20 12:08:06 +02:00
Klaas Freitag
370e2e451f
do not log on stderr on MacOSX because that spams system log
2012-06-18 13:02:06 +02:00
Klaas Freitag
f33cdb0de9
ownCloud: commented extensive log line.
2012-06-13 17:28:26 +02:00
Klaas Freitag
3e4e4eeee8
logging in SSL callback, important to debug.
2012-06-13 11:26:37 +02:00
Klaas Freitag
c0182c373a
ownCloud: Adopt logging to csync standard log instead of printf.
2012-06-05 17:10:50 +02:00
Klaas Freitag
648fc78d95
ownCloud: Proper initializations with NULL avoid a crash.
2012-05-21 09:44:23 +02:00
Klaas Freitag
33d1825551
Merge branch 'dav' of http://git.csync.org/users/freitag/csync into dav
...
Conflicts:
src/csync.c
2012-05-15 16:17:51 +02:00
Klaas Freitag
d228436aba
ownCloud: better debug output for file GET.
2012-05-15 16:16:04 +02:00
Klaas Freitag
2d34a1c993
ownCloud: Added redirect ability.
2012-05-14 17:19:50 +02:00
Klaas Freitag
eff0319e40
ownCloud: Fix bug #613 : Encode strange url correctly.
...
see http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-613
2012-05-10 17:55:57 +02:00
Klaas Freitag
9871989806
ownCloud: Fixed var initialization to avoid crash after thread
...
terminated.
2012-05-04 12:07:20 +02:00
Klaas Freitag
cbf259b482
ownCloud: Add neon include dir variable to the compile include dirs.
2012-05-04 12:07:20 +02:00
Dominik Schmidt
0160be06f5
ownCloud: Fix warning condition in reader code.
2012-05-04 12:04:58 +02:00
Dominik Schmidt
ac6e5ff4b9
CMake: Fix owncloud linkage against neon.
2012-05-04 12:04:13 +02:00
Andreas Schneider
8212553cbe
owncloud: Fix some build warnings.
2012-04-17 11:23:20 +02:00
Klaas Freitag
010305eab2
ownCloud: catch some compiler warnings when very pedantic.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 11:16:09 +02:00
Klaas Freitag
f40ab9c6e1
ownCloud: Debug output only if NDEBUG is undefined.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 11:15:46 +02:00
Klaas Freitag
b8100868a3
ownCloud: added memory buffered put requests with fallback on file.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 11:13:18 +02:00
Klaas Freitag
4acb4eef63
ownCloud: Added a flag for the existance of the current directory.
...
That saves a lot of stat calls because the for each PUT a stat has
to be done if the parent dir exists.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:50:10 +02:00
Klaas Freitag
99c0405a26
ownCloud: Disabled useless debugging output.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:48:59 +02:00
Klaas Freitag
45ad55d894
ownCloud: Added http compression support for GET requests.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:48:28 +02:00
Klaas Freitag
53263a2685
owncloud: set _fmode variable to set file ops to binary mode.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:40:21 +02:00
Dominik Schmidt
87bc7ca4cc
Fix warning condition
2012-04-15 14:35:38 +02:00
Dominik Schmidt
da0c0b3bbe
Fix owncloud linkage against neon
2012-04-13 22:54:03 +02:00
Klaas Freitag
a6c16c063e
ownCloud: catch some compiler warnings when very pedantic.
2012-04-10 11:49:16 +02:00
Klaas Freitag
07b2371740
ownCloud: Debug output only if NDEBUG is undefined.
2012-04-10 11:49:16 +02:00
Klaas Freitag
bf53697664
ownCloud: added memory buffered put requests with fallback on file.
2012-04-10 11:49:16 +02:00
Klaas Freitag
3fd80bb0e2
ownCloud: Added a flag for the existance of the current directory.
...
That saves a lot of stat calls because the for each PUT a stat has
to be done if the parent dir exists.
2012-04-10 11:49:16 +02:00
Klaas Freitag
74f0b57ed7
ownCloud: Disabled useless debugging output.
2012-04-10 11:48:40 +02:00
Klaas Freitag
86549e142f
ownCloud: Added http compression support for GET requests.
2012-04-10 11:48:33 +02:00
Klaas Freitag
fd9a380fc9
owncloud: memclear a buf and remove not needed win32 code.
2012-04-10 11:45:19 +02:00
Klaas Freitag
3676ca623a
owncloud: set _fmode variable to set file ops to binary mode.
2012-04-10 11:43:56 +02:00
Klaas Freitag
3ae453cc36
std: Renamed struct_stat to csync_stat_t and use c_private.h again.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-03-21 13:48:41 +01:00
Klaas Freitag
e264ac347d
owncloud: use decoded file name to search in stat result list.
2012-03-15 14:11:14 +01:00
Klaas Freitag
5ad5d176f9
ownCloud: Use win32 API to get the standard user temp path.
...
Conflicts:
modules/csync_owncloud.c
2012-03-15 14:11:14 +01:00
Klaas Freitag
14791534ca
owncloud: cleaned some comment signs from C++ to C type.
2012-03-15 14:11:14 +01:00
Klaas Freitag
bc138efa4e
owncloud: set _fmode variable to set file ops to binary mode.
2012-03-07 16:18:08 +01:00
Klaas Freitag
87d3a56221
owncloud: More robust programming, some additional logs.
2012-03-07 16:18:08 +01:00
Klaas Freitag
bb1ccadebc
ownCloud: Fix translation of mkcol 405 errcode to ernno.
2012-03-07 16:18:08 +01:00
Klaas Freitag
9b8e75e4fc
ownCloud: append a trailing slash in mkdir as neon requests.
2012-03-07 16:18:08 +01:00
Klaas Freitag
a454156dc2
ownCloud: remove wired function to generate errno from neon error.
...
The errno is now either generated from the session values of neon
or individually in each function.
2012-03-07 16:18:08 +01:00
Klaas Freitag
edb073a290
ownCloud: removed the test on webdav.php. It is not needed.
...
The server handles it correctly itself to return the correct
type for the toplevel dir webdav.php
2012-03-07 16:18:08 +01:00
Klaas Freitag
9f67accf14
owncloud: Fix stat function for WebDAV root.
...
If a propcall happens to webdav.php the webdav server returns the
result list for all entries. In stat only the webdav.php entry is
interesting and must be searched within the result list.
2012-03-07 16:18:08 +01:00
Dominik Schmidt
1fbba4f158
mingw: resolve name clashes in dummy module and link it against libcsync
2012-03-02 17:04:02 +01:00
Dominik Schmidt
11c515f869
mingw: resolve name clashes in sftp module
2012-03-02 17:04:02 +01:00
Dominik Schmidt
f064dbcde4
Make libsmbclient optional
2012-03-02 17:02:59 +01:00
Klaas Freitag
ded226911e
owncloud: Removed unused file attribute contenttype from PROPFIND.
2012-02-22 18:23:18 +01:00
Klaas Freitag
56c583615d
owncloud: Remove more unused logging.
2012-02-22 18:23:18 +01:00
Klaas Freitag
3025ada5dc
owncloud: Use c_parse_uri instead of neon equivalent, minor cleanups.
2012-02-22 18:23:18 +01:00
Klaas Freitag
5c97b6f81d
owncloud: Call the neon ssl functions only if SSL is active.
...
Especially ne_ssl_trust_default_ca seems to crash in case no SSL is
used actually. Added a flag to determine between SSL and no SSL.
Moved a debug message to the right place.
2012-02-22 18:23:18 +01:00
Klaas Freitag
bc1174cb8a
owncloud: Add ne_ssl_trust_default_ca to trust default certificates.
2012-02-22 18:23:18 +01:00
Klaas Freitag
d7e13276e5
owncloud: Remove the sorting of the dirlist results.
2012-02-22 18:23:18 +01:00
Klaas Freitag
5ba71bbf79
Change module link statement to link against LIBCSYNC.
...
For windows building, the whole csync lib instead of the C standards
only is needed. Not a big difference, so changed for all platforms.
2012-02-22 18:23:18 +01:00
Klaas Freitag
45ec3c0248
owncloud: Removed unused _stat function.
2012-02-22 18:23:18 +01:00
Klaas Freitag
71e110364e
owncloud: added cleanPath and moved _stat_perms.
2012-02-22 18:23:18 +01:00
Klaas Freitag
f56103dc0d
owncloud: Removed unused cleanUrl function.
2012-02-22 18:23:18 +01:00
Klaas Freitag
664f1cb17d
owncloud: some code cleanups.
2012-02-22 18:23:18 +01:00
Klaas Freitag
e320ccf7f8
owncloud: Renames of the vio functions by appending owncloud.
...
That avoids name clashes with MinGW. Patch provided by Dominik Schmidt.
2012-02-22 18:23:18 +01:00
Klaas Freitag
425f4b1cec
owncloud: Some code fixes and more errno corrections.
2012-02-22 18:23:18 +01:00
Klaas Freitag
545115bfae
owncloud: Set proper useragent, fixed some comments and warnings.
2012-02-22 18:23:18 +01:00
Klaas Freitag
936a32295f
owncloud: Added SSL support.
2012-02-22 18:23:18 +01:00
Klaas Freitag
19a485944a
owncloud: added missing close.
2012-02-22 18:23:18 +01:00
Klaas Freitag
7c3544611b
owncloud: Adopted to new owncloud scheme.
2012-02-22 18:23:18 +01:00
Klaas Freitag
07b4fbcf4f
owncloud: Module renamed to owncloud.
2012-02-22 18:23:18 +01:00
Klaas Freitag
e4259719ad
owncloud: Convert webdav -> http in init function.
2012-02-22 18:23:18 +01:00
Klaas Freitag
931a2823f8
owncloud: Fixes in setting errno correctly in stat.
2012-02-22 18:23:18 +01:00
Klaas Freitag
a25c59be94
owncloud: Use the correct property name for lastmodification time.
2012-02-22 18:23:18 +01:00
Klaas Freitag
56d36ae63e
owncloud: Code rearranges and stat call added to stat.
...
Rearranged function sequence and added stat call to parent dir to
function open if file is written to. That allows a proper ENOENT
return value if directory is not yet existing. Fixed more escaping
glitches.
2012-02-22 18:23:18 +01:00
Klaas Freitag
ac01d3a404
owncloud: More memory management fixes and debug output.
2012-02-22 18:23:18 +01:00
Klaas Freitag
1c0275bfee
owncloud: Fixed escaping for url paths, improved error handling.
...
Fixed escaping for url paths, improved error handling and mem
management
2012-02-22 18:23:17 +01:00
Klaas Freitag
17d0b504fa
owncloud: Fixed uri parsing, added escaping, more mem cleanups.
2012-02-22 18:23:17 +01:00
Klaas Freitag
0aed3f57b4
owncloud: Implemented proper auth callback handling. Fixed move request
2012-02-22 18:23:17 +01:00
Klaas Freitag
1c7a286dec
owncloud: Renamed local var for consistency.
2012-02-22 18:23:17 +01:00
Klaas Freitag
fd189b3946
owncloud: Code cleanups.
...
Removed unused variables, fixed some comments, added some memory frees,
removed compile warnings
2012-02-22 18:23:17 +01:00
Klaas Freitag
709d4d560d
owncloud: Reworked read and write to operate on local copies.
...
This creates local temporary files and uses them to transfer the data
(GET and PUT requests).
2012-02-22 18:23:17 +01:00
Klaas Freitag
f4978ad6eb
owncloud: Fix rename: use target path only instead of complete uri.
2012-02-22 18:23:17 +01:00
Klaas Freitag
fc808fa80a
owncloud: Implementation of utimes.
2012-02-22 18:23:17 +01:00
Klaas Freitag
e0deecfa82
owncloud: Set permissions in stat data block correctly.
2012-02-22 18:23:17 +01:00
Klaas Freitag
5f040f4063
owncloud: Simplify code useing c_basename to get filename from path.
2012-02-22 18:23:17 +01:00
Klaas Freitag
7f26533f8e
owncloud: Improve error handling and set errno.
2012-02-22 18:23:17 +01:00
Andreas Schneider
3821e6e472
owncloud: Fix the size field in stat data structure.
2012-02-22 18:23:17 +01:00
Andreas Schneider
7c5e30be99
owncloud: Implement the _stat call correctly.
2012-02-22 18:23:17 +01:00
Andreas Schneider
2f90d5ac6f
owncloud: Fix the _creat function.
2012-02-22 18:23:17 +01:00
Andreas Schneider
d5145e1e0a
owncloud: Add debug messages for _open.
2012-02-22 18:23:17 +01:00
Andreas Schneider
2b15a7b663
owncloud: Implement write function.
2012-02-22 18:23:17 +01:00
Klaas Freitag
8691ce2c7e
module: Start implementing functions using libneon.
...
Implement opendir, readdir, closedir and stat and various minor fixes.
2012-02-22 18:23:17 +01:00
Andreas Schneider
141a095d45
module: Start with some webdav code based on libneon.
2012-02-22 18:23:17 +01:00
Andreas Schneider
f0f36120ad
module: Build the webdav module.
2012-02-22 18:23:17 +01:00
Andreas Schneider
f1647b3338
module: Add a webdav module skeleton.
2012-02-22 18:23:17 +01:00
Andreas Schneider
c2bad8004d
smb: Require newer samba version.
2012-02-04 13:47:00 +01:00
Christian Jann
1fbe6b6c96
Better way to fix bug "Found a bug but no bugtracker"
2011-04-06 17:09:05 +02:00
Andreas Schneider
f46817b2c1
Improved the interactive keyboard auth function.
2010-02-15 12:30:38 +01:00
Andreas Schneider
94b7fdc8ca
Improved the ssh auth functions.
2010-02-15 12:20:57 +01:00
Andreas Schneider
84c77a2d5a
Improve the server is known messages.
2010-02-15 12:10:17 +01:00
Andreas Schneider
3df0eb527f
Require at least libssh 0.4.0.
2010-02-15 11:55:48 +01:00
Andreas Schneider
fdd8236aeb
Migrated sftp module to libssh 0.4.
2010-02-05 12:28:12 +01:00
Andreas Schneider
511635c119
wurst
2010-01-30 00:05:01 +01:00
Andreas Schneider
a46d5101d7
Fixed build warning.
2009-09-12 14:21:44 +02:00
Andreas Schneider
d082c8479e
Require at least version 0.3.3 of libssh.
2009-08-25 10:53:58 +02:00
Andreas Schneider
44e9f4fea8
Fix name conflicts with newer libssh versions.
2009-08-25 10:47:12 +02:00
Andreas Schneider
c0671371ce
Don't leak memory using sftp attributes.
2009-08-25 10:44:34 +02:00
Andreas Schneider
fdea54edc5
Fix the vim modlines.
2009-05-13 10:12:07 +02:00
Andreas Schneider
050b806dc8
Rename FindLibSSH.
2009-05-07 17:00:25 +02:00
Andreas Schneider
1cb6ae6fca
Fix compilation with latest libssh trunk.
2009-04-12 23:58:29 +02:00
Andreas Schneider
42014c9a14
Add support for asking the user to add the server to known_hosts.
2009-03-30 15:06:12 +02:00
Andreas Schneider
fdadbbebab
Rename a variable.
2009-03-26 11:41:10 +01:00
Andreas Schneider
6863ff0255
Switch to libssh 0.3 and add userdata support.
2009-03-26 11:10:37 +01:00
Andreas Schneider
3c618a3d7d
Add possibility to pass userdata to the auth function.
2009-03-26 11:09:46 +01:00
Andreas Schneider
0634e0fdea
Don't require a C++ compiler.
2009-03-18 10:55:14 +01:00
Andreas Schneider
6d20c8b4fc
Install the modules to a version directory.
...
The directory version number is the soversion of the library.
2008-12-16 15:03:57 +01:00
Andreas Schneider
4a2677a539
Add more debug output.
2008-11-05 15:51:18 +01:00
Andreas Schneider
dd52ac837e
Fix libssh connect bug cause of uninitialized port variable.
2008-11-05 15:50:09 +01:00
Andreas Schneider
db9049d198
Add missing line breaks.
2008-11-05 11:12:03 +01:00
Andreas Schneider
50929d6457
Add error message to csync_sftp module.
2008-11-05 10:46:02 +01:00
Andreas Schneider
a825dd3e14
Fix libsmbclient 3.0.x code.
2008-10-29 13:50:04 +01:00
Andreas Schneider
1387904c21
Add NULL check for the auth_cb function.
2008-09-09 15:09:16 +02:00
Andreas Schneider
8b3b57734e
Fix segfault in the modules if running in a pam module.
...
If csync is running in a pam module and the module isn't linked
against the cstdlib, the module segfaults.
2008-09-09 15:07:37 +02:00
Andreas Schneider
959911fa32
Only build the sftp module if libssh is found.
2008-09-04 16:08:50 +02:00
Andreas Schneider
55c17b6832
Fix build warning.
2008-08-22 15:28:09 +02:00
Andreas Schneider
f607dfbefa
Add a basic implemntation for a second sftp module with libssh2.
2008-08-20 18:58:46 +02:00
Andreas Schneider
56a26d8cd0
Revert "Rename the libssh sftp module to have a backup."
...
This reverts commit 12d8ba2c97
.
2008-08-20 18:48:16 +02:00
Andreas Schneider
12d8ba2c97
Rename the libssh sftp module to have a backup.
2008-08-18 09:45:36 +02:00
Andreas Schneider
f984f78198
Use the uri parser of the stdlib.
2008-08-12 15:43:42 +02:00
Andreas Schneider
b5da50b035
Use the auth callback for ssh kbd interaction.
2008-08-12 15:36:14 +02:00
Andreas Schneider
27800adce5
Fix some visual flaws in the auth callback of the client.
2008-08-12 11:18:24 +02:00
Andreas Schneider
95f4db7c4f
Create a more generic authentication callback.
2008-08-11 13:21:15 +02:00
Andreas Schneider
ae304565af
Added password only flag or auth callback.
2008-08-08 17:28:33 +02:00
Andreas Schneider
4b03d4ff78
Linking against the stdlib isn't needed.
2008-08-08 15:58:18 +02:00
Andreas Schneider
e4fc52188d
Finalize the functions for sftp.
...
The authentication with username/password still doesn't work.
2008-08-08 15:57:19 +02:00
Andreas Schneider
d875c8a6fa
More work on the sftp module.
...
The module doesn't really work, cause the sftp functions don't
set any errno.
2008-08-07 14:24:27 +02:00
Andreas Schneider
ecf1027a54
This is a start for a sftp module.
2008-08-06 18:16:54 +02:00
Andreas Schneider
05253be461
Simplify _readdir function of the smb module.
2008-08-06 18:16:08 +02:00
Andreas Schneider
d7309c4ff9
Rename the callback function.
2008-06-24 13:36:27 +02:00
Andreas Schneider
5496d868ca
Restructure code and add some comments.
2008-06-24 10:20:13 +02:00
Andreas Schneider
b73684cc80
Use a static variable for krb5.
2008-06-24 10:19:53 +02:00
Andreas Schneider
4c345d5a80
Allocate memory directly in the module.
...
This fixes a segfault in pam_csync.
2008-06-20 14:39:58 +02:00
Andreas Schneider
cdda179203
Fix kerberos support.
...
libsmbclient calls always the authentication function. So what we have to
do is to try to authenticat with the current credentials.
2008-06-20 14:06:36 +02:00
Andreas Schneider
4ef93cdf17
Add more debug output.
2008-06-20 10:10:19 +02:00
Andreas Schneider
35284ff09e
Set all smbc options before we call smbc_init.
2008-06-19 16:08:53 +02:00
Andreas Schneider
a6b2a4b47d
Add more debug messages.
2008-06-19 15:36:02 +02:00
Andreas Schneider
0f5541ba9a
Initialize global variables in csync_smb module.
2008-06-19 15:35:41 +02:00
Andreas Schneider
ef6633a130
libsmbclient doesn't provide a chown function so disable it.
...
It would be possible to use smbc_setxattr.
2008-06-19 10:32:59 +02:00
Andreas Schneider
8fa73bb8dd
Temporary fix for Samba cause smbc_chown is missing.
2008-06-18 16:29:14 +02:00
Andreas Schneider
0da1133bdb
Return an error if basename fails on uri in stat command.
2008-05-21 16:06:45 +02:00
Andreas Schneider
711f8ff78d
Fix abort, don't free dirent.
2008-05-13 16:02:59 +02:00
Andreas Schneider
7284461931
Don't segfault if the callback is NULL.
2008-05-13 16:02:24 +02:00
Andreas Schneider
4e6a65ab9d
Use the auth callback in the modules.
2008-05-13 13:39:34 +02:00
Andreas Schneider
1b223a355c
Fix build warnings.
2008-05-09 10:57:40 +02:00
Andreas Schneider
e6f4a4cf4b
Add a module dummy for testing.
2008-05-09 10:56:38 +02:00
Andreas Schneider
2fe557af62
Change the debug message.
2008-04-30 13:09:44 +02:00
Andreas Schneider
fb55788e2e
Add support for new libsmbclient interface.
2008-04-29 09:54:29 +02:00
Andreas Schneider
69a4f9f1c1
Change name of link_count to nlink.
2008-04-29 09:07:30 +02:00
Andreas Schneider
cf505c38a5
Add uid and gid fields to csync_vio_file_stat.
2008-04-28 14:22:04 +02:00
Andreas Schneider
be53c0762d
Use a pointer in the utimes functions.
2008-04-25 16:48:28 +02:00
Andreas Schneider
1892d73537
Fix segfaults for read, write and lseek and set errno.
2008-04-25 14:36:24 +02:00
Andreas Schneider
dd6cc1f83c
Fix a segfault if we try to close a nullpointer.
...
Same local or in the smb plugin.
2008-04-25 10:57:35 +02:00
Andreas Schneider
282c915290
Fix a segfault if you pass NULL to closedir.
2008-04-23 17:37:39 +02:00
Andreas Schneider
c281a720b0
Fix the directory handling.
2008-04-23 12:12:02 +02:00
Andreas Schneider
8b31bb70b7
Fix typo.
2008-04-22 12:09:30 +02:00
Andreas Schneider
26bf60720c
Use the right dhandle type of closedir in vio.
2008-04-22 11:27:04 +02:00
Andreas Schneider
0b7dde4934
Complete the smb plugin.
2008-04-16 14:05:13 +02:00
Andreas Schneider
ec5d3afea0
Fix warning about shadowed variables.
2008-04-16 10:32:01 +02:00
Andreas Schneider
269f5f5403
Add readdir function and add some debug messages.
2008-04-10 15:46:17 +02:00
Andreas Schneider
a465f28037
Fix the build.
2008-04-07 18:13:46 +02:00
Andreas Schneider
ab39159607
Add virtual IO plugin system.
...
This is the initial commit of the vio plugin system. The idea is based on
gnomevfs.
2008-04-07 17:16:41 +02:00