summaryrefslogtreecommitdiff
path: root/gweb
Commit message (Collapse)AuthorAgeFilesLines
...
* gweb: Add null pointer checks to avoid connman unstabilityThierry Boureille2012-01-051-2/+7
| | | | | Fix null pointer derefencing in "free_session" and "process_send_buffer" functions
* gweb: Extend gweb to send fileRonald Tessier2011-12-182-6/+80
|
* gweb: Bind socket to the right interfaceTomasz Bursztyka2011-11-281-0/+17
|
* gresolv: Bind socket to the right interfaceTomasz Bursztyka2011-11-281-2/+22
|
* gweb: Use gcc atomics instead glib's onesDaniel Wagner2011-11-103-10/+10
| | | | | | | | | | g_atomic_int_exchange_and_add() has been removed from glib 2.30 and g_atomic_int_add() should be used. Though there are still quite a few distros out which do not ship a glib version with g_atomic_int_add(). Instead of maintaing a compatiblilty glib layer we just use the built-in functions for atomic memory access.
* gweb: Add SOCK_CLOEXEC to socket()Daniel Wagner2011-10-252-2/+4
| | | | Make sure all file descriptor are closed.
* gresolv: Fix buffer sizeJukka Rissanen2011-09-121-3/+5
| | | | | Make buf just big enough and initialize it in order to get rid of valgrind error (accessing uninitialized memory).
* gweb: Fix gnutls_priority_set_direct() for various GnuTLS versionsMarcel Holtmann2011-07-241-3/+5
|
* gweb: Apply address family restiction to resolverTomasz Bursztyka2011-07-061-0/+2
|
* gresolv: Queries address family scope restrictionTomasz Bursztyka2011-07-062-8/+35
| | | | | Adding the capability to restrict DNS queries to a specific address family through gresolv_set_address_family(). By default, AF_UNSPEC is applied.
* gweb: Use GnuTLS priority string to provide wide compatibilityLucas De Marchi2011-07-011-1/+2
| | | | | | | | This priority string will only enable SSL 3.0 and TLS 1.0 as protocols and will disable, via the %COMPAT keyword, several TLS protocol options that are known to cause compatibility problems. Reference: http://www.gnu.org/software/gnutls/manual/html_node/Interoperability.html#Interoperability
* gweb: Remove call to deprecated GnuTLS functionLucas De Marchi2011-07-011-0/+2
| | | | | | | If we use gnutls 2.12.0 or later it's necessary to call gnutls_transport_set_lowat() to disable the lowat functionality. Since this function is deprecated in new versions of gnutls, call it only if using an older version.
* gweb: added the capability to restrict the requests to a specific address ↵Tomasz Bursztyka2011-06-272-0/+21
| | | | family.
* gweb: Make debug for write simplerMarcel Holtmann2011-06-131-4/+2
|
* gweb: Remove usage of unused variablesMarcel Holtmann2011-05-271-2/+4
|
* gweb: numeric session address was not resolved properly.Jukka Rissanen2011-04-111-0/+21
| | | | Reported by: Sebastien Bianti <sebastien.bianti@linux.intel.com>
* gweb: Add port string to getaddrinfoSamuel Ortiz2011-04-011-1/+4
| | | | | | | | Without doing so, the socket address returned will have its port field uninitialized. Fixes BMC#14753 Fixes BMC#15026
* gweb: Add support for connecting to IPv6 host.Jukka Rissanen2011-03-251-9/+20
|
* gresolv: Fix memory leakDaniel Wagner2011-03-171-1/+3
| | | | Reported by: DJ Cozatt <ygdrasil@comcast.net>
* gweb: Add user_agent_profile field in http headerSébastien Bianti2011-03-112-1/+23
|
* gweb: Avoid forward declarations in resolver codeMarcel Holtmann2011-02-151-341/+338
|
* gweb: Some coding style cleanup on resolver codeMarcel Holtmann2011-02-151-50/+74
|
* gweb: Check GString pointers before freeing themMohamed Abbas2011-01-261-3/+9
| | | | Fixes BMC#12452
* gweb: Skip hostname resolving when proxy is usedMarcel Holtmann2011-01-011-2/+3
|
* gweb: Add support for handling proxy informationMarcel Holtmann2011-01-011-5/+54
|
* gweb: Add extra debug for proxy setupMarcel Holtmann2011-01-011-1/+8
|
* Handling multiple message-header fields with the same name.Mohamed Abbas2010-12-301-40/+79
| | | | | Append all multiple message-header fields with the same name and remove any white space in front of fiels value.
* Add g_web_result_get_header support.Mohamed Abbas2010-12-282-13/+88
| | | | | | | Add all http response header to hash table and allow user to get these header values. Header with same key will be replaced by last header value.
* gresolv: Destroy query after removing it from the resolv queueSamuel Ortiz2010-12-071-2/+2
| | | | Fixes BMC#10958
* gresolv: Remove ipv6 query from the resolv queueSamuel Ortiz2010-12-071-1/+1
|
* gresolv: Implement RFC3484 rule 9 (prefer longest matching prefix)David Woodhouse2010-12-021-0/+35
|
* gresolv: Add scope handling to RFC3484 sortDavid Woodhouse2010-12-021-1/+55
|
* gresolv: First partial implementation for RFC3484 sortingDavid Woodhouse2010-12-021-1/+48
|
* gresolv: Calculate precedence/label/etc required for RFC3484 sortingDavid Woodhouse2010-12-021-1/+158
|
* gresolv: Don't convert results to strings so earlyDavid Woodhouse2010-12-021-94/+100
| | | | | | | | | | We're going to want results in sockaddr form for sorting, so let's put them directly into the array we'll want for the sort process, even though we haven't actually implemented sorting yet. We can ditch the support for arbitrary callbacks from the individual queries, too; there's no need for that. The callback to user code comes from the *lookup*, having combined the A and AAAA query results.
* gresolv: Send A and AAAA queries, merge results for lookup callbackDavid Woodhouse2010-12-011-36/+169
|
* gresolv: Start handling AAAA results in queryDavid Woodhouse2010-12-011-6/+12
|
* gresolv: Fix handling of IPv6 nameserversDavid Woodhouse2010-12-011-14/+43
| | | | | | | | | | If IPv6 nameservers were specified in /etc/resolv.conf, we would end up sending NS queries to 0.0.0.0 because we weren't parsing the __res_state structure correctly. We were assuming that all listed nameservers would be Legacy IP. Also fix connect_udp_channel() to generate the address correctly instead of just asssuming Legacy IP.
* gresolv: Handle POLLERR on DNS UDP socketDavid Woodhouse2010-12-011-2/+2
| | | | | | | | | | | If we get an error on the UDP socket, we'll currently go into an endless loop eating CPU with poll() returning POLLERR and us ignoring it. This at least hooks things up so that our callback gets called, and we stop looping. But the callback's handling of POLLERR isn't correct. It should close the socket and open a new one. As it is, it's just going to try to use the same broken socket again for the next request. But at least with this patch it'll stop eating CPU.
* Don't report zero length success status back to clientMarcel Holtmann2010-11-081-3/+5
|
* Fix issue with non-blocking TLS connectionsMarcel Holtmann2010-11-081-1/+2
|
* Add extra debug statement for when TLS encryption is usedMarcel Holtmann2010-11-081-2/+5
|
* Use file descriptor directly instead of GIOChannelMarcel Holtmann2010-11-081-30/+40
|
* Add extra debug for result function return valueMarcel Holtmann2010-11-081-1/+6
|
* Add support for setting the HTTP version informationMarcel Holtmann2010-11-082-4/+37
|
* Read IO flags first before setting channel to non-blockingMarcel Holtmann2010-11-081-6/+9
|
* Add some extra HTTP body context debugMarcel Holtmann2010-11-071-2/+4
|
* Use send buffer to handle non-blocking GIOChannel usageMarcel Holtmann2010-11-071-44/+49
|
* Deal with EAGAIN and GnuTLS channelsMarcel Holtmann2010-11-071-1/+21
|
* Add support for handling non-blocking GnuTLS channelsMarcel Holtmann2010-11-071-7/+33
|