summaryrefslogtreecommitdiff
path: root/gio/gdbusauthmechanismexternal.c
Commit message (Collapse)AuthorAgeFilesLines
* ci: fix warnings and enable --werror for the mingw buildChristoph Reiter2018-04-251-0/+3
| | | | | | | | | | | | | Fix various warnings regarding unused variables, duplicated branches etc by adjusting the ifdeffery and some missing casts. gnulib triggers -Wduplicated-branches in one of the copied files, disable as that just makes updating the code harder. The warning indicating missing features are made none fatal through pragmas. They still show but don't abort the build. https://bugzilla.gnome.org/show_bug.cgi?id=793729
* gdbus: do not initialize gsize variables with -1Руслан Ижбулатов2018-03-131-1/+1
| | | | | | Use 0 instead, since gsize is unsigned. https://bugzilla.gnome.org/show_bug.cgi?id=794170
* gdbus: actually return string length from hexdecode()Руслан Ижбулатов2018-03-131-4/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=794170
* gio/: LGPLv2+ -> LGPLv2.1+Sébastien Wilmet2017-05-291-1/+1
| | | | | | | | | | | | | | | | | Sub-directories inside gio/ already processed in a previous commit: - fam/ - gdbus-2.0/ (which contains only codegen/) - gvdb/ - inotify/ - tests/ - win32/ - xdgmime/ Other sub-directories inside gio/: - completion/: no license headers - kqueue/: not LGPL, BSD-style license https://bugzilla.gnome.org/show_bug.cgi?id=776504
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* win32: silence build warningMarc-André Lureau2014-01-191-1/+1
| | | | | | | | | | | | gdbusauthmechanismexternal.c: In function 'mechanism_client_initiate': gdbusauthmechanismexternal.c:355:3: warning: 'initial_response' may be used uninitialized in this function [-Wmaybe-uninitialized] return initial_response; ^ gdbusauthmechanismexternal.c:332:10: note: 'initial_response' was declared here https://bugzilla.gnome.org/show_bug.cgi?id=711547
* Replace #ifdef HAVE_UNISTD_H checks with #ifdef G_OS_UNIXDan Winship2013-11-201-4/+0
| | | | | | | | | | | | | | | In Windows development environments that have it, <unistd.h> is mostly just a wrapper around several other native headers (in particular, <io.h>, which contains read(), close(), etc, and <process.h>, which contains getpid()). But given that some Windows dev environments don't have <unistd.h>, everything that uses those functions on Windows already needed to include the correct Windows header as well, and so there is never any point to including <unistd.h> on Windows. Also, remove some <unistd.h> includes (and a few others) that were unnecessary even on unix. https://bugzilla.gnome.org/show_bug.cgi?id=710519
* Rename the generated private data getter functionEmmanuele Bassi2013-06-241-1/+1
| | | | | | | As it turns out, we have examples of internal functions called type_name_get_private() in the wild (especially among older libraries), so we need to use a name for the per-instance private data getter function that hopefully won't conflict with anything.
* gio: Use the new private instance data declarationEmmanuele Bassi2013-06-241-6/+2
| | | | | | | Use the newly added macros, and remove the explicit calls to g_type_class_add_private(). https://bugzilla.gnome.org/show_bug.cgi?id=700035
* gio/: fully remove gioalias hacksRyan Lortie2010-07-071-4/+0
|
* Fix build with the Microsoft compilerTor Lillqvist2010-06-221-0/+2
| | | | | Correct a few gccisms and C99isms. Ensure the Windows-specific gio source files are listed in the generated gio VS project file.
* Bug 619142 – Build fixesDavid Zeuthen2010-05-201-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix various #include issues - Change #error to #warning for the EXTERNAL authentication mechanism. It is not clear if this should work on Win32 at all. - Call close() before unlink() for the SHA1 keyring - Change #error to #warning so we don't forget to do permission checking of the .dbus-keyrings directory - Use Win32 SID for the SHA1 auth mech - Apparently we can't use word 'interface' as an identifier - Implement a _g_dbus_win32_get_user_sid() function. For now it's private. Don't know if it should be public somewhere. Maybe in a future GCredentials support for Win32? I don't know. - GFileDescriptorBased is not available on Win32. So avoid using it in GLocalFile stuff. Now, Win32 still uses GLocalFile + friends (which works with file descriptors) so expose a private function to get the fd for an OutputStream so things still work. - Fixup gio.symbols - Fixup tests/gdbus-peer.c so it builds With this, at least things compile and the gdbus-peer.exe test case passes. Which is a great start. I've tested this by cross-compiling on a x86_64 Fedora 13 host using mingw32 and running the code on a 32-bit Windows 7 box. https://bugzilla.gnome.org/show_bug.cgi?id=619142 Signed-off-by: David Zeuthen <davidz@redhat.com>
* CleanupsMatthias Clasen2010-05-141-5/+4
| | | | | Sort #includes a bit better, and don't include platform-specific headers in gio.h.
* GDBus: Use call() instead of invoke_method()David Zeuthen2010-05-101-1/+1
| | | | | | | Lots of people been suggesting this. We still use MethodInvocation / method_invocation for handling incoming method calls so use call() instead of invoke_method() helps to separate the client and server facilities. Which is a good thing(tm).
* Update copyright years to include 2010Matthias Clasen2010-05-091-1/+1
|
* GDBus: Rework GCredentials typeDavid Zeuthen2010-05-091-16/+3
| | | | | | | | These changes are is related to https://bugzilla.gnome.org/show_bug.cgi?id=617483 and IRC discussions with danw.
* GDBus: Add new symbols to gio.symbolsDavid Zeuthen2010-05-061-0/+4
|
* GDBus: Fix up i18nDavid Zeuthen2010-05-061-1/+3
|
* Initial GDBus code-drop from GDBus-standalone repoDavid Zeuthen2010-05-061-0/+416
Things compile and the test-suite passes. Still need to hook up gio.symbols and docs. There are still a bunch of TODOs left in the sources that needs to be addressed. Signed-off-by: David Zeuthen <davidz@redhat.com>