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