| 3ceea5cc |
obexd: Fix type of read_status in message_filter |
Slawomir Bochenski |
13 years ago |
1 file, +1, -1 |
| 2716950f |
obexd: Add typedef for folder listing callback |
Slawomir Bochenski |
13 years ago |
2 files, +5, -4 |
| 8db017fe |
obexd: Rename dbus.h to manager.g |
Johan Hedberg |
13 years ago |
13 files, +46, -49 |
| 08180773 |
obexd: Remove g_obex_packet_find_header
This was exactly the same as g_obex_packet_get_header. |
Johan Hedberg |
13 years ago |
1 file, +1, -1 |
| 9a12077a |
obexd: Add basic support for message retrieval |
Slawomir Bochenski |
13 years ago |
3 files, +55, -5 |
| 7c98394a |
obexd: Extend functions parameter list for vCard's format
This patch extends some functions ("get_escaped_fields" and some from
"vcard_printf_*" family) parameter list for format value, since it would
be needed to select escaping and encoding method, depending on vCard's
type (vCard 2.1 or vCard 3.0). |
Rafal Michalski |
13 years ago |
1 file, +12, -11 |
| 902ba758 |
obexd: Rename obex_dbus_get_connection to manager_dbus_get_connection |
Johan Hedberg |
13 years ago |
3 files, +4, -4 |
| 2a14f573 |
obexd: Clean up header files |
Johan Hedberg |
13 years ago |
13 files, +23, -18 |
| 0e31d0f5 |
obexd: port to gobex
This remove gwobex dependency of the client using gobex instead.
Based on initial work by Johan Hedberg <johan.hedberg@intel.com> |
Luiz Augusto von Dentz |
13 years ago |
8 files, +493, -274 |
| 2b3644a9 |
obexd: Simplify counting new missed calls
This replaces parsing missed calls listing that was used to get the number of
missed calls that have been unread with a simple SPARQL query.
Previous code was trying to deal with misbehaviour of commhistoryd but still
was failing in some cases. commhistoryd is now fixed. |
Slawomir Bochenski |
13 years ago |
1 file, +22, -83 |
| 984a6511 |
obexd: Fix missing NULL check in agent_cancel
The agent_cancel function can potentially be called when there's no
agent registered, so there should be proper handling of this situation. |
Johan Hedberg |
13 years ago |
1 file, +3, -0 |
| aaecee59 |
obexd: Fix condition for skipping folders |
Slawomir Bochenski |
13 years ago |
1 file, +1, -1 |
| 75478b5a |
obexd: Folder listing support
This adds a basic (lacking parsing or sending back application
parameters) handling of folder listing requests for Message Access
Profile. |
Slawomir Bochenski |
13 years ago |
1 file, +125, -2 |
| 5d82d4e2 |
obexd: Add MIME drivers
This adds drivers for MIME types needed in Message Access Profile. The
target-default driver is also kept to prevent MIME driver selection
mechanism to get to default driver from filesystem.c which would result
in allowing putting files in arbitrary locations when connected to MAP
target.
The any_open() bindings in MIME drivers are going to be successfully
replaced by appropriate calls for specific functionality. |
Slawomir Bochenski |
13 years ago |
1 file, +89, -12 |
| df0740c3 |
obexd: phonebook-tracker.c: Calls query speed-up
Another change regarding performance of call history queries. This makes
them non-sensitive (in terms of speed) to the corner case situations when
there are hundreds of contacts all having the same phone number. |
Slawomir Bochenski |
13 years ago |
1 file, +3, -3 |
| 501fa352 |
obexd: add FileTransfer.MoveFile implementation |
Luiz Augusto von Dentz |
13 years ago |
1 file, +18, -0 |
| 8d3d7105 |
obexd: Fix handling asynchronous plugin reads
Calling OBEX_ResumeRequest() from handle_async_io() may result in direct
calling obex_event_cb() (this happens when obex_write_stream() will
deliver not enough bytes to fully fill OpenOBEX TX packet). In this case
set_io_watch will fail if handle_async_io() is called from
obex_object_set_io_flags(), because the watch is already installed.
Originally when code returns from OBEX_ResumeRequest(), handle_async_io()
returns FALSE which makes obex_object_set_io_flags() remove this watch.
This patch adds variable for tracking whether subsequent calls suspended
get request, causing obex_object_set_io_flags() remove the watch only
when the request is not suspended.
Additionaly member 'streaming' of obex_session has been renamed to
'stream_open'. |
Slawomir Bochenski |
13 years ago |
2 files, +11, -6 |
| 6b7b19c9 |
obexd: add FileTransfer.CopyFile implementation |
Luiz Augusto von Dentz |
13 years ago |
1 file, +18, -0 |
| 15f6d2e1 |
obexd: Remove gwobex
Not needed anymore since obex-client now uses gobex. |
Johan Hedberg |
13 years ago |
9 files, +0, -3307 |
| 3fbffebe |
obexd: add sync target
sync target implements sync driver |
Luiz Augusto von Dentz |
13 years ago |
4 files, +69, -20 |
| 044d002f |
obexd: add ftp target
ftp target implements file transfer and Nokia Pc Suite drivers. |
Luiz Augusto von Dentz |
13 years ago |
4 files, +92, -23 |
| 9e64065e |
obexd: add opp target
opp target implements object push driver |
Luiz Augusto von Dentz |
13 years ago |
3 files, +80, -0 |
| 29eb13b1 |
obexd: make use of obc_ prefix for public functions
This should indicate more clearer which function are public to the
drivers. |
Luiz Augusto von Dentz |
13 years ago |
12 files, +355, -353 |
| ec0e7836 |
obexd: move __obex_log_init before manager_init
This enables us to log target during initialization |
Luiz Augusto von Dentz |
13 years ago |
2 files, +4, -4 |
| 7605e6c8 |
obexd: add target module vtable
New targets/profiles can be introduced by just adding an entry to the
table and register their drivers similarly to a plugin. |
Luiz Augusto von Dentz |
13 years ago |
1 file, +21, -0 |
| 5a3f6cd0 |
obexd: Fix error variable naming in opp.c |
Johan Hedberg |
13 years ago |
1 file, +7, -8 |
| 18b9c5d7 |
obexd: Fix memory leak in opp plugin
Folder and name can point to allocated memory so they need to be freed
before returning.
Thanks for Daniele Forsi <dforsi@gmail.com> for reporting it. |
Luiz Augusto von Dentz |
13 years ago |
1 file, +6, -2 |
| 10281f54 |
obexd: Fix coding style issues in phonebook-ebook.c |
Johan Hedberg |
13 years ago |
1 file, +40, -56 |
| 0b9e5030 |
obexd: Fix callback logic in EDS PBAP
It seems that e_book_cancel (in libebook) is broken -- it should return
TRUE when request is canceled and FALSE otherwise, but after
"successfully" canceling async request, supplied callback is still
called without any error. |
Bartosz Szatkowski |
13 years ago |
1 file, +38, -18 |
| 71ff4c78 |
obexd: Fix memory issues in EDS PBAP |
Bartosz Szatkowski |
13 years ago |
1 file, +13, -6 |
| 42b2b55f |
obexd: Use 'nice abort' when canceling outgoing OPP transfer
Previously client was suddenly disconnecting to cancel
outgoing OPP transfer. Now ABORT command will be sent
before disconnecting with server in that scenario.
This change is required to pass TC_CLIENT_OPH_BV_27_I PTS
test case (not mandatory for qualification). |
Radoslaw Jablonski |
13 years ago |
1 file, +0, -8 |
| e976fc0a |
obexd: add pbap target
pbap target implements phonebook access driver |
Luiz Augusto von Dentz |
13 years ago |
4 files, +70, -22 |
| 590fd450 |
obexd: add target driver support
This simplify target matching to a single place making it easier to add
new targets/profiles.
Matching is done by either friendly name e.g. opp, ftp... or Bluetooth
UUID.
Drivers are probed when a session is established and removed when the
session is destroyed. |
Luiz Augusto von Dentz |
13 years ago |
6 files, +180, -67 |
| c32fc4f0 |
obexd: Fix missing Name header check in FTP action code |
Slawomir Bochenski |
13 years ago |
1 file, +3, -0 |
| 7576ca81 |
obexd: Fix handling vCard type "OTHER" emails in PBAP
Until now contacts with emails, without type specified, were not included
in vCards. Also default type for vCard 3.0 is set to "OTHER" - not
empty field as it is in vCard 2.1. |
Bartosz Szatkowski |
13 years ago |
2 files, +4, -4 |
| c38a2231 |
obexd: Fix several issues in FTP action support
Fixed issues:
- Incorrect handling of absolute path in DestName header
- Possibility of exploiting DestName header to escape FTP plugin root
- Incorrect checking of whether path resides inside FTP root (not
allowing to move or copy files up)
- Ignoring symbolic links and options regarding them |
Slawomir Bochenski |
13 years ago |
1 file, +55, -6 |
| ed7441b8 |
obexd: Add Name header check to ftp_chkput
Validation of Name header was missing from ftp_chkput, thus still allowing
actual putting. |
Slawomir Bochenski |
13 years ago |
1 file, +3, -0 |
| c3dee209 |
obexd: separate manager interface code from main
Move manager interface code to it own file. |
Luiz Augusto von Dentz |
13 years ago |
3 files, +618, -536 |
| 22c7e9f3 |
obexd: separate agent code from session
This should improve modularization of code |
Luiz Augusto von Dentz |
13 years ago |
3 files, +325, -143 |
| b5c28914 |
obexd: make transfer structure private
This make it easier to modularize obex-client |
Luiz Augusto von Dentz |
13 years ago |
6 files, +162, -93 |
| d06d2088 |
obexd: make session structure private
Session data should not be acessible directly otherwise it cause too
much dependency by profile specific code which is quite inefficient in
the long term. |
Luiz Augusto von Dentz |
13 years ago |
9 files, +351, -257 |
| ad39aef8 |
obexd: Make use of g_slist_free_full when elements are dynamically-allocated
This avoid having to iterate twice in the list to free its elements. |
Luiz Augusto von Dentz |
13 years ago |
7 files, +55, -25 |
| 6b5d954e |
obexd: Fix valid file name checks for FTP & OPP
Until now adversary could exploit OBEX Name header and perform any kind
of operations (listing, getting, putting) outside of given root by
putting path with ".." components inside this header. |
Slawomir Bochenski |
13 years ago |
4 files, +28, -1 |
| 1729ca86 |
obexd: Make mime type matching case-insensitive
This makes mime type checking performed inside plugins case-insensitive, to
be in line with d37af12d8cb76d1eb893955938cb6475333dddb9. |
Slawomir Bochenski |
13 years ago |
3 files, +5, -5 |
| da050e84 |
obexd: Simplify symbolic links support
This patch changes the way the symbolic links are treated by FTP, making
code a bit simpler and FTP more intuitive.
Previously symlinks were supposed to be disallowed unless the -l option
was used, and with that option, only symlinks present directly inside
root folder were followed. This did not work for file links, as fstat()
check on open()-ed won't result in S_IFLNK set, so symbolic links to
files were followed regardless to options.
Now links inside root folder are always allowed. Without -l (--symlinks)
option, following them is only allowed when the resulting real path is
still inside the given root directory. When -l is given, all symlinks
are followed. |
Slawomir Bochenski |
13 years ago |
4 files, +48, -35 |
| fd15f3a2 |
obexd: separate ftp code from session
This should improve modularization of code |
Luiz Augusto von Dentz |
13 years ago |
3 files, +415, -319 |
| 2865321b |
obexd: Fix finding mime driver by type
IrOBEX specification chap. 2.2.3 states that the Type header is an ASCII
null-terminated string whose values are case insensitive (as it is also
defined by RFC 1521). |
Slawomir Bochenski |
13 years ago |
1 file, +8, -1 |
| fe58f1fc |
obexd: Fix writing out of bounds in add_slash func
For long input string there was possibility to write out
of "dest" buffer. It usually ended with obexd crash little
later in some random place. |
Radoslaw Jablonski |
13 years ago |
1 file, +17, -1 |
| e438e2a6 |
obexd: Fix crash in irmc.c for vCard 0
If getting the number of vCard is 0 in sync server, obexd will crash.
The reason is that null point is used in query_result of irmc.c. |
Zheng Wu |
13 years ago |
1 file, +4, -0 |
| 11ba40a6 |
obexd: Fix pulling phonebook size |
Bartosz Szatkowski |
13 years ago |
1 file, +5, -5 |