summaryrefslogtreecommitdiff
path: root/obexd
Commit message (Collapse)AuthorAgeFilesLines
...
* obexd: Fix cross includes from client and pluginsMarcel Holtmann2015-03-0127-93/+91
|
* obexd: Fix includes for gobex.h headerMarcel Holtmann2015-03-015-8/+10
|
* obexd: Fix includes for gdbus.h headerMarcel Holtmann2015-03-0115-19/+29
|
* obexd: Use local libbluetooth includesMarcel Holtmann2015-02-285-16/+22
|
* obexd: Add explicit include for lib/bluetooth.hMarcel Holtmann2015-02-181-1/+2
|
* obexd/client: Add check for invalid pathLuiz Augusto von Dentz2015-02-131-0/+6
| | | | This adds a check for invalid paths in obc_session_setpath.
* obexd: List all enum values in switchSzymon Janc2014-12-082-0/+4
| | | | As described in coding style M10.
* obexd: Fix comparing array to NULLAndrei Emeltchenko2014-12-041-9/+0
| | | | An array can never be NULL.
* obexd: Fix memory leak not freeing descAndrei Emeltchenko2014-12-041-6/+5
| | | | | descs->data might be NULL while is descs not. Follow scheme in src/profile.c (in get_profile_version() function).
* obexd/client: Add supported_features supportLuiz Augusto von Dentz2014-12-023-1/+61
| | | | | | | | | | This adds supported_features support to obc_driver so driver can provide this information when connecting. This is required by PBAP 1.2 (page 48): 'Mandatory if the PSE advertises a PbapSupportedFeatures attribute in its SDP record, else excluded.'
* obexd/client: Add UpdateVersion to PhonebookAccessLuiz Augusto von Dentz2014-12-021-3/+20
| | | | This adds UpdateVersion method to PhonebookAccess interface.
* obexd/client: Add FixedImageSize propertyLuiz Augusto von Dentz2014-12-021-0/+19
| | | | This adds FixedImageSize property to PhonebookAccess interface.
* obexd/client: Add folder counters propertiesLuiz Augusto von Dentz2014-12-021-0/+89
| | | | | This adds PrimaryCounter and SecondaryCounter properties to PhonebookAccess interface.
* obexd/client: Add DatabaseIdentifier propertyLuiz Augusto von Dentz2014-12-021-2/+69
| | | | This adds DatabaseIdentifier property to PhonebookAccess interface.
* obexd/client: Add Folder propertyLuiz Augusto von Dentz2014-12-021-1/+31
| | | | This adds Folder property to PhonebookAccess interface.
* obexd/client: Parse PBAP recordLuiz Augusto von Dentz2014-12-021-0/+48
| | | | | This add parsing to PBAP record to extract version and supported features.
* obexd/client: Add support for reading versionLuiz Augusto von Dentz2014-12-021-0/+21
| | | | | This adds support for reading profile version via SDP_ATTR_PFILE_DESC_LIST
* pbap: Fix When MaxListCount header missingAnurag Biradar2014-12-011-0/+6
| | | | | As per spec(5.3.4.4) when MaxListCount headser is missing then PSE should assume MaxListCount value as MAX (65535)
* obexd: Fix crash while session shutdownRakesh M K2014-11-261-1/+1
| | | | | | | | | | | | | | | | g_str_equal has been used for the session path compare which is not NULL-safe. Used the g_strcmp0() for the NULL-Safe string comparision. *#0 strcmp (p1=0x0, p2=0x7105c "/org/bluez/obex/client/session0") * at strcmp.c:38 *#1 0xb6e0cd0a in g_str_equal (v1=<value optimized out>, * v2=<value optimized out>) at ghash.c:1704 *#2 0x000264d8 in find_session (connection=<value optimized out>, * message=0x55b38, user_data=<value optimized out>) * at obexd/client/manager.c:162 *#3 remove_session (connection=<value optimized out>, message=0x55b38, user_data=<value optimized out>) at obexd/client/manager.c:231
* obexd/ftp: Handle transfer reset for FTPBharat Panda2014-11-041-1/+9
| | | | | Changes made to emit transfer completed to .Transfer1 interface on ftp reset.
* obexd/ftp: Add support for tracking transfersBharat Panda2014-10-311-0/+20
| | | | This enables transfer management for FTP connections.
* obexd/mas: Handle register notification openBharat Panda2014-10-291-1/+29
| | | | Changes made to handle method open for mime_notification_registration
* obexd/mas: Add Support for MSETime filterBharat Panda2014-10-221-0/+38
| | | | | Changes made to add support for MSE local time and timezone offset parameter along with GetMessageListing response.
* obexd/map: Add support for MAP feature bitsGowtham Anandha Babu2014-10-221-0/+9
| | | | | Handles MAP supported feature bits as per the MAP 1.2 specs section 7.1.1.
* obexd: Fix coding style and improves readabilityGowtham Anandha Babu2014-10-161-2/+4
|
* obexd/client/pbap: Add missing filter entriesGowtham Anandha Babu2014-10-161-0/+3
| | | | | | | Adds the following filter entries: 1) Speed-dial 2) Uniform Caller Identifier 3) Unique Identifier
* obexd/client/pbap: Add support for spd,favGowtham Anandha Babu2014-10-162-3/+12
| | | | Add support for the speed-dial and favorite folders.
* obexd: Fix compilation error with muslSzymon Janc2014-09-241-1/+1
| | | | | | | | | | | | CC obexd/plugins/obexd-filesystem.o In file included from obexd/plugins/filesystem.c:40:0: /usr/include/wait.h:1:2: error: #warning redirecting incorrect #include <wait.h> to <sys/wait.h> [-Werror=cpp] #warning redirecting incorrect #include <wait.h> to <sys/wait.h> ^ cc1: all warnings being treated as errors Makefile:6447: recipe for target 'obexd/plugins/obexd-filesystem.o' failed make[1]: *** [obexd/plugins/obexd-filesystem.o] Error 1
* obexd: Fix the double check for agentGowtham Anandha Babu2014-09-221-2/+1
| | | | Removes the check for NULL agent.
* obexd/client: Add support for MAP Event Report 1.1Gowtham Anandha Babu2014-09-172-0/+40
| | | | | This adds support for Event Report 1.1 of MAP 1.2 which includes the following atributes: Subject, datetime, sender_name, priority.
* obexd/client/map: Check msg value is validGowtham Anandha Babu2014-09-161-1/+2
| | | | Checks for NULL value before passing to the callback.
* obexd/mns: Check event value is validLuiz Augusto von Dentz2014-09-151-10/+2
| | | | This adds a common check before passing the event value to the callback.
* obexd/client: Fix leaking memory on MNSLuiz Augusto von Dentz2014-09-151-0/+8
| | | | | In case an event is received twice, due to remote side misbehaving or not, it would leak the previous data.
* obexd/mas: Fix crash when outparams is NULLLuiz Augusto von Dentz2014-09-031-0/+3
| | | | | outparams can be NULL meaning no application parameters should be added to the response.
* obexd/mas: Fix parsing of application parametersLuiz Augusto von Dentz2014-09-031-6/+18
| | | | | Some commands don't have any mandatory application parameter which means inparams can be NULL which should not be treated as a bad request.
* obexd/client: Fix crash while disconnectingLuiz Augusto von Dentz2014-08-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | In case the transport is disconnected while disconnect command is pending the session is freed on disconnect_complete but disconnect callback is still valid causing the following crash: Invalid read of size 4 at 0x42682A: obc_session_ref (session.c:132) by 0x42797B: obc_session_shutdown (session.c:580) by 0x4139DA: incoming_data (gobex.c:1406) by 0x59712A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x5971627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x5971A39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x40D78C: main (main.c:320) Address 0x728d814 is 4 bytes inside a block of size 120 free'd at 0x4C28577: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x5976F7E: g_free (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4134B9: handle_response (gobex.c:1129) by 0x4139BD: incoming_data (gobex.c:1403) by 0x59712A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x5971627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x5971A39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x40D78C: main (main.c:320)
* obexd/client: Fix not being able to cancel a suspended transferLuiz Augusto von Dentz2014-08-291-0/+9
| | | | | If a transfer is suspended it should be resumed before cancelling otherwise it will timeout.
* obexd/client: Allow suspending transfer while they are queuedLuiz Augusto von Dentz2014-08-291-9/+38
| | | | | Transfer may be created by different processes so it make sense to allow them to be suspended even if they are not active.
* obexd: Fix possible NULL dereferenceAndrei Emeltchenko2014-08-131-4/+2
| | | | | | | | | | | | | | Remove snprintf error check. Fixes clang warnings below: ... obexd/client/map.c:471:9: warning: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'err') err->message); ^~~~~~~~~~~~ obexd/client/map.c:772:9: warning: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'err') err->message); ^~~~~~~~~~~~ ...
* obexd: Fix memory leakAndrei Emeltchenko2014-08-041-2/+5
| | | | Fixes memory leak for message_listing_cb()
* obexd: Fix memory leakAndrei Emeltchenko2014-08-041-2/+5
| | | | Fixes memory leak for folder_listing_cb().
* obexd: Fix treating PUT with Body header as deleteLuiz Augusto von Dentz2014-04-231-0/+4
| | | | | | | | | | | Requests have the size set to OBJECT_SIZE_DELETE but if the request has a body header the size should be set to OBJECT_SIZE_UNKNOWN as it no longer can be considered a delete request: "3.4.3.6 Put-Delete and Create-Empty Methods A PUT operation with NO Body or End-of-Body headers whatsoever should be treated as a delete request."
* obexd/client: Fix calling g_obex_cancel_req for completed requestsLuiz Augusto von Dentz2014-04-081-0/+1
| | | | | | | | | | | | | | | | | This leads to incorrect responses such as the following: > ACL data: handle 12 flags 0x02 dlen 26 L2CAP(d): cid 0x0041 len 22 [psm 3] RFCOMM(d): UIH: cr 0 dlci 38 pf 0 ilen 18 fcs 0xfd OBEX: Get rsp(f): status 200 len 18 Status 200 = Success Connection ID (0xcb) = 1 App. Parameters (0x4c) = Sequence length 4 End of Body (0x49) = Sequence length 0 < ACL data: handle 12 flags 0x00 dlen 11 L2CAP(d): cid 0x0040 len 7 [psm 3] RFCOMM(d): UIH: cr 1 dlci 38 pf 0 ilen 3 fcs 0x27 OBEX: Get rsp(f): status 715 len 3
* obexd: Remove code related to OBEX authenticationLuiz Augusto von Dentz2014-03-311-91/+0
| | | | | gobex can now generate responses authentication challenge so this code is no longer needed.
* obexd/client: Fix not sending OBEX Disconnect when disconnectingLuiz Augusto von Dentz2014-03-211-2/+32
| | | | | Sending OBEX Disconnect command before disconnecting the transport is mandatory.
* obexd/client: Fix not being able cancel GET requestsLuiz Augusto von Dentz2014-03-201-2/+16
| | | | | | | In case of GET operation the code does not use g_obex_get_req_pkt since the beggining to be able to read the header from the first response, this means that the request should be cancel with g_obex_cancel_req not with g_obex_cancel_transfer.
* obexd/transfer: Add Transfer.Resume methodLuiz Augusto von Dentz2014-02-201-0/+25
| | | | This method can be used to resume ongoing transfers.
* obexd/transfer: Add Transfer.Suspend methodLuiz Augusto von Dentz2014-02-201-13/+47
| | | | This method can be used to suspend ongoing transfers.
* pbap: Fix PhonebookSize endiannessHannu Mallat2014-02-051-2/+2
| | | | | As g_obex_apparam_set_uint16() converts data to big-endian format internally, do not call htons() prior to it.
* obexd: Make btio/btio.h include localMarcel Holtmann2014-01-255-5/+7
|