Commit Graph

58 Commits

Author SHA1 Message Date
Thomas Bernard e35ef64459 remove Pragma: no-cache (which is HTTP 1.0) 2024-06-08 22:11:47 +02:00
Self-Hosting-Group 4fbe3ce431 miniupnpc: Fix UPnP UDA 1.1 content-type charset compliance
and user-agent also in asynchronous sample code. The commits a6aa371166 and b557fdf4db were incomplete.

Field value MUST be "text/xml; charset="utf-8"".
Field value MUST be "text/xml; charset="utf-8"" for description documents.
https://openconnectivity.org/upnp-specs/UPnP-arch-DeviceArchitecture-v1.1.pdf
2024-01-08 20:32:51 +01:00
Thomas Bernard 88e3271ad6
miniupnpc-libevent: update minixml.c/.h 2019-04-23 13:31:50 +02:00
Thomas Bernard 96a25871ce
travis-ci: "make check" for all subprojects 2019-04-23 13:13:28 +02:00
Thomas Bernard 41f5475080
update for libevent 2.2 handling of custom HTTP methods
see 8dcb94a4ca
2019-04-16 01:02:37 +02:00
Thomas Bernard e1b4f25bba
upnpreplyparse.c: Fix memory leak
If there are multiple  NewPortListing tags,
there is a malloc() for each one.

fixes #357
2019-04-05 10:30:10 +02:00
Cameron Gutman aaa0ed8c86 ensure SSDP reply headers are not partial matches 2019-01-05 12:24:46 -08:00
Thomas Bernard 2b6fa0839f no more strlen(xxx) == 0.
Fixes #292
2018-04-20 17:19:52 +02:00
yangfl 2b0a6dd163 Makefile: Use crosscompile target as OS 2018-02-03 11:29:58 +08:00
yangfl d492fa39ef fix typo 2018-01-09 09:33:31 +08:00
zying16 e24d7eca28 fix error of wrong matched parentheses in miniupnpc-libevent/miniupnpc-libevent.c 2017-07-24 10:53:30 +02:00
Thomas Bernard 0877a65ed6 add a few checks 2016-03-29 17:34:12 +02:00
Thomas Bernard 95a75b6dd0 see 9bf5a0bd90 2015-10-10 11:52:38 +02:00
Thomas BERNARD c115f7ed88 use pkg-config 2015-10-02 18:57:53 +02:00
Thomas BERNARD a5fa14b9b6 dont define _POSIX_C_SOURCE under OS X and FreeBSD 2015-10-02 18:53:21 +02:00
Thomas Bernard e1f7a63044 adapt code to new libevent method extension 2015-09-15 23:28:59 +02:00
Thomas Bernard 2f5cc79033 igd_desc_parse.c: fix buffer overflow 2015-09-15 16:15:30 +02:00
Thomas Bernard 1dcab82a7b check memory allocation
see a3179fb284
2015-07-22 15:53:07 +02:00
Thomas Bernard 4be2f4c9b5 miniupnpc-libevent: set multicast TTL to 2 2015-07-22 15:52:33 +02:00
Chocobo1 d78ccf931a Fix compilation on TravisCI 2015-07-19 21:36:09 +08:00
Chocobo1 216dd5e905 Remove libminiupnpc-ev.a when "make clean" 2015-06-10 18:15:00 +08:00
Daniel Winzen ba753120df Fix memory leaks 2015-04-28 08:44:13 +02:00
Thomas Bernard 37c649257b miniupnpc-libevent.c: check req argument in callbacks 2015-02-05 18:59:44 +01:00
Thomas Bernard 18ae95e101 miniupnpc-libevent.c: fix debug_printf() void definition 2015-01-01 19:39:08 +01:00
Thomas Bernard e644f219fa miniupnpc-libevent: check SID and other headers in event NOTIFY 2014-12-13 19:10:39 +01:00
Thomas Bernard 1b4f132284 miniupnpc-libevent: "fix" debug_printf() if DEBUG not defined. 2014-12-12 19:09:48 +01:00
Thomas Bernard 7f47555c66 miniupnpc-libevent: subscribe and receive UPNP events !
enable with -DENABLE_UPNP_EVENTS
libevent need to support SUBSCRIBE and NOTIFY requests
see https://github.com/miniupnp/libevent/tree/upnp_ext
2014-12-12 19:08:00 +01:00
Thomas Bernard 64578041bd miniupnpc-libevent: include port in Host HTTP header if != 80 2014-12-12 19:03:28 +01:00
Thomas Bernard 1217512a32 miniupnpc-libevent: upnpc_set_local_address() 2014-12-12 18:58:06 +01:00
Thomas Bernard 37c4f7dda1 miniupnpc-libevent.c: free event_cif_url/event_conn_url
see 2455cc85b6
2014-12-12 18:56:06 +01:00
Thomas Bernard 4966cf7166 miniupnpc-libevent.h: remove unused definitions 2014-12-12 18:39:05 +01:00
Thomas Bernard f7ec0e17c3 miniupnpc-libevent: split upnpc_init() / upnpc_start() 2014-12-12 18:37:54 +01:00
Thomas Bernard 2455cc85b6 miniupnpc-libevent: add event_cif_url/event_conn_url 2014-12-08 17:24:25 +01:00
Thomas Bernard 215b357e55 miniupnpc-libevent: prevent several SOAP request at the same time. 2014-12-08 17:23:29 +01:00
Thomas Bernard 8868eb7299 miniupnpc-libevent.c: minor modifications in logging 2014-12-06 12:20:24 +01:00
Thomas Bernard a509abb371 miniupnpc-libevent/upnpc-libevent.c: improve output 2014-12-02 15:09:39 +01:00
Thomas Bernard 2fd247bcbc miniupnpc-libevent.c: make sure b < i and vars are initialized 2014-12-02 15:09:20 +01:00
Thomas Bernard 9fa6e70a55 miniupnpc-libevent: #define MINIUPNPC_LIBEVENT_API_VERSION 1 2014-12-02 14:48:39 +01:00
Thomas Bernard 12e49bda0d miniupnpc-libevent.c: set UPNPC_DEVICE_SOAP_REQ properly 2014-12-01 18:48:03 +01:00
Thomas Bernard c021d7351f miniupnpc-libevent: add ability to work on several devices simultaneously 2014-12-01 18:44:38 +01:00
Thomas Bernard 2b233cdf69 miniupnpc-libevent.c: add double quotes (") around SOAPAction 2014-11-28 14:28:17 +01:00
Thomas Bernard c9e71676a8 miniupnpc-libevent/Makefile: add /usr/local/include and /usr/local/lib 2014-11-28 14:26:21 +01:00
Thomas Bernard 8325b715d3 miniupnpc-libevent: handle error cases 2014-11-25 23:51:59 +01:00
Thomas Bernard b642e74124 miniupnpc-libevent.c: upnpc_conn_close_cb() only in DEBUG mode 2014-11-25 23:50:56 +01:00
Mike Gelfand c490b42547 Fix _POSIX_C_SOURCE definition
Current code makes use of `snprintf` function defined in C99 standard
but _POSIX_C_SOURCE is set to "1" which is not correct. To access C99
definitions, this macro should be set to at least "200112L".

Also, `strncasecmp` function is being used but corresponding <strings.h>
header is not being included in miniwget.c.

Changes have been tested on FreeBSD 10.1 amd64 with default compiler
(Clang).
2014-11-19 17:06:14 +03:00
Thomas Bernard d4bf4c7572 miniupnpc-libevent: add upnpc_get_status_info() 2014-11-18 10:31:59 +01:00
Thomas Bernard b6896d5c08 miniupnpc-libevent: WIN32 => _WIN32 2014-11-17 20:33:11 +01:00
Thomas Bernard d44d16a688 igd_desc_parse.c: define printIGD() only in DEBUG 2014-11-17 20:32:41 +01:00
Thomas Bernard fa414c5bb6 allow to build miniupnpc-libevent with MacPorts 2014-11-17 17:29:52 +01:00
Thomas Bernard 7264fa53a9 miniupnpc-libevent: remove unecessary files 2014-11-17 17:29:24 +01:00