Commit graph

183 commits

Author SHA1 Message Date
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