From 51e788e5ef273ac4b9781dc02697d0ed800080c8 Mon Sep 17 00:00:00 2001 From: Imran Zaman Date: Wed, 2 Jul 2014 13:31:12 +0300 Subject: [PATCH] Release 1.0.3 Change-Id: I7595ac5d23a9a842616d85e20d38a6d2790432d0 Signed-off-by: Imran Zaman --- aclocal.m4 | 58 +------ build-aux/config.guess | 192 +++++++++++++++++++---- build-aux/config.sub | 23 ++- build-aux/ltmain.sh | 4 +- configure | 25 ++- configure.ac | 2 +- dists/debian/changelog | 6 + dists/debian/rules | 2 +- dists/rpm/gsignond-suse.spec | 5 +- dists/rpm/gsignond-tizen.changes | 3 + dists/rpm/gsignond-tizen.spec | 4 +- docs/gsignond-sections.txt | 2 +- docs/html/GSignondAccessControlManager.html | 18 +-- docs/html/GSignondConfig.html | 24 +-- docs/html/GSignondCredentials.html | 38 ++--- docs/html/GSignondDigestPlugin.html | 2 +- docs/html/GSignondExtension.html | 6 +- docs/html/GSignondPasswordPlugin.html | 2 +- docs/html/GSignondPlugin.html | 141 ++++++----------- docs/html/GSignondSecretStorage.html | 50 +++--- docs/html/GSignondSsoTestPlugin.html | 2 +- docs/html/GSignondStorageManager.html | 26 +-- docs/html/api-index-full.html | 4 +- docs/html/gsignond-Errors.html | 44 +++--- docs/html/gsignond-GSignondDictionary.html | 172 ++++++++++---------- docs/html/gsignond-GSignondSecurityContext.html | 40 ++--- docs/html/gsignond-GSignondSessionData.html | 60 +++---- docs/html/gsignond-GSignondSignonuiData.html | 120 +++++++------- docs/html/gsignond-General-configuration.html | 2 +- docs/html/gsignond-Logging.html | 37 ++--- docs/html/gsignond-Utility-functions.html | 62 ++++---- docs/html/gsignond.devhelp2 | 2 +- docs/html/home.png | Bin 256 -> 169 bytes docs/html/index.sgml | 2 +- docs/html/left-insensitive.png | Bin 395 -> 329 bytes docs/html/left.png | Bin 262 -> 187 bytes docs/html/object-tree.html | 2 +- docs/html/right-insensitive.png | Bin 373 -> 233 bytes docs/html/right.png | Bin 261 -> 186 bytes docs/html/up-insensitive.png | Bin 374 -> 293 bytes docs/html/up.png | Bin 260 -> 187 bytes include/gsignond/gsignond-log.h | 26 +-- src/daemon/db/gsignond-db-metadata-database.c | 2 +- src/daemon/dbus/gsignond-dbus-identity-adapter.c | 4 +- src/daemon/gsignond-daemon.c | 10 +- tools/prepare-tizen.sh | 6 +- 46 files changed, 624 insertions(+), 606 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index ce2aae5..af3e421 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -180,61 +180,6 @@ else fi[]dnl ])# PKG_CHECK_MODULES - -# PKG_INSTALLDIR(DIRECTORY) -# ------------------------- -# Substitutes the variable pkgconfigdir as the location where a module -# should install pkg-config .pc files. By default the directory is -# $libdir/pkgconfig, but the default can be changed by passing -# DIRECTORY. The user can override through the --with-pkgconfigdir -# parameter. -AC_DEFUN([PKG_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([pkgconfigdir], - [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, - [with_pkgconfigdir=]pkg_default) -AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -]) dnl PKG_INSTALLDIR - - -# PKG_NOARCH_INSTALLDIR(DIRECTORY) -# ------------------------- -# Substitutes the variable noarch_pkgconfigdir as the location where a -# module should install arch-independent pkg-config .pc files. By -# default the directory is $datadir/pkgconfig, but the default can be -# changed by passing DIRECTORY. The user can override through the -# --with-noarch-pkgconfigdir parameter. -AC_DEFUN([PKG_NOARCH_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([noarch-pkgconfigdir], - [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, - [with_noarch_pkgconfigdir=]pkg_default) -AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -]) dnl PKG_NOARCH_INSTALLDIR - - -# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, -# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# ------------------------------------------- -# Retrieves the value of the pkg-config variable for the given module. -AC_DEFUN([PKG_CHECK_VAR], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl - -_PKG_CONFIG([$1], [variable="][$3]["], [$2]) -AS_VAR_COPY([$1], [pkg_cv_][$1]) - -AS_VAR_IF([$1], [""], [$5], [$4])dnl -])# PKG_CHECK_VAR - # Copyright (C) 2002-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation @@ -848,8 +793,7 @@ to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi -fi -]) +fi]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further diff --git a/build-aux/config.guess b/build-aux/config.guess index 1f5c50c..b79252d 100755 --- a/build-aux/config.guess +++ b/build-aux/config.guess @@ -1,8 +1,8 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2014 Free Software Foundation, Inc. +# Copyright 1992-2013 Free Software Foundation, Inc. -timestamp='2014-03-23' +timestamp='2013-06-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -50,7 +50,7 @@ version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2014 Free Software Foundation, Inc. +Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -149,7 +149,7 @@ Linux|GNU|GNU/*) LIBC=gnu #endif EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` ;; esac @@ -826,7 +826,7 @@ EOF *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; - *:MSYS*:*) + i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) @@ -969,10 +969,10 @@ EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; - openrisc*:Linux:*:*) - echo or1k-unknown-linux-${LIBC} + or1k:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; - or32:Linux:*:* | or1k*:Linux:*:*) + or32:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) @@ -1260,26 +1260,16 @@ EOF if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi - if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - case $UNAME_PROCESSOR in - i386) UNAME_PROCESSOR=x86_64 ;; - powerpc) UNAME_PROCESSOR=powerpc64 ;; - esac - fi + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac fi - elif test "$UNAME_PROCESSOR" = i386 ; then - # Avoid executing cc on OS X 10.9, as it ships with a stub - # that puts up a graphical alert prompting to install - # developer tools. Any system running Mac OS X 10.7 or - # later (Darwin 11 and later) is required to have a 64-bit - # processor. This is not true of the ARM version of Darwin - # that Apple uses in portable devices. - UNAME_PROCESSOR=x86_64 fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; @@ -1371,6 +1361,154 @@ EOF exit ;; esac +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix\n"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + c34*) + echo c34-convex-bsd + exit ;; + c38*) + echo c38-convex-bsd + exit ;; + c4*) + echo c4-convex-bsd + exit ;; + esac +fi + cat >&2 <." version="\ GNU config.sub ($timestamp) -Copyright 1992-2014 Free Software Foundation, Inc. +Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -265,7 +265,6 @@ case $basic_machine in | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ - | k1om \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ @@ -283,10 +282,8 @@ case $basic_machine in | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ - | mipsisa32r6 | mipsisa32r6el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64r6 | mipsisa64r6el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ @@ -298,7 +295,8 @@ case $basic_machine in | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ - | open8 | or1k | or1knd | or32 \ + | open8 \ + | or1k | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ @@ -326,7 +324,7 @@ case $basic_machine in c6x) basic_machine=tic6x-unknown ;; - m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; @@ -383,7 +381,6 @@ case $basic_machine in | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ - | k1om-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ @@ -403,10 +400,8 @@ case $basic_machine in | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ - | mipsisa32r6-* | mipsisa32r6el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ - | mipsisa64r6-* | mipsisa64r6el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ @@ -418,7 +413,6 @@ case $basic_machine in | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ - | or1k*-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ @@ -1380,7 +1374,7 @@ case $os in | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1598,6 +1592,9 @@ case $basic_machine in mips*-*) os=-elf ;; + or1k-*) + os=-elf + ;; or32-*) os=-coff ;; diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh index bb5fa02..a356aca 100644 --- a/build-aux/ltmain.sh +++ b/build-aux/ltmain.sh @@ -70,7 +70,7 @@ # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) -# $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.7 +# $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1 # automake: $automake_version # autoconf: $autoconf_version # @@ -80,7 +80,7 @@ PROGRAM=libtool PACKAGE=libtool -VERSION="2.4.2 Debian-2.4.2-1.7" +VERSION="2.4.2 Debian-2.4.2-1.7ubuntu1" TIMESTAMP="" package_revision=1.3337 diff --git a/configure b/configure index cdbc8a9..2f20cc6 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for gsignond 1.0.2. +# Generated by GNU Autoconf 2.69 for gsignond 1.0.3. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -587,8 +587,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='gsignond' PACKAGE_TARNAME='gsignond' -PACKAGE_VERSION='1.0.2' -PACKAGE_STRING='gsignond 1.0.2' +PACKAGE_VERSION='1.0.3' +PACKAGE_STRING='gsignond 1.0.3' PACKAGE_BUGREPORT='' PACKAGE_URL='http://01.org/gsso' @@ -1383,7 +1383,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures gsignond 1.0.2 to adapt to many kinds of systems. +\`configure' configures gsignond 1.0.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1453,7 +1453,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of gsignond 1.0.2:";; + short | recursive ) echo "Configuration of gsignond 1.0.3:";; esac cat <<\_ACEOF @@ -1606,7 +1606,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -gsignond configure 1.0.2 +gsignond configure 1.0.3 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1971,7 +1971,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by gsignond $as_me 1.0.2, which was +It was created by gsignond $as_me 1.0.3, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2839,7 +2839,7 @@ fi # Define the identity of the package. PACKAGE='gsignond' - VERSION='1.0.2' + VERSION='1.0.3' cat >>confdefs.h <<_ACEOF @@ -3017,7 +3017,6 @@ END fi fi - # Checks for programs. ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -13615,7 +13614,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by gsignond $as_me 1.0.2, which was +This file was extended by gsignond $as_me 1.0.3, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -13682,7 +13681,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -gsignond config.status 1.0.2 +gsignond config.status 1.0.3 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" @@ -16056,7 +16055,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by gsignond $as_me 1.0.2, which was +This file was extended by gsignond $as_me 1.0.3, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16123,7 +16122,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -gsignond config.status 1.0.2 +gsignond config.status 1.0.3 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff --git a/configure.ac b/configure.ac index 40c06d6..579ac5c 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.60]) -AC_INIT([gsignond], [1.0.2],[],[],[http://01.org/gsso]) +AC_INIT([gsignond], [1.0.3],[],[],[http://01.org/gsso]) AC_CONFIG_SRCDIR([src/daemon/main.c]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_AUX_DIR([build-aux]) diff --git a/dists/debian/changelog b/dists/debian/changelog index 172ed49..b0c0e7f 100644 --- a/dists/debian/changelog +++ b/dists/debian/changelog @@ -1,3 +1,9 @@ +gsignond (1.0.3-1) unstable; urgency=low + + * Update to 1.0.3 + + -- Imran Zamam Mon, 30 Jun 2014 16:22:00 +0200 + gsignond (1.0.1-4) unstable; urgency=low * Update to 1.0.1 diff --git a/dists/debian/rules b/dists/debian/rules index c59a978..55bee4d 100755 --- a/dists/debian/rules +++ b/dists/debian/rules @@ -16,7 +16,7 @@ export DH_OPTIONS dh $@ --parallel override_dh_auto_configure: - dh_auto_configure -- --enable-dbus-type=session --enable-gtk-doc + dh_auto_configure -- --enable-dbus-type=session --enable-gtk-doc --enable-debug override_dh_auto_test: true diff --git a/dists/rpm/gsignond-suse.spec b/dists/rpm/gsignond-suse.spec index 121d7e1..b83885c 100644 --- a/dists/rpm/gsignond-suse.spec +++ b/dists/rpm/gsignond-suse.spec @@ -6,7 +6,7 @@ Name: gsignond Summary: GLib based Single Sign-On daemon -Version: 1.0.1 +Version: 1.0.3 Release: 1 Group: System/Daemons License: LGPL-2.1+ @@ -115,6 +115,9 @@ groupadd -f -r gsignond %changelog +* Mon Jun 30 2014 Imran Zaman +- Release 1.0.3 + * Fri Mar 07 2014 Jussi Laako - Release 1.0.1 diff --git a/dists/rpm/gsignond-tizen.changes b/dists/rpm/gsignond-tizen.changes index ca4ba25..85ec61c 100644 --- a/dists/rpm/gsignond-tizen.changes +++ b/dists/rpm/gsignond-tizen.changes @@ -1,3 +1,6 @@ +* Mon Jun 30 2014 Imran Zaman +- Release 1.0.3 + * Fri Mar 07 2014 Jussi Laako - Release 1.0.1 diff --git a/dists/rpm/gsignond-tizen.spec b/dists/rpm/gsignond-tizen.spec index 5c8fc7f..ad32965 100644 --- a/dists/rpm/gsignond-tizen.spec +++ b/dists/rpm/gsignond-tizen.spec @@ -6,8 +6,8 @@ Name: gsignond Summary: GLib based Single Sign-On daemon -Version: 1.0.1 -Release: 2 +Version: 1.0.3 +Release: 1 Group: Security/Accounts License: LGPL-2.1+ Source: %{name}-%{version}.tar.gz diff --git a/docs/gsignond-sections.txt b/docs/gsignond-sections.txt index 6217773..5a4746c 100644 --- a/docs/gsignond-sections.txt +++ b/docs/gsignond-sections.txt @@ -164,9 +164,9 @@ gsignond_extension_get_type
gsignond-log TRACEBACK -INFO ERR WARN +INFO DBG
diff --git a/docs/html/GSignondAccessControlManager.html b/docs/html/GSignondAccessControlManager.html index 9a45532..5b9a502 100644 --- a/docs/html/GSignondAccessControlManager.html +++ b/docs/html/GSignondAccessControlManager.html @@ -51,7 +51,7 @@ -gboolean +gboolean gsignond_access_control_manager_peer_is_allowed_to_use_identity () @@ -59,7 +59,7 @@ -gboolean +gboolean gsignond_access_control_manager_peer_is_owner_of_identity () @@ -67,7 +67,7 @@ -gboolean +gboolean gsignond_access_control_manager_acl_is_valid () @@ -102,7 +102,7 @@

Object Hierarchy

-
    GObject
+
    GObject
     ╰── GSignondAccessControlManager
 
@@ -127,8 +127,8 @@ gsignond_access_control_manager_security_context_of_peer (GSignondAccessControlManager *self, GSignondSecurityContext *peer_ctx, int peer_fd, - const gchar *peer_service, - const gchar *peer_app_ctx); + const gchar *peer_service, + const gchar *peer_app_ctx);

Retrieves and sets GSignondSecurityContext of the specified peer.

The default implementation sets the app context as it was passed, and sets the system context to the binary path of the process that is determined from @@ -176,7 +176,7 @@ the system context to the binary path of the process that is determined from


gsignond_access_control_manager_peer_is_allowed_to_use_identity ()

-
gboolean
+
gboolean
 gsignond_access_control_manager_peer_is_allowed_to_use_identity
                                (GSignondAccessControlManager *self,
                                 const GSignondSecurityContext *peer_ctx,
@@ -229,7 +229,7 @@ as well.


gsignond_access_control_manager_peer_is_owner_of_identity ()

-
gboolean
+
gboolean
 gsignond_access_control_manager_peer_is_owner_of_identity
                                (GSignondAccessControlManager *self,
                                 const GSignondSecurityContext *peer_ctx,
@@ -276,7 +276,7 @@ to check peer_ctx
 

gsignond_access_control_manager_acl_is_valid ()

-
gboolean
+
gboolean
 gsignond_access_control_manager_acl_is_valid
                                (GSignondAccessControlManager *self,
                                 const GSignondSecurityContext *peer_ctx,
diff --git a/docs/html/GSignondConfig.html b/docs/html/GSignondConfig.html
index cf22896..5f2785f 100644
--- a/docs/html/GSignondConfig.html
+++ b/docs/html/GSignondConfig.html
@@ -50,7 +50,7 @@
 
 
 
-gint
+gint
 
 
 gsignond_config_get_integer ()
@@ -65,7 +65,7 @@
 
 
 
-const gchar *
+const gchar *
 
 
 gsignond_config_get_string ()
@@ -84,7 +84,7 @@
 

Object Hierarchy

-
    GObject
+
    GObject
     ╰── GSignondConfig
 
@@ -110,7 +110,7 @@ in decreasing order of priority:

  • GSIGNOND_CONFIG environment variable

  • g_get_user_config_dir() + "gsignond.conf"

  • path specified in --sysconfdir configure option ($(sysconfdir))

  • -
  • each of g_get_system_config_dirs() + "gsignond.conf"

  • +
  • each of g_get_system_config_dirs() + "gsignond.conf"

  • Otherwise, the config file location is determined at compilation time as $(sysconfdir) + "gsignond.conf"

    @@ -138,9 +138,9 @@ as they're already provided with a config object when they're created.


    gsignond_config_get_integer ()

    -
    gint
    +
    gint
     gsignond_config_get_integer (GSignondConfig *self,
    -                             const gchar *key);
    + const gchar *key);

    Get an integer configuration value.

    Parameters

    @@ -176,8 +176,8 @@ exist or cannot be converted to the integer, 0 is returned.

    gsignond_config_set_integer ()

    void
     gsignond_config_set_integer (GSignondConfig *self,
    -                             const gchar *key,
    -                             gint value);
    + const gchar *key, + gint value);

    Sets the configuration value to the provided integer.

    Parameters

    @@ -210,9 +210,9 @@ gsignond_config_set_integer (

    gsignond_config_get_string ()

    -
    const gchar *
    +
    const gchar *
     gsignond_config_get_string (GSignondConfig *self,
    -                            const gchar *key);
    + const gchar *key);

    Get a string configuration value.

    Parameters

    @@ -248,8 +248,8 @@ exist, NULL is returned.

    gsignond_config_set_string ()

    void
     gsignond_config_set_string (GSignondConfig *self,
    -                            const gchar *key,
    -                            const gchar *value);
    + const gchar *key, + const gchar *value);

    Sets the configuration value to the provided string.

    Parameters

    diff --git a/docs/html/GSignondCredentials.html b/docs/html/GSignondCredentials.html index 2bfc9f9..567a3e6 100644 --- a/docs/html/GSignondCredentials.html +++ b/docs/html/GSignondCredentials.html @@ -50,7 +50,7 @@ -gboolean +gboolean gsignond_credentials_set_data () @@ -58,7 +58,7 @@ -gboolean +gboolean gsignond_credentials_set_id () @@ -74,14 +74,14 @@ -gboolean +gboolean gsignond_credentials_set_username () -const gchar * +const gchar * gsignond_credentials_get_username () @@ -89,14 +89,14 @@ -gboolean +gboolean gsignond_credentials_set_password () -const gchar * +const gchar * gsignond_credentials_get_password () @@ -104,7 +104,7 @@ -gboolean +gboolean gsignond_credentials_equal () @@ -115,7 +115,7 @@

    Object Hierarchy

    -
        GObject
    +
        GObject
         ╰── GSignondCredentials
     
    @@ -146,11 +146,11 @@ gsignond_credentials_new ();

    gsignond_credentials_set_data ()

    -
    gboolean
    +
    gboolean
     gsignond_credentials_set_data (GSignondCredentials *self,
                                    const guint32 id,
    -                               const gchar *username,
    -                               const gchar *password);
    + const gchar *username, + const gchar *password);

    Sets the data of the GSignondCredentials.

    Parameters

    @@ -193,7 +193,7 @@ gsignond_credentials_set_data (

    gsignond_credentials_set_id ()

    -
    gboolean
    +
    gboolean
     gsignond_credentials_set_id (GSignondCredentials *self,
                                  const guint32 id);

    Sets the identity id of the GSignondCredentials object

    @@ -255,9 +255,9 @@ gsignond_credentials_get_id (

    gsignond_credentials_set_username ()

    -
    gboolean
    +
    gboolean
     gsignond_credentials_set_username (GSignondCredentials *self,
    -                                   const gchar *username);
    + const gchar *username);

    Sets the username of the GSignondCredentials object

    Parameters

    @@ -290,7 +290,7 @@ gsignond_credentials_set_username (

    gsignond_credentials_get_username ()

    -
    const gchar *
    +
    const gchar *
     gsignond_credentials_get_username (GSignondCredentials *self);

    Gets the username of the GSignondCredentials object

    @@ -317,9 +317,9 @@ gsignond_credentials_get_username (

    gsignond_credentials_set_password ()

    -
    gboolean
    +
    gboolean
     gsignond_credentials_set_password (GSignondCredentials *self,
    -                                   const gchar *password);
    + const gchar *password);

    Sets the password of the GSignondCredentials object

    Parameters

    @@ -352,7 +352,7 @@ gsignond_credentials_set_password (

    gsignond_credentials_get_password ()

    -
    const gchar *
    +
    const gchar *
     gsignond_credentials_get_password (GSignondCredentials *self);

    Gets the password from the GSignondCredentials object

    @@ -379,7 +379,7 @@ gsignond_credentials_get_password (

    gsignond_credentials_equal ()

    -
    gboolean
    +
    gboolean
     gsignond_credentials_equal (GSignondCredentials *one,
                                 GSignondCredentials *two);

    Compares elements of two GSignondCredentials object for equality.

    diff --git a/docs/html/GSignondDigestPlugin.html b/docs/html/GSignondDigestPlugin.html index 39030ab..7f63561 100644 --- a/docs/html/GSignondDigestPlugin.html +++ b/docs/html/GSignondDigestPlugin.html @@ -34,7 +34,7 @@

    Object Hierarchy

    -
        GObject
    +
        GObject
         ╰── GSignondDigestPlugin
     
    diff --git a/docs/html/GSignondExtension.html b/docs/html/GSignondExtension.html index ff8f1cd..09a68c9 100644 --- a/docs/html/GSignondExtension.html +++ b/docs/html/GSignondExtension.html @@ -41,7 +41,7 @@ -const gchar * +const gchar * gsignond_extension_get_name () @@ -84,7 +84,7 @@

    Object Hierarchy

    -
        GObject
    +
        GObject
         ╰── GSignondExtension
     
    @@ -116,7 +116,7 @@ https://code.google.com/p/accounts-sso/source/browse/?repo=gsignond#git%2Fsrc%2F

    Functions

    gsignond_extension_get_name ()

    -
    const gchar *
    +
    const gchar *
     gsignond_extension_get_name (GSignondExtension *self);

    Get a human readable name of the extension. Default implementation returns "default".

    diff --git a/docs/html/GSignondPasswordPlugin.html b/docs/html/GSignondPasswordPlugin.html index e020fb6..81f9091 100644 --- a/docs/html/GSignondPasswordPlugin.html +++ b/docs/html/GSignondPasswordPlugin.html @@ -34,7 +34,7 @@

    Object Hierarchy

    -
        GObject
    +
        GObject
         ╰── GSignondPasswordPlugin
     
    diff --git a/docs/html/GSignondPlugin.html b/docs/html/GSignondPlugin.html index 2e2b255..c33563e 100644 --- a/docs/html/GSignondPlugin.html +++ b/docs/html/GSignondPlugin.html @@ -151,13 +151,13 @@ -GStrv +GStrv mechanisms Read -gchar * +gchar * type Read @@ -244,87 +244,44 @@

    Description

    GSignondPlugin is an interface for implementing GLib-based authentication plugins.

    -

    When creating a plugin, write the GObject boilerplate code as usual, but

    +

    When creating a plugin, write the GObject boilerplate code as usual, but

    a) declare the type as follows:

    -
    - - - - - - - -
    1
    -2
    -3
    G_TYPE_OBJECT,
    -G_IMPLEMENT_INTERFACE (GSIGNOND_TYPE_PLUGIN,
    -                       gsignond_plugin_interface_init));
    -
    - +
    +                        G_TYPE_OBJECT,
    +                        G_IMPLEMENT_INTERFACE (GSIGNOND_TYPE_PLUGIN,
    +                                               gsignond_plugin_interface_init));
    +

    b) implement gsignond_plugin_interface_init as follows:

    -
    - - - - - - - -
    1
    -2
    -3
    -4
    -5
    -6
    -7
    -8
    gsignond_plugin_interface_init (GSignondPluginInterface *iface)
    -{
    -    iface->cancel = gsignond_password_plugin_cancel;
    -    iface->request_initial = gsignond_password_plugin_request_initial;
    -    iface->request = gsignond_password_plugin_request;
    -    iface->user_action_finished = gsignond_password_plugin_user_action_finished;
    -    iface->refresh = gsignond_password_plugin_refresh;
    -}
    -
    - +
    +gsignond_plugin_interface_init (GSignondPluginInterface *iface)
    +{
    +    iface->cancel = gsignond_password_plugin_cancel;
    +    iface->request_initial = gsignond_password_plugin_request_initial;
    +    iface->request = gsignond_password_plugin_request;
    +    iface->user_action_finished = gsignond_password_plugin_user_action_finished;
    +    iface->refresh = gsignond_password_plugin_refresh;
    +}
    +

    where the gsignond_password_plugin_cancel etc. are specific implementations of plugin interface methods that every plugin must provide (see below for when and how they're used by the daemon).

    c) override “type” and “mechanisms” property implementations in the plugin class constructor like this:

    -
    - - - - - - - -
    1
    -2
    -3
    -4
    -5
    -6
    -7
    -8
    -9
    -10
    -11
    gsignond_password_plugin_class_init (GSignondPasswordPluginClass *klass)
    -{
    -    GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
    +
    +gsignond_password_plugin_class_init (GSignondPasswordPluginClass *klass)
    +{
    +    GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
         
    -    gobject_class->set_property = gsignond_password_plugin_set_property;
    -    gobject_class->get_property = gsignond_password_plugin_get_property;
    +    gobject_class->set_property = gsignond_password_plugin_set_property;
    +    gobject_class->get_property = gsignond_password_plugin_get_property;
         
    -    g_object_class_override_property (gobject_class, PROP_TYPE, "type");
    -    g_object_class_override_property (gobject_class, PROP_MECHANISMS, 
    -                                      "mechanisms");
    -}
    -
    - + g_object_class_override_property (gobject_class, PROP_TYPE, "type"); + g_object_class_override_property (gobject_class, PROP_MECHANISMS, + "mechanisms"); +} +

    (naturally, plugin's property setter should ignore attempts to set these properties, and plugin's property getter should provide their values when asked)

    @@ -407,7 +364,7 @@ error, and prepare for a new authentication session.

    gsignond_plugin_request_initial (GSignondPlugin *self, GSignondSessionData *session_data, GSignondDictionary *identity_method_cache, - const gchar *mechanism);
    + const gchar *mechanism);

    This method starts a new authentication session.

    Parameters

    @@ -634,7 +591,7 @@ signal. This method should not be used otherwise.

    gsignond_plugin_error ()

    void
     gsignond_plugin_error (GSignondPlugin *self,
    -                       GError *error);
    + GError *error);

    Plugin implementations should use this to issue “error” signal. This method should not be used otherwise.

    @@ -728,7 +685,7 @@ signal. This method should not be used otherwise.

    void
     gsignond_plugin_status_changed (GSignondPlugin *self,
                                     GSignondPluginState state,
    -                                const gchar *message);
    + const gchar *message);

    Plugin implementations should use this to issue “status-changed” signal. This method should not be used otherwise.

    @@ -894,7 +851,7 @@ plugin implementations should provide.

    -

    GTypeInterface parent;

    +

    GTypeInterface parent;

    parent interface type.

      @@ -932,7 +889,7 @@ plugin implementations should provide.

    Property Details

    The “mechanisms” property

    -
      “mechanisms”               GStrv
    +
      “mechanisms”               GStrv

    This property holds a list of authentication mechanisms that the plugin implements, all specified within the authentication method. For example, OAuth plugin could implement "oauth1" and "oauth2" mechanisms.

    @@ -941,7 +898,7 @@ OAuth plugin could implement "oauth1" and "oauth2" mechanisms.


    The “type” property

    -
      “type”                     gchar *
    +
      “type”                     gchar *

    This property holds a plugin type, or authentication method it implements (for example "oauth" or "sasl").

    Flags: Read

    @@ -954,8 +911,8 @@ OAuth plugin could implement "oauth1" and "oauth2" mechanisms.

    The “error” signal

    void
     user_function (GSignondPlugin *plugin,
    -               GError         *error,
    -               gpointer        user_data)
    + GError *error, + gpointer user_data)

    This signal is issued by the plugin when an error has occured, or the plugin otherwise has a reason to cancel the authentication session. The error @@ -994,8 +951,8 @@ plugin otherwise has a reason to cancel the authentication session. The

    The “refreshed” signal

    void
     user_function (GSignondPlugin *plugin,
    -               GHashTable     *ui_data,
    -               gpointer        user_data)
    + GHashTable *ui_data, + gpointer user_data)

    This signal is issued by the plugin when the UI interaction is ongoing and the UI needs to be refreshed. This can be used for example to update captcha image in the UI.

    @@ -1033,8 +990,8 @@ captcha image in the UI.

    The “response” signal

    void
     user_function (GSignondPlugin *plugin,
    -               GHashTable     *session_data,
    -               gpointer        user_data)
    + GHashTable *session_data, + gpointer user_data)

    This signal is issued by the plugin when it wants to provide an intermediate response to the application or needs additional information from the application.

    After issuing this signal the plugin expects a gsignond_plugin_response() call.

    @@ -1072,8 +1029,8 @@ response to the application or needs additional information from the application

    The “response-final” signal

    void
     user_function (GSignondPlugin *plugin,
    -               GHashTable     *session_data,
    -               gpointer        user_data)
    + GHashTable *session_data, + gpointer user_data)

    This signal is issued by the plugin when it has completed the authentication sequence and is used to provide the final response to the application.

    After issuing this signal the plugin is idle and is ready for a new @@ -1113,8 +1070,8 @@ authentication session.

    void
     user_function (GSignondPlugin     *plugin,
                    GSignondPluginState state,
    -               gchar              *message,
    -               gpointer            user_data)
    + gchar *message, + gpointer user_data)

    This signal is issued by the plugin when plugin state has changed. This can be used by applications to report authentication progress.

    @@ -1156,8 +1113,8 @@ can be used by applications to report authentication progress.

    The “store” signal

    void
     user_function (GSignondPlugin *plugin,
    -               GHashTable     *data,
    -               gpointer        user_data)
    + GHashTable *data, + gpointer user_data)

    This signal is issued by the plugin when it has data to store in persistant storage. The same data would later be provided to plugin via @@ -1197,8 +1154,8 @@ gsignond_plugin_request_initial identity_method_cach

    The “user-action-required” signal

    void
     user_function (GSignondPlugin *plugin,
    -               GHashTable     *ui_data,
    -               gpointer        user_data)
    + GHashTable *ui_data, + gpointer user_data)

    This signal is issued by the plugin when it needs a UI interaction with the user to happen. When the interaction is complete, gsignond_plugin_user_action_finished() should be issued.

    diff --git a/docs/html/GSignondSecretStorage.html b/docs/html/GSignondSecretStorage.html index 98d6fbb..8b6db05 100644 --- a/docs/html/GSignondSecretStorage.html +++ b/docs/html/GSignondSecretStorage.html @@ -43,7 +43,7 @@ -gboolean +gboolean gsignond_secret_storage_open_db () @@ -51,7 +51,7 @@ -gboolean +gboolean gsignond_secret_storage_close_db () @@ -59,7 +59,7 @@ -gboolean +gboolean gsignond_secret_storage_clear_db () @@ -67,7 +67,7 @@ -gboolean +gboolean gsignond_secret_storage_is_open_db () @@ -83,7 +83,7 @@ -gboolean +gboolean gsignond_secret_storage_update_credentials () @@ -91,7 +91,7 @@ -gboolean +gboolean gsignond_secret_storage_remove_credentials () @@ -99,7 +99,7 @@ -gboolean +gboolean gsignond_secret_storage_check_credentials () @@ -107,7 +107,7 @@ -GHashTable * +GHashTable * gsignond_secret_storage_load_data () @@ -115,7 +115,7 @@ -gboolean +gboolean gsignond_secret_storage_update_data () @@ -123,14 +123,14 @@ -gboolean +gboolean gsignond_secret_storage_remove_data () -const GError * +const GError * gsignond_secret_storage_get_last_error () @@ -157,7 +157,7 @@

    Object Hierarchy

    -
        GObject
    +
        GObject
         ╰── GSignondSecretStorage
     
    @@ -179,7 +179,7 @@ that provides a subclassed implementation of

    Functions

    gsignond_secret_storage_open_db ()

    -
    gboolean
    +
    gboolean
     gsignond_secret_storage_open_db (GSignondSecretStorage *self);

    Opens (and initializes) the database. The implementation should take care of creating the DB, if it doesn't exist, and it should use @@ -210,7 +210,7 @@ to determine database location in the filesystem.


    gsignond_secret_storage_close_db ()

    -
    gboolean
    +
    gboolean
     gsignond_secret_storage_close_db (GSignondSecretStorage *self);

    Closes the database. To reopen it, call gsignond_secret_storage_open_db().

    @@ -237,7 +237,7 @@ gsignond_secret_storage_close_db (

    gsignond_secret_storage_clear_db ()

    -
    gboolean
    +
    gboolean
     gsignond_secret_storage_clear_db (GSignondSecretStorage *self);

    Removes all stored secrets from the database.

    @@ -264,7 +264,7 @@ gsignond_secret_storage_clear_db (

    gsignond_secret_storage_is_open_db ()

    -
    gboolean
    +
    gboolean
     gsignond_secret_storage_is_open_db (GSignondSecretStorage *self);

    Checks if the database is open or not.

    @@ -328,7 +328,7 @@ NULL otherwise.


    gsignond_secret_storage_update_credentials ()

    -
    gboolean
    +
    gboolean
     gsignond_secret_storage_update_credentials
                                    (GSignondSecretStorage *self,
                                     GSignondCredentials *creds);
    @@ -364,7 +364,7 @@ gsignond_secret_storage_update_credentials

    gsignond_secret_storage_remove_credentials ()

    -
    gboolean
    +
    gboolean
     gsignond_secret_storage_remove_credentials
                                    (GSignondSecretStorage *self,
                                     const guint32 id);
    @@ -400,7 +400,7 @@ gsignond_secret_storage_remove_credentials

    gsignond_secret_storage_check_credentials ()

    -
    gboolean
    +
    gboolean
     gsignond_secret_storage_check_credentials
                                    (GSignondSecretStorage *self,
                                     GSignondCredentials *creds);
    @@ -436,7 +436,7 @@ gsignond_secret_storage_check_credentials

    gsignond_secret_storage_load_data ()

    -
    GHashTable *
    +
    GHashTable *
     gsignond_secret_storage_load_data (GSignondSecretStorage *self,
                                        const guint32 id,
                                        const guint32 method);
    @@ -477,11 +477,11 @@ gsignond_secret_storage_load_data (

    gsignond_secret_storage_update_data ()

    -
    gboolean
    +
    gboolean
     gsignond_secret_storage_update_data (GSignondSecretStorage *self,
                                          const guint32 id,
                                          const guint32 method,
    -                                     GHashTable *data);
    + GHashTable *data);

    Calling this method updates the secret data associated with the given id/method.

    @@ -525,7 +525,7 @@ associated with the given id/method.


    gsignond_secret_storage_remove_data ()

    -
    gboolean
    +
    gboolean
     gsignond_secret_storage_remove_data (GSignondSecretStorage *self,
                                          const guint32 id,
                                          const guint32 method);
    @@ -566,7 +566,7 @@ gsignond_secret_storage_remove_data (

    gsignond_secret_storage_get_last_error ()

    -
    const GError *
    +
    const GError *
     gsignond_secret_storage_get_last_error
                                    (GSignondSecretStorage *self);

    Retrieves the last occurred error that has occured

    @@ -587,7 +587,7 @@ gsignond_secret_storage_get_last_error

    Returns

    -

    last occurred GError.

    +

    last occurred GError.

    [transfer none]

    diff --git a/docs/html/GSignondSsoTestPlugin.html b/docs/html/GSignondSsoTestPlugin.html index 3e765e8..c9e8fe0 100644 --- a/docs/html/GSignondSsoTestPlugin.html +++ b/docs/html/GSignondSsoTestPlugin.html @@ -34,7 +34,7 @@

    Object Hierarchy

    -
        GObject
    +
        GObject
         ╰── GSignondSsoTestPlugin
     
    diff --git a/docs/html/GSignondStorageManager.html b/docs/html/GSignondStorageManager.html index 0952d9c..07fb97a 100644 --- a/docs/html/GSignondStorageManager.html +++ b/docs/html/GSignondStorageManager.html @@ -43,7 +43,7 @@ -gboolean +gboolean gsignond_storage_manager_initialize_storage () @@ -51,7 +51,7 @@ -gboolean +gboolean gsignond_storage_manager_delete_storage () @@ -59,14 +59,14 @@ -gboolean +gboolean gsignond_storage_manager_storage_is_initialized () -const gchar * +const gchar * gsignond_storage_manager_mount_filesystem () @@ -74,7 +74,7 @@ -gboolean +gboolean gsignond_storage_manager_unmount_filesystem () @@ -82,7 +82,7 @@ -gboolean +gboolean gsignond_storage_manager_filesystem_is_mounted () @@ -109,7 +109,7 @@

    Object Hierarchy

    -
        GObject
    +
        GObject
         ╰── GSignondStorageManager
     
    @@ -131,7 +131,7 @@ implementation of

    Functions

    gsignond_storage_manager_initialize_storage ()

    -
    gboolean
    +
    gboolean
     gsignond_storage_manager_initialize_storage
                                    (GSignondStorageManager *self);

    Initialize encryption storage. This means making sure that the @@ -160,7 +160,7 @@ necessary directories under

    gsignond_storage_manager_delete_storage ()

    -
    gboolean
    +
    gboolean
     gsignond_storage_manager_delete_storage
                                    (GSignondStorageManager *self);

    Destroys all the encryption keys and wipes the storage. gsignond_wipe_directory() @@ -189,7 +189,7 @@ is typically used for the latter.


    gsignond_storage_manager_storage_is_initialized ()

    -
    gboolean
    +
    gboolean
     gsignond_storage_manager_storage_is_initialized
                                    (GSignondStorageManager *self);

    Checks if the storage has been initialized.

    @@ -217,7 +217,7 @@ gsignond_storage_manager_storage_is_initialized

    gsignond_storage_manager_mount_filesystem ()

    -
    const gchar *
    +
    const gchar *
     gsignond_storage_manager_mount_filesystem
                                    (GSignondStorageManager *self);

    Mounts an encrypted storage and returns the filesystem path of the storage @@ -250,7 +250,7 @@ secret database.


    gsignond_storage_manager_unmount_filesystem ()

    -
    gboolean
    +
    gboolean
     gsignond_storage_manager_unmount_filesystem
                                    (GSignondStorageManager *self);

    Unmounts a previously mounted encrypted storage filesystem.

    @@ -278,7 +278,7 @@ gsignond_storage_manager_unmount_filesystem

    gsignond_storage_manager_filesystem_is_mounted ()

    -
    gboolean
    +
    gboolean
     gsignond_storage_manager_filesystem_is_mounted
                                    (GSignondStorageManager *self);

    Checks if the encrypted storage filesystem is currently mounted.

    diff --git a/docs/html/api-index-full.html b/docs/html/api-index-full.html index 8df48b8..503f5ef 100644 --- a/docs/html/api-index-full.html +++ b/docs/html/api-index-full.html @@ -277,11 +277,11 @@
    -GSignondError, enum in Errors +GSIGNOND_ERROR, macro in Errors
    -GSIGNOND_ERROR, macro in Errors +GSignondError, enum in Errors
    diff --git a/docs/html/gsignond-Errors.html b/docs/html/gsignond-Errors.html index b8379f4..78f20ff 100644 --- a/docs/html/gsignond-Errors.html +++ b/docs/html/gsignond-Errors.html @@ -46,7 +46,7 @@ -GQuark +GQuark gsignond_error_quark () @@ -54,7 +54,7 @@ -GError * +GError * gsignond_error_new_from_variant () @@ -62,7 +62,7 @@ -GVariant * +GVariant * gsignond_error_to_variant () @@ -105,17 +105,9 @@

    This file provides GSignond error definitions and utilities. When creating an error, use GSIGNOND_ERROR for the error domain and errors from GSignondError for the error code.

    -
    - - - - - - - -
    1
    "Not enough data");
    -
    - +
    +    "Not enough data");
    +

    @@ -124,21 +116,21 @@ from

    GSIGNOND_ERROR

    #define GSIGNOND_ERROR   (gsignond_error_quark())
     
    -

    This macro should be used when creating a GError in GSignond plugins and extensions. -(for example with g_error_new() )

    +

    This macro should be used when creating a GError in GSignond plugins and extensions. +(for example with g_error_new() )


    gsignond_error_quark ()

    -
    GQuark
    +
    GQuark
     gsignond_error_quark (void);

    Creates and returns a domain for GSignond errors.


    gsignond_error_new_from_variant ()

    -
    GError *
    -gsignond_error_new_from_variant (GVariant *var);
    +
    GError *
    +gsignond_error_new_from_variant (GVariant *var);

    Converts the GVariant to GError.

    Parameters

    @@ -150,22 +142,22 @@ gsignond_error_new_from_variant (

    var

    -

    instance of GVariant

    +

    instance of GVariant

     

    Returns

    -

    GError object if successful, NULL otherwise.

    +

    GError object if successful, NULL otherwise.

    [transfer full]


    gsignond_error_to_variant ()

    -
    GVariant *
    -gsignond_error_to_variant (GError *error);
    +
    GVariant *
    +gsignond_error_to_variant (GError *error);

    Converts the GError to GVariant.

    Parameters

    @@ -177,14 +169,14 @@ gsignond_error_to_variant (GError

    error

    -

    instance of GError

    +

    instance of GError

     

    Returns

    -

    GVariant object if successful, NULL otherwise.

    +

    GVariant object if successful, NULL otherwise.

    [transfer full]

    @@ -192,7 +184,7 @@ gsignond_error_to_variant (GError

    gsignond_get_gerror_for_id()

    #define             gsignond_get_gerror_for_id(err, message, args...)
    -

    A helper macro that creates a GError with the proper gsignond domain

    +

    A helper macro that creates a GError with the proper gsignond domain

    Parameters

    diff --git a/docs/html/gsignond-GSignondDictionary.html b/docs/html/gsignond-GSignondDictionary.html index a85d9ff..f7550ee 100644 --- a/docs/html/gsignond-GSignondDictionary.html +++ b/docs/html/gsignond-GSignondDictionary.html @@ -82,7 +82,7 @@ - - +
    -GVariant * +GVariant * gsignond_dictionary_to_variant () @@ -90,7 +90,7 @@
    -GVariantBuilder * +GVariantBuilder * gsignond_dictionary_to_variant_builder () @@ -98,7 +98,7 @@
    -GVariant * +GVariant * gsignond_dictionary_get () @@ -106,7 +106,7 @@
    -gboolean +gboolean gsignond_dictionary_set () @@ -114,7 +114,7 @@
    -gboolean +gboolean gsignond_dictionary_get_boolean () @@ -122,7 +122,7 @@
    -gboolean +gboolean gsignond_dictionary_set_boolean () @@ -130,7 +130,7 @@
    -gboolean +gboolean gsignond_dictionary_get_int32 () @@ -138,7 +138,7 @@
    -gboolean +gboolean gsignond_dictionary_set_int32 () @@ -146,7 +146,7 @@
    -gboolean +gboolean gsignond_dictionary_get_uint32 () @@ -154,7 +154,7 @@
    -gboolean +gboolean gsignond_dictionary_set_uint32 () @@ -162,7 +162,7 @@
    -gboolean +gboolean gsignond_dictionary_get_int64 () @@ -170,7 +170,7 @@
    -gboolean +gboolean gsignond_dictionary_set_int64 () @@ -178,7 +178,7 @@
    -gboolean +gboolean gsignond_dictionary_get_uint64 () @@ -186,14 +186,14 @@
    -gboolean +gboolean gsignond_dictionary_set_uint64 ()
    const gchar * +const gchar * gsignond_dictionary_get_string () @@ -201,7 +201,7 @@
    -gboolean +gboolean gsignond_dictionary_set_string () @@ -209,7 +209,7 @@
    -gboolean +gboolean gsignond_dictionary_remove () @@ -217,7 +217,7 @@
    -gboolean +gboolean gsignond_dictionary_contains () @@ -238,32 +238,18 @@

    Description

    -

    A GSignondDictionary is a dictionary data structure that maps string keys to GVariant values. +

    A GSignondDictionary is a dictionary data structure that maps string keys to GVariant values. It's used in multiple places in gsignond and its public API to pass key-value data sets.

    -
    - - - - - - - -
    1
    -2
    -3
    -4
    -5
    -6
    -7
    gsignond_dictionary_set_string(dict, "name", "John Smith");
    -gsignond_dictionary_set_uint32(dict, "age", 32);
    -
    -guint32 age;
    -gboolean success = gsignond_dictionary_get_uint32(dict, "age", &age);
    -const gchar* name = gsignond_dictionary_get_string(dict, "name");
    -gsignond_dictionary_unref(dict);
    -
    +
    +    gsignond_dictionary_set_string(dict, "name", "John Smith");
    +    gsignond_dictionary_set_uint32(dict, "age", 32);
     
    +    guint32 age;
    +    gboolean success = gsignond_dictionary_get_uint32(dict, "age", &age);
    +    const gchar* name = gsignond_dictionary_get_string(dict, "name");
    +    gsignond_dictionary_unref(dict);
    +

    @@ -362,8 +348,8 @@ NULL otherwise.

    gsignond_dictionary_new_from_variant ()

    GSignondDictionary *
    -gsignond_dictionary_new_from_variant (GVariant *variant);
    -

    Converts the GVariant to GSignondDictionary. This is useful for example if +gsignond_dictionary_new_from_variant (GVariant *variant); +

    Converts the GVariant to GSignondDictionary. This is useful for example if the dictionary needs to be deserialized, or if it's contained in another GSignondDictionary and has been retrieved using gsignond_dictionary_get().

    @@ -376,7 +362,7 @@ the dictionary needs to be deserialized, or if it's contained in another

    variant

    instance of GVariant

    instance of GVariant

     
    @@ -390,9 +376,9 @@ the dictionary needs to be deserialized, or if it's contained in another

    gsignond_dictionary_to_variant ()

    -
    GVariant *
    +
    GVariant *
     gsignond_dictionary_to_variant (GSignondDictionary *dict);
    -

    Converts the GSignondDictionary to a GVariant. The result can be serialized +

    Converts the GSignondDictionary to a GVariant. The result can be serialized or put into another GSignondDictionary using gsignond_dictionary_set().

    Parameters

    @@ -411,19 +397,19 @@ or put into another GSignondDictionary using

    Returns

    -

    GVariant object if successful, NULL otherwise.

    +

    GVariant object if successful, NULL otherwise.

    [transfer full]


    gsignond_dictionary_to_variant_builder ()

    -
    GVariantBuilder *
    +
    GVariantBuilder *
     gsignond_dictionary_to_variant_builder
                                    (GSignondDictionary *dict);
    -

    Converts the GSignondDictionary to a GVariantBuilder of type +

    Converts the GSignondDictionary to a GVariantBuilder of type G_VARIANT_TYPE_VARDICT.

    -

    Caller should use g_variant_builder_unref() on the return value when it is +

    Caller should use g_variant_builder_unref() on the return value when it is no longer needed.

    Parameters

    @@ -442,19 +428,19 @@ no longer needed.

    Returns

    -

    GVariantBuilder if successful, NULL otherwise.

    +

    GVariantBuilder if successful, NULL otherwise.

    [transfer full]


    gsignond_dictionary_get ()

    -
    GVariant *
    +
    GVariant *
     gsignond_dictionary_get (GSignondDictionary *dict,
    -                         const gchar *key);
    -

    Retrieves a GVariant value from the dictionary. This can be used to retrieve + const gchar *key);

    +

    Retrieves a GVariant value from the dictionary. This can be used to retrieve a value of an arbitrary type, and then convert it manually to a specific type -using GVariant methods. For most commonly used types, also getters that +using GVariant methods. For most commonly used types, also getters that return the specific type directly are provided (gsignond_dictionary_get_string() and similar).

    @@ -489,12 +475,12 @@ example if the entry corresponding to the supplied key doesn't exist).


    gsignond_dictionary_set ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_set (GSignondDictionary *dict,
    -                         const gchar *key,
    -                         GVariant *value);
    + const gchar *key, + GVariant *value);

    Adds or replaces key-value pair in the dictionary. This allows to set a value -of an arbitrary type: it first needs to be converted to a GVariant. For most +of an arbitrary type: it first needs to be converted to a GVariant. For most commonly used types also type-specific setters are provided.

    Parameters

    @@ -532,10 +518,10 @@ commonly used types also type-specific setters are provided.


    gsignond_dictionary_get_boolean ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_get_boolean (GSignondDictionary *dict,
    -                                 const gchar *key,
    -                                 gboolean *value);
    + const gchar *key, + gboolean *value);

    Retrieves a gboolean value.

    Parameters

    @@ -573,10 +559,10 @@ gsignond_dictionary_get_boolean (

    gsignond_dictionary_set_boolean ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_set_boolean (GSignondDictionary *dict,
    -                                 const gchar *key,
    -                                 gboolean value);
    + const gchar *key, + gboolean value);

    Sets or replaces a gboolean value in the dictionary.

    Parameters

    @@ -614,10 +600,10 @@ gsignond_dictionary_set_boolean (

    gsignond_dictionary_get_int32 ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_get_int32 (GSignondDictionary *dict,
    -                               const gchar *key,
    -                               gint *value);
    + const gchar *key, + gint *value);

    Retrieves a int32 value.

    Parameters

    @@ -655,10 +641,10 @@ gsignond_dictionary_get_int32 (GS

    gsignond_dictionary_set_int32 ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_set_int32 (GSignondDictionary *dict,
    -                               const gchar *key,
    -                               gint value);
    + const gchar *key, + gint value);

    Sets or replaces a int32 value in the dictionary.

    Parameters

    @@ -696,10 +682,10 @@ gsignond_dictionary_set_int32 (GS

    gsignond_dictionary_get_uint32 ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_get_uint32 (GSignondDictionary *dict,
    -                                const gchar *key,
    -                                guint *value);
    + const gchar *key, + guint *value);

    Retrieves a uint32 value.

    Parameters

    @@ -737,9 +723,9 @@ gsignond_dictionary_get_uint32 (G

    gsignond_dictionary_set_uint32 ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_set_uint32 (GSignondDictionary *dict,
    -                                const gchar *key,
    +                                const gchar *key,
                                     guint32 value);

    Sets or replaces a uint32 value in the dictionary.

    @@ -778,9 +764,9 @@ gsignond_dictionary_set_uint32 (G

    gsignond_dictionary_get_int64 ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_get_int64 (GSignondDictionary *dict,
    -                               const gchar *key,
    +                               const gchar *key,
                                    gint64 *value);

    Retrieves a int64 value.

    @@ -819,9 +805,9 @@ gsignond_dictionary_get_int64 (GS

    gsignond_dictionary_set_int64 ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_set_int64 (GSignondDictionary *dict,
    -                               const gchar *key,
    +                               const gchar *key,
                                    gint64 value);

    Sets or replaces a int64 value in the dictionary.

    @@ -860,9 +846,9 @@ gsignond_dictionary_set_int64 (GS

    gsignond_dictionary_get_uint64 ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_get_uint64 (GSignondDictionary *dict,
    -                                const gchar *key,
    +                                const gchar *key,
                                     guint64 *value);

    Retrieves a uint64 value.

    @@ -901,9 +887,9 @@ gsignond_dictionary_get_uint64 (G

    gsignond_dictionary_set_uint64 ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_set_uint64 (GSignondDictionary *dict,
    -                                const gchar *key,
    +                                const gchar *key,
                                     guint64 value);

    Sets or replaces a uint64 value in the dictionary.

    @@ -942,9 +928,9 @@ gsignond_dictionary_set_uint64 (G

    gsignond_dictionary_get_string ()

    -
    const gchar *
    +
    const gchar *
     gsignond_dictionary_get_string (GSignondDictionary *dict,
    -                                const gchar *key);
    + const gchar *key);

    Retrieves a string value.

    Parameters

    @@ -977,10 +963,10 @@ gsignond_dictionary_get_string (G

    gsignond_dictionary_set_string ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_set_string (GSignondDictionary *dict,
    -                                const gchar *key,
    -                                const gchar *value);
    + const gchar *key, + const gchar *value);

    Sets or replaces a string value in the dictionary.

    Parameters

    @@ -1018,9 +1004,9 @@ gsignond_dictionary_set_string (G

    gsignond_dictionary_remove ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_remove (GSignondDictionary *dict,
    -                            const gchar *key);
    + const gchar *key);

    Removes key-value pair in the dictionary as per key.

    Parameters

    @@ -1053,9 +1039,9 @@ gsignond_dictionary_remove (GSign

    gsignond_dictionary_contains ()

    -
    gboolean
    +
    gboolean
     gsignond_dictionary_contains (GSignondDictionary *dict,
    -                              const gchar *key);
    + const gchar *key);

    Checks if the dict contains key .

    diff --git a/docs/html/gsignond-GSignondSecurityContext.html b/docs/html/gsignond-GSignondSecurityContext.html index 9549f83..da94409 100644 --- a/docs/html/gsignond-GSignondSecurityContext.html +++ b/docs/html/gsignond-GSignondSecurityContext.html @@ -81,7 +81,7 @@ -const gchar * +const gchar * gsignond_security_context_get_system_context () @@ -96,7 +96,7 @@ -const gchar * +const gchar * gsignond_security_context_get_application_context () @@ -104,7 +104,7 @@ -GVariant * +GVariant * gsignond_security_context_to_variant () @@ -128,7 +128,7 @@ -gboolean +gboolean gsignond_security_context_match () @@ -136,7 +136,7 @@ -gboolean +gboolean gsignond_security_context_check () @@ -144,7 +144,7 @@ -GVariant * +GVariant * gsignond_security_context_list_to_variant () @@ -238,8 +238,8 @@ gsignond_security_context_new ();

    gsignond_security_context_new_from_values ()

    GSignondSecurityContext *
     gsignond_security_context_new_from_values
    -                               (const gchar *system_context,
    -                                const gchar *application_context);
    + (const gchar *system_context, + const gchar *application_context);

    Allocates and initializes a new security context item.

    Parameters

    @@ -324,7 +324,7 @@ gsignond_security_context_copy (const void gsignond_security_context_set_system_context (GSignondSecurityContext *ctx, - const gchar *system_context);
    + const gchar *system_context);

    Sets the system context part of the GSignondSecurityContext.

    @@ -353,7 +353,7 @@ gsignond_security_context_set_system_context

    gsignond_security_context_get_system_context ()

    -
    const gchar *
    +
    const gchar *
     gsignond_security_context_get_system_context
                                    (const GSignondSecurityContext *ctx);

    Get the system context partof the @@ -385,7 +385,7 @@ gsignond_security_context_get_system_context

    void
     gsignond_security_context_set_application_context
                                    (GSignondSecurityContext *ctx,
    -                                const gchar *application_context);
    + const gchar *application_context);

    Sets the application context part of the GSignondSecurityContext.

    @@ -414,7 +414,7 @@ the

    gsignond_security_context_get_application_context ()

    -
    const gchar *
    +
    const gchar *
     gsignond_security_context_get_application_context
                                    (const GSignondSecurityContext *ctx);

    Get the application context part of @@ -443,7 +443,7 @@ the

    gsignond_security_context_to_variant ()

    -
    GVariant *
    +
    GVariant *
     gsignond_security_context_to_variant (const GSignondSecurityContext *ctx);

    Build a GVariant of type "(ss)" from a GSignondSecurityContext item.

    @@ -472,7 +472,7 @@ gsignond_security_context_to_variant (const

    gsignond_security_context_from_variant ()

    GSignondSecurityContext *
     gsignond_security_context_from_variant
    -                               (GVariant *variant);
    + (GVariant *variant);

    Builds a GSignondSecurityContext item from a GVariant of type "(ss)".

    Parameters

    @@ -533,7 +533,7 @@ gsignond_security_context_compare (const

    gsignond_security_context_match ()

    -
    gboolean
    +
    gboolean
     gsignond_security_context_match (const GSignondSecurityContext *ctx1,
                                      const GSignondSecurityContext *ctx2);

    Compare two GSignondSecurityContext items match.

    @@ -571,7 +571,7 @@ otherwise FALSE. Two NULL contexts match.


    gsignond_security_context_check ()

    -
    gboolean
    +
    gboolean
     gsignond_security_context_check (const GSignondSecurityContext *reference,
                                      const GSignondSecurityContext *test);

    Check if test @@ -613,7 +613,7 @@ FALSE is returned.


    gsignond_security_context_list_to_variant ()

    -
    GVariant *
    +
    GVariant *
     gsignond_security_context_list_to_variant
                                    (const GSignondSecurityContextList *list);

    Builds a GVariant of type "a(ss)" from a GList of GSignondSecurityContext @@ -644,7 +644,7 @@ items.

    gsignond_security_context_list_from_variant ()

    GSignondSecurityContextList *
     gsignond_security_context_list_from_variant
    -                               (GVariant *variant);
    + (GVariant *variant);

    Builds a GList of GSignondSecurityContext items from a GVariant of type "a(ss)".

    @@ -741,12 +741,12 @@ meaning in

    gchar *sys_ctx;

    +

    gchar *sys_ctx;

    system context

      -

    gchar *app_ctx;

    +

    gchar *app_ctx;

    application context

      diff --git a/docs/html/gsignond-GSignondSessionData.html b/docs/html/gsignond-GSignondSessionData.html index 9a0d441..960dcbe 100644 --- a/docs/html/gsignond-GSignondSessionData.html +++ b/docs/html/gsignond-GSignondSessionData.html @@ -41,7 +41,7 @@ -const gchar * +const gchar * gsignond_session_data_get_username () @@ -56,7 +56,7 @@ -const gchar * +const gchar * gsignond_session_data_get_secret () @@ -71,7 +71,7 @@ -const gchar * +const gchar * gsignond_session_data_get_realm () @@ -87,7 +87,7 @@ -GSequence * +GSequence * gsignond_session_data_get_allowed_realms () @@ -102,7 +102,7 @@ -const gchar * +const gchar * gsignond_session_data_get_caption () @@ -118,7 +118,7 @@ -gboolean +gboolean gsignond_session_data_get_renew_token () @@ -134,7 +134,7 @@ -gboolean +gboolean gsignond_session_data_get_ui_policy () @@ -149,7 +149,7 @@ -const gchar * +const gchar * gsignond_session_data_get_network_proxy () @@ -165,7 +165,7 @@ -gboolean +gboolean gsignond_session_data_get_network_timeout () @@ -181,7 +181,7 @@ -gboolean +gboolean gsignond_session_data_get_window_id () @@ -233,7 +233,7 @@ setters with explicit key string.

    Functions

    gsignond_session_data_get_username ()

    -
    const gchar *
    +
    const gchar *
     gsignond_session_data_get_username (GSignondSessionData *data);

    A getter for a username associated with the authentication session.

    @@ -262,7 +262,7 @@ gsignond_session_data_get_username (

    gsignond_session_data_set_username ()

    void
     gsignond_session_data_set_username (GSignondSessionData *data,
    -                                    const gchar *username);
    + const gchar *username);

    A setter for a username associated with the authentication session.

    Parameters

    @@ -290,7 +290,7 @@ gsignond_session_data_set_username (

    gsignond_session_data_get_secret ()

    -
    const gchar *
    +
    const gchar *
     gsignond_session_data_get_secret (GSignondSessionData *data);

    A getter for a secret (e.g. a password) associated with the authentication session.

    @@ -319,7 +319,7 @@ gsignond_session_data_get_secret (

    gsignond_session_data_set_secret ()

    void
     gsignond_session_data_set_secret (GSignondSessionData *data,
    -                                  const gchar *secret);
    + const gchar *secret);

    A setter for a secret (e.g. a password) associated with the authentication session.

    Parameters

    @@ -347,7 +347,7 @@ gsignond_session_data_set_secret (

    gsignond_session_data_get_realm ()

    -
    const gchar *
    +
    const gchar *
     gsignond_session_data_get_realm (GSignondSessionData *data);

    A getter for a realm associated with the authentication session.

    @@ -376,7 +376,7 @@ gsignond_session_data_get_realm (

    gsignond_session_data_set_realm ()

    void
     gsignond_session_data_set_realm (GSignondSessionData *data,
    -                                 const gchar *realm);
    + const gchar *realm);

    A setter for a realm associated with the authentication session.

    Parameters

    @@ -404,7 +404,7 @@ gsignond_session_data_set_realm (

    gsignond_session_data_get_allowed_realms ()

    -
    GSequence *
    +
    GSequence *
     gsignond_session_data_get_allowed_realms
                                    (GSignondSessionData *data);

    A getter for a list of realms allowed for the identity use.

    @@ -425,7 +425,7 @@ gsignond_session_data_get_allowed_realms

    Returns

    -

    GSequence of allowed realms.

    +

    GSequence of allowed realms.

    [transfer full]

    @@ -435,7 +435,7 @@ gsignond_session_data_get_allowed_realms
    void
     gsignond_session_data_set_allowed_realms
                                    (GSignondSessionData *data,
    -                                GSequence *realms);
    + GSequence *realms);

    A setter for a list of realms allowed for the identity use.

    Parameters

    @@ -453,7 +453,7 @@ gsignond_session_data_set_allowed_realms

    realms

    -

    a GSequence if allowed realms

    +

    a GSequence if allowed realms

      @@ -463,7 +463,7 @@ gsignond_session_data_set_allowed_realms

    gsignond_session_data_get_caption ()

    -
    const gchar *
    +
    const gchar *
     gsignond_session_data_get_caption (GSignondSessionData *data);

    A getter for a caption associated with the authentication session. Caption tells the user which application/credentials/provider is requestion @@ -494,7 +494,7 @@ authentication.

    gsignond_session_data_set_caption ()

    void
     gsignond_session_data_set_caption (GSignondSessionData *data,
    -                                   const gchar *caption);
    + const gchar *caption);

    A setter for a caption associated with the authentication session. Caption tells the user which application/credentials/provider is requestion authentication.

    @@ -524,9 +524,9 @@ authentication.


    gsignond_session_data_get_renew_token ()

    -
    gboolean
    +
    gboolean
     gsignond_session_data_get_renew_token (GSignondSessionData *data,
    -                                       gboolean *renew_token);
    + gboolean *renew_token);

    A getter for a renew token property associated with the authentication session. This property tells the plugin to discard any cached tokens and start the authentication process anew.

    @@ -564,7 +564,7 @@ dictionary or not.

    gsignond_session_data_set_renew_token ()

    void
     gsignond_session_data_set_renew_token (GSignondSessionData *data,
    -                                       gboolean renew_token);
    + gboolean renew_token);

    A setter for a renew token property associated with the authentication session. This property tells the plugin to discard any cached tokens and start the authentication process anew.

    @@ -594,7 +594,7 @@ the authentication process anew.


    gsignond_session_data_get_ui_policy ()

    -
    gboolean
    +
    gboolean
     gsignond_session_data_get_ui_policy (GSignondSessionData *data,
                                          GSignondUiPolicy *ui_policy);

    A getter for UI policy setting associated with the authentication session. @@ -662,7 +662,7 @@ The UI policy indicates how the authentication plugin should interact with the u


    gsignond_session_data_get_network_proxy ()

    -
    const gchar *
    +
    const gchar *
     gsignond_session_data_get_network_proxy
                                    (GSignondSessionData *data);

    A getter for a network proxy setting associated with the authentication session. @@ -694,7 +694,7 @@ If this property is not set, the default system proxy settings should be used.void gsignond_session_data_set_network_proxy (GSignondSessionData *data, - const gchar *network_proxy);

    + const gchar *network_proxy);

    A setter for a network proxy setting associated with the authentication session. If this property is not set, the default system proxy settings should be used.

    @@ -723,7 +723,7 @@ If this property is not set, the default system proxy settings should be used.

    gsignond_session_data_get_network_timeout ()

    -
    gboolean
    +
    gboolean
     gsignond_session_data_get_network_timeout
                                    (GSignondSessionData *data,
                                     guint32 *network_timeout);
    @@ -793,7 +793,7 @@ This can be used to change the default timeout in case of unresponsive servers.<

    gsignond_session_data_get_window_id ()

    -
    gboolean
    +
    gboolean
     gsignond_session_data_get_window_id (GSignondSessionData *data,
                                          guint32 *window_id);

    A getter for a window id setting associated with the authentication session. diff --git a/docs/html/gsignond-GSignondSignonuiData.html b/docs/html/gsignond-GSignondSignonuiData.html index 02d4d1c..4e0bb48 100644 --- a/docs/html/gsignond-GSignondSignonuiData.html +++ b/docs/html/gsignond-GSignondSignonuiData.html @@ -41,7 +41,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_captcha_response () @@ -56,7 +56,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_captcha_url () @@ -71,7 +71,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_caption () @@ -87,7 +87,7 @@ -gboolean +gboolean gsignond_signonui_data_get_confirm () @@ -102,7 +102,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_final_url () @@ -117,7 +117,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_forgot_password () @@ -132,7 +132,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_forgot_password_url () @@ -147,7 +147,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_message () @@ -162,7 +162,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_open_url () @@ -177,7 +177,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_password () @@ -193,7 +193,7 @@ -gboolean +gboolean gsignond_signonui_data_get_query_error () @@ -209,7 +209,7 @@ -gboolean +gboolean gsignond_signonui_data_get_query_password () @@ -225,7 +225,7 @@ -gboolean +gboolean gsignond_signonui_data_get_query_username () @@ -241,7 +241,7 @@ -gboolean +gboolean gsignond_signonui_data_get_remember_password () @@ -256,7 +256,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_request_id () @@ -271,7 +271,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_test_reply () @@ -286,7 +286,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_title () @@ -301,7 +301,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_url_response () @@ -316,7 +316,7 @@ -const gchar * +const gchar * gsignond_signonui_data_get_username () @@ -377,7 +377,7 @@ password, query error code, remember password, url response.

    Functions

    gsignond_signonui_data_get_captcha_response ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_captcha_response
                                    (GSignondSignonuiData *data);

    A getter for the user's response to a captcha query.

    @@ -408,7 +408,7 @@ gsignond_signonui_data_get_captcha_response
    void
     gsignond_signonui_data_set_captcha_response
                                    (GSignondSignonuiData *data,
    -                                const gchar *response);
    + const gchar *response);

    A setter for the user's response to a captcha query.

    Parameters

    @@ -436,7 +436,7 @@ gsignond_signonui_data_set_captcha_response

    gsignond_signonui_data_get_captcha_url ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_captcha_url
                                    (GSignondSignonuiData *data);

    A getter for the captcha URL.

    @@ -467,7 +467,7 @@ gsignond_signonui_data_get_captcha_url
    void
     gsignond_signonui_data_set_captcha_url
                                    (GSignondSignonuiData *data,
    -                                const gchar *url);
    + const gchar *url);

    A setter for the captcha URL.

    Parameters

    @@ -495,7 +495,7 @@ gsignond_signonui_data_set_captcha_url

    gsignond_signonui_data_get_caption ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_caption (GSignondSignonuiData *data);

    A getter for the caption string. Caption tells the user which application/credentials/provider is requestion authentication.

    @@ -525,7 +525,7 @@ application/credentials/provider is requestion authentication.

    gsignond_signonui_data_set_caption ()

    void
     gsignond_signonui_data_set_caption (GSignondSignonuiData *data,
    -                                    const gchar *caption);
    + const gchar *caption);

    A setter for the caption string. Caption tells the user which application/credentials/provider is requestion authentication.

    @@ -554,9 +554,9 @@ application/credentials/provider is requestion authentication.


    gsignond_signonui_data_get_confirm ()

    -
    gboolean
    +
    gboolean
     gsignond_signonui_data_get_confirm (GSignondSignonuiData *data,
    -                                    gboolean *confirm);
    + gboolean *confirm);

    A getter for the confirm mode. In confirm mode the user is asked to enter an old password (which is compared to the supplied password), and a new password twice (which is returned).

    @@ -594,7 +594,7 @@ dictionary or not.

    gsignond_signonui_data_set_confirm ()

    void
     gsignond_signonui_data_set_confirm (GSignondSignonuiData *data,
    -                                    gboolean confirm);
    + gboolean confirm);

    A setter for the confirm mode. In confirm mode the user is asked to enter an old password (which is compared to the supplied password), and a new password twice (which is returned).

    @@ -624,7 +624,7 @@ an old password (which is compared to the supplied password), and a new password

    gsignond_signonui_data_get_final_url ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_final_url (GSignondSignonuiData *data);

    A getter for the final URL. When the signon UI detects that the user is at the final URL (possibly with additional query or fragment parameters), it @@ -656,7 +656,7 @@ This is used by redirection-based authentication, such as OAuth.

    gsignond_signonui_data_set_final_url ()

    void
     gsignond_signonui_data_set_final_url (GSignondSignonuiData *data,
    -                                      const gchar *url);
    + const gchar *url);

    A setter for the final URL. When the signon UI detects that the user is at the final URL (possibly with additional query or fragment parameters), it will close the window and return the full URL via url response property. @@ -687,7 +687,7 @@ This is used by redirection-based authentication, such as OAuth.


    gsignond_signonui_data_get_forgot_password ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_forgot_password
                                    (GSignondSignonuiData *data);

    A getter for the forgot password string which is shown to the user as a link to @@ -719,7 +719,7 @@ reset the password or remind him of the password.

    void
     gsignond_signonui_data_set_forgot_password
                                    (GSignondSignonuiData *data,
    -                                const gchar *forgot);
    + const gchar *forgot);

    A setter for the forgot password string, which is shown to the user as a link to reset the password or remind him of the password.

    @@ -753,7 +753,7 @@ reset the password or remind him of the password.


    gsignond_signonui_data_get_forgot_password_url ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_forgot_password_url
                                    (GSignondSignonuiData *data);

    A getter for the forgot password URL, where the user can reset or request a @@ -785,7 +785,7 @@ reminder of the password.

    void
     gsignond_signonui_data_set_forgot_password_url
                                    (GSignondSignonuiData *data,
    -                                const gchar *url);
    + const gchar *url);

    A setter for the forgot password URL, where the user can reset or request a reminder of the password.

    @@ -819,7 +819,7 @@ reminder of the password.


    gsignond_signonui_data_get_message ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_message (GSignondSignonuiData *data);

    A getter for the message which is show to the user in the signon UI dialog.

    @@ -848,7 +848,7 @@ gsignond_signonui_data_get_message (

    gsignond_signonui_data_set_message ()

    void
     gsignond_signonui_data_set_message (GSignondSignonuiData *data,
    -                                    const gchar *message);
    + const gchar *message);

    A setter for the message which is show to the user in the signon UI dialog.

    Parameters

    @@ -876,7 +876,7 @@ gsignond_signonui_data_set_message (

    gsignond_signonui_data_get_open_url ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_open_url (GSignondSignonuiData *data);

    A getter for the URL that should be opened by signon UI.

    @@ -905,7 +905,7 @@ gsignond_signonui_data_get_open_url (

    gsignond_signonui_data_set_open_url ()

    void
     gsignond_signonui_data_set_open_url (GSignondSignonuiData *data,
    -                                     const gchar *url);
    + const gchar *url);

    A setter for the URL that should be opened by signon UI.

    Parameters

    @@ -933,7 +933,7 @@ gsignond_signonui_data_set_open_url (

    gsignond_signonui_data_get_password ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_password (GSignondSignonuiData *data);

    A getter for the password string.

    @@ -962,7 +962,7 @@ gsignond_signonui_data_get_password (

    gsignond_signonui_data_set_password ()

    void
     gsignond_signonui_data_set_password (GSignondSignonuiData *data,
    -                                     const gchar *password);
    + const gchar *password);

    A setter for the password string.

    Parameters

    @@ -990,7 +990,7 @@ gsignond_signonui_data_set_password (

    gsignond_signonui_data_get_query_error ()

    -
    gboolean
    +
    gboolean
     gsignond_signonui_data_get_query_error
                                    (GSignondSignonuiData *data,
                                     GSignondSignonuiError *error);
    @@ -1062,10 +1062,10 @@ there were no errors.


    gsignond_signonui_data_get_query_password ()

    -
    gboolean
    +
    gboolean
     gsignond_signonui_data_get_query_password
                                    (GSignondSignonuiData *data,
    -                                gboolean *query_password);
    + gboolean *query_password);

    A getter for the query password property. It indicates whether the signon UI should ask the user for a password (and return it in the password property).

    @@ -1103,7 +1103,7 @@ dictionary or not.

    void
     gsignond_signonui_data_set_query_password
                                    (GSignondSignonuiData *data,
    -                                gboolean query);
    + gboolean query);

    A setter for the query password property. It indicates whether the signon UI should ask the user for a password (and return it in the password property).

    @@ -1132,10 +1132,10 @@ should ask the user for a password (and return it in the password property).


    gsignond_signonui_data_get_query_username ()

    -
    gboolean
    +
    gboolean
     gsignond_signonui_data_get_query_username
                                    (GSignondSignonuiData *data,
    -                                gboolean *query_username);
    + gboolean *query_username);

    A getter for the query username property. It indicates whether the signon UI should ask the user for a username (and return it in the username property).

    @@ -1173,7 +1173,7 @@ dictionary or not.

    void
     gsignond_signonui_data_set_query_username
                                    (GSignondSignonuiData *data,
    -                                gboolean query);
    + gboolean query);

    A setter for the query username property. It indicates whether the signon UI should ask the user for a username (and return it in the username property).

    @@ -1202,10 +1202,10 @@ should ask the user for a username (and return it in the username property).


    gsignond_signonui_data_get_remember_password ()

    -
    gboolean
    +
    gboolean
     gsignond_signonui_data_get_remember_password
                                    (GSignondSignonuiData *data,
    -                                gboolean *remember_password);
    + gboolean *remember_password);

    A getter for whether the password should be remembered.

    Parameters

    @@ -1242,7 +1242,7 @@ dictionary or not.

    void
     gsignond_signonui_data_set_remember_password
                                    (GSignondSignonuiData *data,
    -                                gboolean remember);
    + gboolean remember);

    A setter for whether the password should be remembered.

    Parameters

    @@ -1270,7 +1270,7 @@ gsignond_signonui_data_set_remember_password

    gsignond_signonui_data_get_request_id ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_request_id (GSignondSignonuiData *data);

    A getter for the dialog request id. The id identifies the dialog so that it can be refreshed or updated.

    @@ -1300,7 +1300,7 @@ can be refreshed or updated.

    gsignond_signonui_data_set_request_id ()

    void
     gsignond_signonui_data_set_request_id (GSignondSignonuiData *data,
    -                                       const gchar *id);
    + const gchar *id);

    A setter for the dialog request id. The id identifies the dialog so that it can be refreshed or updated.

    @@ -1329,7 +1329,7 @@ can be refreshed or updated.


    gsignond_signonui_data_get_test_reply ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_test_reply (GSignondSignonuiData *data);

    A getter for the test reply values. It's used only by the signon ui implementations to test themselves.

    @@ -1359,7 +1359,7 @@ implementations to test themselves.

    gsignond_signonui_data_set_test_reply ()

    void
     gsignond_signonui_data_set_test_reply (GSignondSignonuiData *data,
    -                                       const gchar *reply);
    + const gchar *reply);

    A setter for the test reply values. It's used only by the signon ui implementations to test themselves.

    @@ -1388,7 +1388,7 @@ implementations to test themselves.


    gsignond_signonui_data_get_title ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_title (GSignondSignonuiData *data);

    A getter for the UI dialog title.

    @@ -1417,7 +1417,7 @@ gsignond_signonui_data_get_title (

    gsignond_signonui_data_set_title ()

    void
     gsignond_signonui_data_set_title (GSignondSignonuiData *data,
    -                                  const gchar *title);
    + const gchar *title);

    A setter for the UI dialog title.

    Parameters

    @@ -1445,7 +1445,7 @@ gsignond_signonui_data_set_title (

    gsignond_signonui_data_get_url_response ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_url_response
                                    (GSignondSignonuiData *data);

    A getter for the response URL. If the final URL was set in the request to the signon UI, and the signon UI @@ -1478,7 +1478,7 @@ this property. This is used by redirection-based authentication such as OAauth.<

    void
     gsignond_signonui_data_set_url_response
                                    (GSignondSignonuiData *data,
    -                                const gchar *response);
    + const gchar *response);

    A getter for the response URL. If the final URL was set in the request to the signon UI, and the signon UI detects that it has been reached, then the full final URL is returned using @@ -1514,7 +1514,7 @@ this property. This is used by redirection-based authentication such as OAauth.<


    gsignond_signonui_data_get_username ()

    -
    const gchar *
    +
    const gchar *
     gsignond_signonui_data_get_username (GSignondSignonuiData *data);

    A getter for the username string.

    @@ -1543,7 +1543,7 @@ gsignond_signonui_data_get_username (

    gsignond_signonui_data_set_username ()

    void
     gsignond_signonui_data_set_username (GSignondSignonuiData *data,
    -                                     const gchar *username);
    + const gchar *username);

    A setter for the username string.

    Parameters

    diff --git a/docs/html/gsignond-General-configuration.html b/docs/html/gsignond-General-configuration.html index 19f581b..e61b509 100644 --- a/docs/html/gsignond-General-configuration.html +++ b/docs/html/gsignond-General-configuration.html @@ -118,7 +118,7 @@ information, including secret and metadata databases.

    This is a run-time value and any value read from configuration file is overwritten.

    Value provided by the default implementation: -GSIGNOND_CONFIG_GENERAL_STORAGE_PATH + "/gsignond." + g_get_user_name().

    +GSIGNOND_CONFIG_GENERAL_STORAGE_PATH + "/gsignond." + g_get_user_name().


    diff --git a/docs/html/gsignond-Logging.html b/docs/html/gsignond-Logging.html index 1ead9d0..8c110df 100644 --- a/docs/html/gsignond-Logging.html +++ b/docs/html/gsignond-Logging.html @@ -47,19 +47,19 @@ #define -INFO() +ERR() #define -ERR() +WARN() #define -WARN() +INFO() @@ -86,17 +86,8 @@

    gsignond/gsignond-log.h file contains logging macros that plugins and extensions should use for debugging and tracing.

    For example:

    -
    - - - - - - - -
    1
    -
    - +
    +

    Functions

    @@ -107,9 +98,9 @@ that plugins and extensions should use for debugging and tracing.


    -

    INFO()

    -
    #define             INFO(frmt, args...)
    -

    Use this macro to log informational messages. GSignond will take care of +

    ERR()

    +
    #define             ERR(frmt, args...)
    +

    Use this macro to log error messages. GSignond will take care of correctly saving them.

    Parameters

    @@ -136,9 +127,9 @@ correctly saving them.


    -

    ERR()

    -
    #define             ERR(frmt, args...)
    -

    Use this macro to log error messages. GSignond will take care of +

    WARN()

    +
    #define             WARN(frmt, args...)
    +

    Use this macro to log warning messages. GSignond will take care of correctly saving them.

    Parameters

    @@ -165,9 +156,9 @@ correctly saving them.


    -

    WARN()

    -
    #define             WARN(frmt, args...)
    -

    Use this macro to log warning messages. GSignond will take care of +

    INFO()

    +
    #define             INFO(frmt, args...)
    +

    Use this macro to log informational messages. GSignond will take care of correctly saving them.

    Parameters

    diff --git a/docs/html/gsignond-Utility-functions.html b/docs/html/gsignond-Utility-functions.html index 016b8d8..3ce1362 100644 --- a/docs/html/gsignond-Utility-functions.html +++ b/docs/html/gsignond-Utility-functions.html @@ -42,7 +42,7 @@ -gboolean +gboolean gsignond_wipe_file () @@ -50,7 +50,7 @@ -gboolean +gboolean gsignond_wipe_directory () @@ -58,7 +58,7 @@ -gchar * +gchar * gsignond_generate_nonce () @@ -66,7 +66,7 @@ -GVariant * +GVariant * gsignond_sequence_to_variant () @@ -74,7 +74,7 @@ -GSequence * +GSequence * gsignond_variant_to_sequence () @@ -82,7 +82,7 @@ -gchar ** +gchar ** gsignond_sequence_to_array () @@ -90,7 +90,7 @@ -GSequence * +GSequence * gsignond_array_to_sequence () @@ -98,7 +98,7 @@ -GSequence * +GSequence * gsignond_copy_array_to_sequence () @@ -106,7 +106,7 @@ -gboolean +gboolean gsignond_is_host_in_domain () @@ -133,8 +133,8 @@

    Functions

    gsignond_wipe_file ()

    -
    gboolean
    -gsignond_wipe_file (const gchar *filename);
    +
    gboolean
    +gsignond_wipe_file (const gchar *filename);

    This function securely wipes the contents of the file, by overwriting it with 0's, then 1's, then random data. The file is then removed.

    @@ -161,8 +161,8 @@ gsignond_wipe_file (const gchar

    gsignond_wipe_directory ()

    -
    gboolean
    -gsignond_wipe_directory (const gchar *dirname);
    +
    gboolean
    +gsignond_wipe_directory (const gchar *dirname);

    This function securely wipes the contents of the directory by calling gsignond_wipe_file() on each file. It also removes links and empty directories but does not recursively wipe them.

    @@ -190,7 +190,7 @@ does not recursively wipe them.


    gsignond_generate_nonce ()

    -
    gchar *
    +
    gchar *
     gsignond_generate_nonce ();

    This function generates a random secure nonce using SHA1 HMAC.

    @@ -202,8 +202,8 @@ gsignond_generate_nonce ();

    gsignond_sequence_to_variant ()

    -
    GVariant *
    -gsignond_sequence_to_variant (GSequence *seq);
    +
    GVariant *
    +gsignond_sequence_to_variant (GSequence *seq);

    Convert a string sequence to a variant.

    Parameters

    @@ -222,15 +222,15 @@ gsignond_sequence_to_variant (GSe

    Returns

    -

    GVariant of type "as".

    +

    GVariant of type "as".

    [transfer full]


    gsignond_variant_to_sequence ()

    -
    GSequence *
    -gsignond_variant_to_sequence (GVariant *var);
    +
    GSequence *
    +gsignond_variant_to_sequence (GVariant *var);

    Convert variant containing string array to sequence.

    Parameters

    @@ -249,15 +249,15 @@ gsignond_variant_to_sequence (GVa

    Returns

    -

    GSequence of strings.

    +

    GSequence of strings.

    [transfer full]


    gsignond_sequence_to_array ()

    -
    gchar **
    -gsignond_sequence_to_array (GSequence *seq);
    +
    gchar **
    +gsignond_sequence_to_array (GSequence *seq);

    Convert sequence of strings to null-terminated string array.

    Parameters

    @@ -283,8 +283,8 @@ gsignond_sequence_to_array (GSequ

    gsignond_array_to_sequence ()

    -
    GSequence *
    -gsignond_array_to_sequence (gchar **items);
    +
    GSequence *
    +gsignond_array_to_sequence (gchar **items);

    Convert null-terminated array of strings to a sequence.

    Parameters

    @@ -303,15 +303,15 @@ gsignond_array_to_sequence (gchar

    Returns

    -

    GSequence of strings.

    +

    GSequence of strings.

    [transfer full]


    gsignond_copy_array_to_sequence ()

    -
    GSequence *
    -gsignond_copy_array_to_sequence (const gchar **items);
    +
    GSequence *
    +gsignond_copy_array_to_sequence (const gchar **items);

    Copy null-terminated array of strings to a sequence.

    Parameters

    @@ -330,16 +330,16 @@ gsignond_copy_array_to_sequence (const

    Returns

    -

    GSequence of strings.

    +

    GSequence of strings.

    [transfer full]


    gsignond_is_host_in_domain ()

    -
    gboolean
    -gsignond_is_host_in_domain (const gchar *host,
    -                            const gchar *domain);
    +
    gboolean
    +gsignond_is_host_in_domain (const gchar *host,
    +                            const gchar *domain);

    Checks if host belongs to domain .

    diff --git a/docs/html/gsignond.devhelp2 b/docs/html/gsignond.devhelp2 index c362b01..10c9be1 100644 --- a/docs/html/gsignond.devhelp2 +++ b/docs/html/gsignond.devhelp2 @@ -230,9 +230,9 @@ - + diff --git a/docs/html/home.png b/docs/html/home.png index 9346b336a784463192c7daab5133a3673dd69845..28c2e27c6177f78365ca9fc04e5a1d0f0feaa51e 100644 GIT binary patch delta 141 zcmV;80CN9;0;vIzB!6&8L_t(|0b>}Z;Q#;sj6f;^h;IS$10YTXVrF9X+XC@fkU41h zCJ_7J)2IN%n?Z^R;N3v1jjWLuh&zDz8(a}#{0oR@0VO0|RG)M`SSr1MhVZW^~e+T>%tiFY)wsWxvZV zAS5rekVj1nDAeoe;uvCa`tGH@oJ@`aM?c=5w=7L8A&<8#fzd2Me_MjAxKw1rtQmI} zCa|Zmsb#C^oPJn4qk~_L=ggn`2Mqo!PwHXRz7o45u{SWhu8}$E8P{q52Ry0FGpgGw zx%@U9T+ICEn{c$x!yC+JYV`_^XC7GleT7ripLvXo$8wo-xx4b~pKWK-^Nck=6BqsK b@E0a)Rja3M2W7&5E@SX?^>bP0l+XkKl89Iq diff --git a/docs/html/index.sgml b/docs/html/index.sgml index cb15578..71b9a94 100644 --- a/docs/html/index.sgml +++ b/docs/html/index.sgml @@ -330,9 +330,9 @@ - + diff --git a/docs/html/left-insensitive.png b/docs/html/left-insensitive.png index 3269393a7f72af744a772c437bd7b3976c23709d..9b8005bf04f74b913d9c26a41ba78fa76e9e40fe 100644 GIT binary patch literal 329 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbK}U4T!BE0A8bYSn%)*t~i3jvYI8 z?%cU+*RH*L_wL)b@8H3MKn6q>$b~R~B#;eJ01TUjF><|CTkn!YSTu7x>?>b?vrJd?2?b!}r<6KCkq7b2NS^>|Z~{ zLNc!L5%W?tuN@1`Tt14IOw+j6GmqsQhiiNV!=iaC|5iWK_63^G;OXk;vd$@?2>`nv Br_2BV delta 379 zcmV->0fhd^0*eEX8Gi-<001BJ|6u?C00v@9M??Vs0RI60puMM)00009a7bBm000fw z000fw0YWI7cmMzZ2XskIMF-sn5EB9s#;b9M0003PNklX1cX;WAVDF>64Zu3Hr!r=Ab&MzcmwDLNk|I}1`<+W zb5U^Q%$YMYIS2k45<<%Je99Peq^e6rQB>RQ_Dirpx7(co&Vgy*re3ele(qPwhQ0TT zz}5Tk zx(%p^Y*}k}%XHrSa)F4vhPv~k3*P%RRXqRNs{~E95fn@UKB+uz#ULC#+(J`-~(|SU#sc@a0|?(X&Ujb Z@CF`LS*3z-JtF`B002ovPDHLkV1m2%p@RSb diff --git a/docs/html/left.png b/docs/html/left.png index 2abde032b0c98b756b12d380da4318205cd78470..c518641ea922e1490796318103566648d4878634 100644 GIT binary patch delta 159 zcmV;Q0AT-y0=of_B!7ZQL_t(|0oBhT4uJs}#&O#xm?#LUAS;q1NV2HAfjNZe1ez<5 z1f8VX1j%NG*Y615`z8L{uRhyT`A{Z$6p}qxwAyKJ~9)SP= N002ovPDHLkV1n4mMFju= delta 234 zcmdnZ*v2$LrJgOx+ueoXKL{?^yL>VO0|RG)M`SSr1MhVZW^~e+T>%tiFY)wsWxvZV zASADokZZjcC^XsA#WBR<^wmr2`3@$Ew14ckKj`8Zz#2I*rb(rHS9F2kBJB%zm^?3d zuJWCbllDhL{nndW--1UsE9bqfKKC$wRjcT{6-$y2$;vR@TY9K=4s+b%iA?;3ycLa6 zTsFsSA4F!o)8w)-_-PVTcUe2&*S8$yJ4%OSuF9Nbm_9)#@chIt1zacD&dPX-AD@s@ iTz=`8-S?^W(fYCR@|gw`jSmCe$KdJe=d#Wzp$PyP%U*5( diff --git a/docs/html/object-tree.html b/docs/html/object-tree.html index 56d30b5..4aeea42 100644 --- a/docs/html/object-tree.html +++ b/docs/html/object-tree.html @@ -23,7 +23,7 @@

    Object Hierarchy

    -    GObject
    +    GObject
         ├── GSignondAccessControlManager
         ├── GSignondConfig
         ├── GSignondCredentials
    diff --git a/docs/html/right-insensitive.png b/docs/html/right-insensitive.png
    index 4c95785b907b978f36674cd98bf5302669c15c1b..f999f0018413541fa62fe8a0efdfd3ba3fae3281 100644
    GIT binary patch
    delta 205
    zcmV;;05bpe0_g#eB!93;L_t(|0b>|^VBfxd|AF}M-o1OJ$ua<_@fy^S2mAN$*C5$|
    z9Xoaifm{GJ_E*cp@#eb;$V^uS+!~vGtdi@p@#ecdM%Z#Faa8p
    z4>aH}5dQ-j(m+nEEuhn^}MwW<$O33&@ToTJz@3n?|{Snl?Z+e+3%mL$u~Y
    zhYpDXHJyZNegnkjqz2k4sOA?yXB&}~lz|#=0S!`N7!m*g!Ge^Jq06)Q00000NkvXX
    Hu0mjf$U$2i
    
    delta 346
    zcmV-g0j2)w0rdiqB!32COGiWi{{a60|De66lK=n!32;bRa{vGh*8l(w*8xH(n|J^K
    z00(qQO+^RY2M`ki45h6dUH||A0!c(cR5;7clCes|U=)SF8w!Gxi?gdQpi>-@UnIoA
    z!9j6y(AifgK7fAS;p^XtJns1$PjgKy!yT
    zaR5OQ1)F3u^Ll))@ca|s?Gt~$#!nVh^eO5@aA8QgE)~I@3F+GG2%gMH*JMNRWn+a
    M07*qoM6N<$g1!_&$p8QV
    
    delta 233
    zcmdnR*vd3PrJgOx+ueoXKL{?^yL>VO0|RG)M`SSr1MhVZW^~e+T>%tiFY)wsWxvZV
    zASACScgGzl!Z69x#WBR<^wmr2`5F^Nj(_a8pY6M4ucv5=YZ3b_oqacTcd%a+&3Nbd
    zh>68hBxllDp7lkOo>U4gpI5v8`SxPI{Sl&OFPyI*=arVVW;@B`DcGk4{wZm^+au&;*R85Oxri|{pc#>ib;_EAbI%8i`@NJhVzjLf%x5l@PhYJID
    z-_+dIy3{)EG>Eaktack`MuEB~)+_>?XC-S*XWtpgG)Un8ovxXA9=6C3fRr-OIH&#yNOK7Ibg
    lscqdo`>3sG_h}7RzE@9~Z``;Xn*_9g!PC{xWt~$(697*wl6n9D
    
    delta 358
    zcmV-s0h#`#0`>xs8Gi-<001BJ|6u?C00v@9M??Vs0RI60puMM)00009a7bBm000fw
    z000fw0YWI7cmMzZ2XskIMF-sn5EBF+cS-vO00034NklnqJnRS$RP{KF17pm|zX4TMt&zL}5Qmjl)y*u+uKxs-Ww{bX
    z(G7r}s_p>*$x{IDZQHKqd4BsVz&W?*y}tu617K*3IS6%zs=5zg6vy#$zu$lP0dUUE
    zd+#3s%mO$UkzZ|+3IM7~Ywa0;EdXyMmqg?h0HO(?X`0Irz9+dm35N7#$@1M10Ll@?S>`Tzg`07*qoM6N<$
    Ef&fvLQ~&?~
    
    diff --git a/docs/html/up.png b/docs/html/up.png
    index 80b4b37e997d69b2e128bc3090bc447ccb74bbe9..af46b2ada6174d22fd8cafaa79ea0125c5a891a7 100644
    GIT binary patch
    delta 159
    zcmV;Q0AT-w0=of_B!7ZQL_t(|0b?KtMnN+WH<7D3ABg`$aUQ9feS!El5dVYX-(WE!
    zfh!RIgxZ`5#s8sVu7orj0`W(vhAt%WZm8Htuo@gd5s05b6)yPy|34#40?J+pVnWp@
    zU^CzxRKYcmxk&nSZ|ndj3t`piGby=oGBXESd*8*P3;}A#}k@fjf`{<_Yjnru7%h^uQBv
    i3r}=FqinqY@-H9EwJH
     
     #include 
    @@ -65,40 +67,42 @@
     }
     
     /**
    - * INFO:
    + * ERR:
      * @frmt: format string for the message
      * @...: arguments for the format string
      * 
    - * Use this macro to log informational messages. GSignond will take care of
    + * Use this macro to log error messages. GSignond will take care of
      * correctly saving them.
      */
    -#define INFO(frmt, args...) g_message("%f %s:%d %s " frmt , \
    +#define ERR(frmt, args...)  g_critical("%f %s:%d %s " frmt , \
             g_get_monotonic_time()*1.0e-6, __FILE__, __LINE__, \
             __PRETTY_FUNCTION__, ##args)
     
     /**
    - * ERR:
    + * WARN:
      * @frmt: format string for the message
      * @...: arguments for the format string
      * 
    - * Use this macro to log error messages. GSignond will take care of
    + * Use this macro to log warning messages. GSignond will take care of
      * correctly saving them.
      */
    -#define ERR(frmt, args...)  g_critical("%f %s:%d %s " frmt , \
    +#define WARN(frmt, args...) g_warning("%f %s:%d %s " frmt , \
             g_get_monotonic_time()*1.0e-6, __FILE__, __LINE__, \
             __PRETTY_FUNCTION__, ##args)
     
    +#ifdef ENABLE_DEBUG
     /**
    - * WARN:
    + * INFO:
      * @frmt: format string for the message
      * @...: arguments for the format string
      * 
    - * Use this macro to log warning messages. GSignond will take care of
    + * Use this macro to log informational messages. GSignond will take care of
      * correctly saving them.
      */
    -#define WARN(frmt, args...) g_warning("%f %s:%d %s " frmt , \
    +#define INFO(frmt, args...) g_message("%f %s:%d %s " frmt , \
             g_get_monotonic_time()*1.0e-6, __FILE__, __LINE__, \
             __PRETTY_FUNCTION__, ##args)
    +
     /**
      * DBG:
      * @frmt: format string for the message
    @@ -110,5 +114,9 @@
     #define DBG(frmt, args...)  g_debug("%f %s:%d %s " frmt , \
             g_get_monotonic_time()*1.0e-6, __FILE__, __LINE__, \
             __PRETTY_FUNCTION__, ##args)
    +#else
    +# define INFO(frmt, args...)
    +# define DBG(frmt, args...)
    +#endif
     
     #endif /* __GSIGNOND_LOG_H_ */
    diff --git a/src/daemon/db/gsignond-db-metadata-database.c b/src/daemon/db/gsignond-db-metadata-database.c
    index 5c08c5e..e7b08e1 100644
    --- a/src/daemon/db/gsignond-db-metadata-database.c
    +++ b/src/daemon/db/gsignond-db-metadata-database.c
    @@ -1594,7 +1594,7 @@ gsignond_db_metadata_database_remove_reference (
                     "WHERE identity_id = %u AND "
                     "secctx_id = ( SELECT id FROM SECCTX "
                     "WHERE sysctx = %Q AND appctx = %Q ) "
    -                "AND ref = :ref;",
    +                "AND ref = %Q;",
                     identity_id, ref_owner->sys_ctx, ref_owner->app_ctx, reference);
         }
         if (!ret) {
    diff --git a/src/daemon/dbus/gsignond-dbus-identity-adapter.c b/src/daemon/dbus/gsignond-dbus-identity-adapter.c
    index 53804bf..ff5cda0 100644
    --- a/src/daemon/dbus/gsignond-dbus-identity-adapter.c
    +++ b/src/daemon/dbus/gsignond-dbus-identity-adapter.c
    @@ -713,7 +713,7 @@ _handle_add_reference (GSignondDbusIdentityAdapter *self,
     
         id = gsignond_identity_add_reference (self->priv->identity, reference, self->priv->sec_context, &error);
     
    -    if (id) {
    +    if (!error) {
             gsignond_dbus_identity_complete_add_reference (self->priv->dbus_identity, invocation, id);
         }
         else {
    @@ -743,7 +743,7 @@ _handle_remove_reference (GSignondDbusIdentityAdapter *self,
     
         id = gsignond_identity_remove_reference (self->priv->identity, reference, self->priv->sec_context, &error);
     
    -    if (id) {
    +    if (!error) {
             gsignond_dbus_identity_complete_remove_reference (self->priv->dbus_identity, invocation, id);
         } else {
             g_dbus_method_invocation_return_gerror (invocation, error);
    diff --git a/src/daemon/gsignond-daemon.c b/src/daemon/gsignond-daemon.c
    index 24b76d1..eb072c2 100644
    --- a/src/daemon/gsignond-daemon.c
    +++ b/src/daemon/gsignond-daemon.c
    @@ -156,14 +156,12 @@ _finalize (GObject *object)
     static gboolean
     _init_extension (GSignondDaemon *self)
     {
    -    guint32 ext_ver = gsignond_extension_get_version (self->priv->extension);
    -
         DBG ("Initializing extension '%s' %d.%d.%d.%d",
              gsignond_extension_get_name (self->priv->extension),
    -         (ext_ver >> 24),
    -         (ext_ver >> 16) & 0xff,
    -         (ext_ver >> 8) & 0xff,
    -         ext_ver & 0xff);
    +         (gsignond_extension_get_version (self->priv->extension) >> 24),
    +         (gsignond_extension_get_version (self->priv->extension) >> 16) & 0xff,
    +         (gsignond_extension_get_version (self->priv->extension) >> 8) & 0xff,
    +         gsignond_extension_get_version (self->priv->extension) & 0xff);
     
         self->priv->storage_manager =
             gsignond_extension_get_storage_manager (self->priv->extension,
    diff --git a/tools/prepare-tizen.sh b/tools/prepare-tizen.sh
    index 6c8ad7a..f724ede 100755
    --- a/tools/prepare-tizen.sh
    +++ b/tools/prepare-tizen.sh
    @@ -11,10 +11,6 @@ fi
     
     mkdir -p $2 && \
     cd $2 && \
    -git rm -f -r *; rm -rf packaging;
    +git rm -f -r *;
     tar -xzvf $1 -C $2 --strip-components 1 && \
    -mkdir -p packaging && \
    -cp -f dists/rpm/gsignond-tizen.spec packaging/gsignond.spec && \
    -cp -f dists/rpm/gsignond-tizen.changes packaging/gsignond.changes && \
    -cp -f dists/rpm/gsignond-tizen.manifest packaging/gsignond.manifest && \
     git add -f *;
    -- 
    2.7.4