Commit Graph

5731 Commits

Author SHA1 Message Date
Houzéfa Abbasbhay 32a4049cdc Mention Python 3 support in the changelog 2015-02-12 19:21:12 +01:00
Houzéfa Abbasbhay 87efa7ee55 Python 3: Disable "PyGObjectPtrType" to avoid crashes (needs
investigation)
2015-02-12 19:21:12 +01:00
Houzéfa Abbasbhay 70b9d765bc Python 3: Fix a string function 2015-02-12 19:21:12 +01:00
Houzéfa Abbasbhay a4b1749c3c Python 3: Fix module init 2015-02-12 19:21:12 +01:00
Houzéfa Abbasbhay e4ebeefab3 Python 3: PyObject_HEAD_INIT(NULL) -> PyVarObject_HEAD_INIT(NULL, 0)
(to play better with C strict aliasing rules - see PEP 3123)
2015-02-12 19:21:11 +01:00
Houzéfa Abbasbhay 25d2cec7ab Python 3: Defs for int & string related functions 2015-02-12 19:21:11 +01:00
Houzéfa Abbasbhay e5d5acf9df Python 3:
- file(...) -> open(...)
- print ... -> print(...)
- print >> fd, ... -> print(..., file=fd)
- basestring -> str
- map(...) -> list(map(...))
2015-02-12 19:21:11 +01:00
Houzéfa Abbasbhay e315898e24 Python 3: PyObject.ob_type is deeper in the structure; use the Py_TYPE
macro instead
2015-02-12 19:21:11 +01:00
Houzéfa Abbasbhay 9137e81966 Python 3: Fix print calls in configure.ac 2015-02-12 19:21:11 +01:00
Houzéfa Abbasbhay aebd959589 Ignore some Perl binding files 2015-02-12 19:21:11 +01:00
Houzéfa Abbasbhay 352ad0118f Ignore /test-driver 2015-02-12 19:21:11 +01:00
Benjamin Dauvergne 05fe802b8d SAML-2.0: Rework protocol profile selection when parsing AuthnRequest messages
This commit also add tests around authn request parsing.
2015-02-12 16:40:12 +01:00
Benjamin Dauvergne 3e597eedb9 Add support for SHA-2 family of hash functions for RSA and HMAC signatures 2015-02-09 18:53:02 +01:00
Benjamin Dauvergne 4436c0d4e4 Check return value of lasso_session_add_assertion() in lasso_login_build_assertion() 2015-01-21 15:04:00 +01:00
Benjamin Dauvergne f46bc41cd7 Remove _POSIX_SOURCE declaration as it's not needed 2015-01-21 15:03:09 +01:00
Simo Sorce f9e3d85bf6 Fix coverity issue about unchecked return
If find_path() does not find MinorVersion, then no value is changed and
we repeate the search with the values for thr major version.
Check if we have found anything and if not set the minor version to 0.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-12-09 00:40:59 +01:00
Benjamin Dauvergne e54e7d3474 Improve top level commint in CGI script example 2014-10-17 23:02:12 +02:00
Benjamin Dauvergne 3a7173ad3b Add simple example of a CGI service provider script written in C 2014-10-17 23:00:18 +02:00
Benjamin Dauvergne 64f291c3f3 Remove dead code in the PHP5 binding 2014-10-02 22:22:21 +02:00
Benjamin Dauvergne 4ad4b67394 xml: modify xschema snippets to handle xsd:choice constructs 2014-09-02 12:04:42 +02:00
Benjamin Dauvergne a27d1686b3 xml: support xsd:choices by allowing to rewind or advance after match or miss of a snippet 2014-09-02 12:04:42 +02:00
Simo Sorce fda8ae9f85 Fix header guard
Found by clang

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-08-28 18:32:31 +02:00
Simo Sorce 3bd2c479a0 Assert on missing id
In this function id is required, so just assert if it is missing.
This also silences a warning about "reference" being used unintialized
if "id" is null.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-08-28 18:32:30 +02:00
Simo Sorce 23d961fe71 Missing variable initialization
If name_id s unconditonally dereferenced in the cleanup code.
If it is not initialized it may cause segfaults or other misbehaviors.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-08-28 18:32:30 +02:00
Benjamin Dauvergne c4989dacfa Fix release date of 2.4.1 2014-08-28 17:20:18 +02:00
Benjamin Dauvergne d95a7afcb6 Release 2.4.1 2014-08-28 16:02:06 +02:00
Benjamin Dauvergne 8484e7a065 Add tool gitlog-to-changelog 2014-08-28 16:00:13 +02:00
Frédéric Péters cad7b33c73 saml-2.0: set NotOnOrAfter on the Conditions element (#5248)
This is actually required for interoperability with Dropbox SAML support.
2014-08-12 10:11:33 +02:00
Benjamin Dauvergne fd10b952a8 doc: add lasso_server_add_provider2 and lasso_server_load_metadata 2014-08-12 10:11:33 +02:00
Frédéric Péters 8b396a04a3 debian: don't move perl files 2014-08-11 10:32:29 +02:00
Frédéric Péters 20cc7fea79 debian: accomodate perl now installing in the right directory 2014-08-11 10:11:27 +02:00
Frédéric Péters d297c88224 perl: keep on using PREFIX, required for distcheck 2014-08-11 09:55:42 +02:00
Frédéric Péters 9b99eaee8a reformat gtk-doc function comment to work with gtk-doc 1.21 2014-08-11 09:41:36 +02:00
Simon Josefsson ced1f047c2 fix pkg-config typo. 2014-08-11 09:12:42 +02:00
Niko Tyni f53c1aaaac Use INSTALLDIRS=vendor for the Perl bindings, as per the Debian Perl policy
Debian packaged Perl modules should be installed into the vendor
directories (currently /usr/lib/perl5 and /usr/share/perl5), but the
upstream default puts the into the 'site' ones (modified with the
PREFIX setting.) Explicitly using INSTALLDIRS=vendor simplifies
the install rules and removes the need for PREFIX, which has
been deprecated in ExtUtils::MakeMaker for a long time.
2014-08-06 11:42:52 +03:00
Benjamin Dauvergne 875f40832b Restore not-unused code
Clang was wrong on one instance, a value must be initialized to its NULL
state before using any lasso_assign_ macro with it.

Bug introduced in 4789e8d4d6.
2014-07-30 17:17:08 +02:00
Simo Sorce d911a2092f One more uninitialized value
encode_key may be release when not initialized if va_args returns null
on the first while loop.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:45 +02:00
Simo Sorce 99376a3c88 Fix potential null dereference errors
Ina  number of cases function inputs are not checked for NULL although
values may end up with a NULL value and then they are dereferenced
directly.
Check values in the function (or the caller) if appropriate.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:45 +02:00
Simo Sorce 1b955021a5 Do not dereference null pointers
Sounds like these should all be boolean 'OR's, otherwise,
if profile is not in fact a lasso profile then profile->private_data
will be dereferenced even if it is NULL.
Found by Clang

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:45 +02:00
Simo Sorce cb7ea06ca5 Rearrange case checking to avoid compiler warnings
The compiler was complaining that 'compa' could be uninitialized.
USe this occasion to make the code simpler to understand and assign
actually meaningful values to the variable, even though the proper
actions are not implemented yet.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:44 +02:00
Simo Sorce 86bfc84ba1 Properly exit on error
The rc error was being set but then it was being ignored.
Get out immediately if an Issuer can't be found.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:44 +02:00
Simo Sorce f91f4b4b8f Consistently check dsig_reference_ctx
Check if this is not NULL in all cases, to avoid NULL pointer dereference.
Found by clang

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:44 +02:00
Simo Sorce 4789e8d4d6 Trim unused code
Clang complains these values are never used, avoid even assigning them.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:44 +02:00
Simo Sorce b6b458e000 Trim dead code
These conditions can never be reached as the list is filtered with
and and to the value of 0xff, so just drop them, they are misleading.
(Also silences checkers which were screaming of deadcode, for each and
every unmatchable value ...)

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:44 +02:00
Simo Sorce be02981ff1 Fix confusing loop test
Coverity was marking the check for tsnippet after the while loop,
confused by the check. Make it more readable, and in the process
make checkers happy too.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:44 +02:00
Simo Sorce 1f97a06a01 Fix some uninitialized value
The compiler complain about these values not being initialized.
come of them do not really matter as they are only really used when
later initialized in the code and the code paths would not use them
if not initialized in a previous block, however some of these seem
real issues.
In all cases make the compiler happy so we get less noise in the build
and less false positives in code chckers.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:44 +02:00
Simo Sorce 80757431b3 Missing check for Sig_Alg value
Initialize the sig_alg value to NULL (The compilers was complaining it may
be used initialized), but also make sure to check the re is any sig_alg at
all, otherwise return a proper error.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:44 +02:00
Simo Sorce 899f5c8880 Fix boundary check
Coverity was marking this as an array overun as the check would never be
possible and wuld allow any value for query_request_type, including "unset"
wihch is 0.
fix the boundary checks.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:44 +02:00
Simo Sorce 661f81014e Fix uninitialized values found by Coverity
These values where being used without being initialized at least in some edge
cases. Make Coverity happy by properly initializing them.
Some of these are real bugs, not just silencing a tool.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:43 +02:00
Simo Sorce 86328f2937 Fix format check for date
Coverity was complaining that tm was used uninitialized, but the truth is
that a third error condition where the string passed in matches no valid
format was not handled. Just return an error in that case.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-07-30 16:07:43 +02:00