summaryrefslogtreecommitdiff
path: root/gweb
AgeCommit message (Collapse)AuthorFilesLines
2012-10-19web: Make debug func print more useful informationJukka Rissanen1-3/+11
The file and function name are printed in debug prints.
2012-10-19gresolv: Remove query from queue before destroying the queryJukka Rissanen1-1/+1
The order of actions is important here.
2012-10-19gresolv: Make sure we will not receive DNS data after closingJukka Rissanen1-1/+3
We must close the channel when freeing the resolver object, otherwise we might still receive data when the resolver has been freed already. Fixes BMC#25757
2012-10-19gresolv: Add more debug printsJukka Rissanen1-5/+31
2012-10-19gresolv: Make debug func print more useful informationJukka Rissanen1-3/+11
The file and function names are printed in debug prints.
2012-10-16gresolv: Remove the lookup for realJukka Rissanen1-1/+1
The call to g_resolv_cancel_lookup() will do nothing because we just removed the lookup from the queue. The fix is to remove the lookup directly and not call the cancel function.
2012-10-16gresolv: Remove all pending lookups when resolver is removedJukka Rissanen1-0/+4
Remove all lookups found in queue when GResolv object is removed.
2012-10-16gresolv: Avoid accessing already freed memoryJukka Rissanen1-3/+6
We must remove the lookup from lookup queue and query from query queue before calling user callback. The callback might unref the GResolv which in turn would remove the lookup/query what we are trying to access after the callback is returned. So it is enough to remove the lookup or query entry from queue before cb is called and then manually remove it after the callback has returned.
2012-10-12gresolv: Remove lookup from correct queueJukka Rissanen1-1/+1
The lookup must be removed from lookup queue and not from query queue when cancelling the lookup. Otherwise it is possible that we might access an already removed lookup that is still found in lookup queue. Fixes BMC#25728
2012-09-11gweb: Don't use debug functionality after possible freePatrik Flykt1-4/+1
When the callback has been called, the whole structure might be freed. Thus don't call the debug function tied to the structure.
2012-07-17gresolv: Use predefined mnemonics rather than magic numbersGrant Erickson1-6/+6
Use predefined mnemonics from arpa/nameserv.h for the return value from ns_msg_getflag rather than magic numbers.
2012-07-17gresolv: Do not update successful status with unsuccessful oneGrant Erickson1-3/+9
When performing a resolver lookup from timeserver or wpad, both perform queries with an unspecified address family. This means that both A and AAAA record queries are issued. In cases where a valid, successful A response comes back but where the AAAA query results in a timeout, do not smash the successful A status with the time out AAAA status; otherwise, the timeserver or wpad will appear to fail to them when, in fact, the A query was successful and more than satisfies its unspecified address family requirement. Partial fix for BMC#25486.
2012-07-17gresolve: Fix a typo in conditional check for returning resultsGrant Erickson1-1/+1
In both parse_response and query_timeout there exists logic that checks to ensure that both an A and AAAA lookups have either been responded to or timed out before processing and returning results to the caller. In query_timeout, there was a typo in the condition check such that it did not match those conditions tested in parse_response.
2012-06-26gweb: Use g_try_realloc instead of g_reallocJukka Rissanen1-1/+3
2012-05-22gweb: Adding a function to know if TLS is supported or notTomasz Bursztyka2-0/+7
2012-05-21gweb: Add function to check for TLS supportMarcel Holtmann3-0/+12
2012-04-29gweb: Update copyright informationMarcel Holtmann7-7/+7
2012-04-27gweb: Define GWebRouteFuncPatrik Flykt2-7/+22
Define GWebRouteFunc that will be called when a route to the intended destination may need to be set up.
2012-04-20gweb: don't use deprecated gnutls_session typedefLucas De Marchi1-1/+1
According to gnutls/compat.h, gnutls_session typedef was deprecated since 2.x in favor of gnutls_session_t. Use the new typedef then.
2012-04-05gweb: Add more debug prints when error happensJukka Rissanen1-0/+3
These prints are useful when checking why network connection failed.
2012-03-20gweb: workaround for setsockopt failureSébastien Bianti1-12/+56
Setting socket option BINDTODEVICE requires CAP_NET_RAW capability.
2012-01-10gweb: process_send_file after HTTP Header is sentSébastien Bianti1-0/+3
2012-01-05gweb: Add null pointer checks to avoid connman unstabilityThierry Boureille1-2/+7
Fix null pointer derefencing in "free_session" and "process_send_buffer" functions
2011-12-18gweb: Extend gweb to send fileRonald Tessier2-6/+80
2011-11-28gweb: Bind socket to the right interfaceTomasz Bursztyka1-0/+17
2011-11-28gresolv: Bind socket to the right interfaceTomasz Bursztyka1-2/+22
2011-11-10gweb: Use gcc atomics instead glib's onesDaniel Wagner3-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.
2011-10-25gweb: Add SOCK_CLOEXEC to socket()Daniel Wagner2-2/+4
Make sure all file descriptor are closed.
2011-09-12gresolv: Fix buffer sizeJukka Rissanen1-3/+5
Make buf just big enough and initialize it in order to get rid of valgrind error (accessing uninitialized memory).
2011-07-24gweb: Fix gnutls_priority_set_direct() for various GnuTLS versionsMarcel Holtmann1-3/+5
2011-07-06gweb: Apply address family restiction to resolverTomasz Bursztyka1-0/+2
2011-07-06gresolv: Queries address family scope restrictionTomasz Bursztyka2-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.
2011-07-01gweb: Use GnuTLS priority string to provide wide compatibilityLucas De Marchi1-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
2011-07-01gweb: Remove call to deprecated GnuTLS functionLucas De Marchi1-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.
2011-06-27gweb: added the capability to restrict the requests to a specific address ↵Tomasz Bursztyka2-0/+21
family.
2011-06-13gweb: Make debug for write simplerMarcel Holtmann1-4/+2
2011-05-27gweb: Remove usage of unused variablesMarcel Holtmann1-2/+4
2011-04-11gweb: numeric session address was not resolved properly.Jukka Rissanen1-0/+21
Reported by: Sebastien Bianti <sebastien.bianti@linux.intel.com>
2011-04-01gweb: Add port string to getaddrinfoSamuel Ortiz1-1/+4
Without doing so, the socket address returned will have its port field uninitialized. Fixes BMC#14753 Fixes BMC#15026
2011-03-25gweb: Add support for connecting to IPv6 host.Jukka Rissanen1-9/+20
2011-03-17gresolv: Fix memory leakDaniel Wagner1-1/+3
Reported by: DJ Cozatt <ygdrasil@comcast.net>
2011-03-11gweb: Add user_agent_profile field in http headerSébastien Bianti2-1/+23
2011-02-15gweb: Avoid forward declarations in resolver codeMarcel Holtmann1-341/+338
2011-02-15gweb: Some coding style cleanup on resolver codeMarcel Holtmann1-50/+74
2011-01-26gweb: Check GString pointers before freeing themMohamed Abbas1-3/+9
Fixes BMC#12452
2011-01-01gweb: Skip hostname resolving when proxy is usedMarcel Holtmann1-2/+3
2011-01-01gweb: Add support for handling proxy informationMarcel Holtmann1-5/+54
2011-01-01gweb: Add extra debug for proxy setupMarcel Holtmann1-1/+8
2010-12-30Handling multiple message-header fields with the same name.Mohamed Abbas1-40/+79
Append all multiple message-header fields with the same name and remove any white space in front of fiels value.
2010-12-28Add g_web_result_get_header support.Mohamed Abbas2-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.