summaryrefslogtreecommitdiff
path: root/src/mtpz.c
Commit message (Collapse)AuthorAgeFilesLines
* removed some unsigned warningsMarcus Meissner2021-01-011-2/+2
|
* mtpz: fix couple of memory leaksReverend Homer2018-11-301-0/+8
| | | | | | | [src/mtpz.c:1643]: (error) Memory leak: hash_key [src/mtpz.c:1589]: (error) Memory leak: v10 [src/mtpz.c:1589]: (error) Memory leak: v11 [src/mtpz.c:1739]: (error) Memory leak: odata
* added a missing return for unknown keysizes (GCC7)Marcus Meissner2017-06-021-12/+13
|
* do not report missing .mtpz-data files, most common outputMarcus Meissner2015-04-011-4/+0
| | | | line ever.
* Fixed the style of the if-statement in mtpz_loaddata()Reverend Homer2015-03-231-99/+98
| | | | | | | | | | | | | | | | | | | | | | | | This commit replaces this block if (ret == PTP_RC_OK) { /* lots of code */ } else { LIBMTP_INFO("failure!\n"); } with this if (ret != PTP_RC_OK) { LIBMTP_INFO("failure!\n"); return ret; } /* lots of code */ So, it makes the code more readable
* further cleanups on top of last cleanupMarcus Meissner2015-03-201-7/+5
|
* Fixed resource leak in mtpz_loaddataReverend Homer2015-03-201-7/+17
| | | | Signed-off-by: Reverend Homer <mk.43.ecko@gmail.com>
* Revert "De-externalize use_mtpz."libmtp-1-1-7Linus Walleij2014-08-241-2/+0
| | | | | | This reverts commit 8f5da8fc9050448ca5da4ffeb4796e9e6eca8a35. Signed-off-by: Linus Walleij <triad@df.lth.se>
* zeroize mtpz_rsa_t properlySami Farin2014-08-241-2/+3
| | | | Signed-off-by: Linus Walleij <triad@df.lth.se>
* De-externalize use_mtpz.Linus Walleij2014-06-031-0/+2
| | | | Signed-off-by: Linus Walleij <triad@df.lth.se>
* Print a newline after "MTPZ disabled" messagesWieland Hoffmann2014-06-021-9/+9
| | | | | Signed-off-by: Wieland Hoffmann <themineo@gmail.com> Signed-off-by: Linus Walleij <triad@df.lth.se>
* Use LIBMTP_ERROR instead of LIBMTP_INFO in mtpz_loaddataRobert Milasan2013-11-061-9/+9
| | | | | | | | | | | | | Use LIBMTP_ERROR instead of LIBMTP_INFO in mtpz_loaddata, otherwise if we encounter an error while generating the udev rule, the error message will end-up to be part of the rule as LIBMTP_INFO uses stdout. linux-qdip:~ # head -3 /usr/lib/udev/rules.d/69-libmtp.rules Unable to open ~/.mtpz-data for reading, MTPZ disabled.# UDEV-style hotplug map for libmtp Signed-off-by: Robert Milasan <rmilasan@suse.com> Signed-off-by: Linus Walleij <triad@df.lth.se>
* Fix building libmtp with older GCC versions / non GCC compilersBrad Smith2013-03-161-8/+19
| | | | | | Here is an updated diff also build tested with gcc 4.6. Signed-off-by: Brad Smith <brad@comstyle.com>
* Small MTPZ-free updateLinus Walleij2013-02-241-0/+2
| | | | Signed-off-by: Linus Walleij <triad@df.lth.se>
* Fix to some MTPZ error messagesLinus Walleij2012-09-291-9/+9
| | | | Signed-off-by: Linus Walleij <triad@df.lth.se>
* Fixup and disclaimer.Linus Walleij2012-09-021-3/+21
| | | | Signed-off-by: Linus Walleij <triad@df.lth.se>
* Initial MTPZ support.Sajid Anwar2012-08-251-0/+1796
Signed-off-by: Sajid Anwar <sajidanwar94@gmail.com>