Roland C. Dowdeswell
cc47c8fa7b
Turn on -Wextra -Wno-sign-compare -Wno-unused-paramter and fix issues.
...
We turn on a few extra warnings and fix the fallout that occurs
when building with --enable-developer. Note that we get different
warnings on different machines and so this will be a work in
progress. So far, we have built on NetBSD/amd64 5.99.64 (which
uses gcc 4.5.3) and Ubuntu 10.04.3 LTS (which uses gcc 4.4.3).
Notably, we fixed
1. a lot of missing structure initialisers,
2. unchecked return values for functions that glibc
marks as __attribute__((warn-unused-result)),
3. made minor modifications to slc and asn1_compile
which can generate code which generates warnings,
and
4. a few stragglers here and there.
We turned off the extended warnings for many programs in appl/ as
they are nearing the end of their useful lifetime, e.g. rsh, rcp,
popper, ftp and telnet.
Interestingly, glibc's strncmp() macro needed to be worked around
whereas the function calls did not.
We have not yet tried this on 32 bit platforms, so there will be
a few more warnings when we do.
2012-02-20 19:45:41 +00:00
Nicolas Williams
a222521e68
64-bit build fixes for ASN.1 compiler 64-bit integer support
2011-12-13 13:03:57 -06:00
Love Hornquist Astrand
80fd2959b9
check length of TESTuint64
2011-12-12 23:13:47 -08:00
Nicolas Williams
19d378f44d
Add 64-bit integer support to ASN.1 compiler
...
ASN.1 INTEGERs will now compile to C int64_t or uint64_t, depending
on whether the constraint ranges include numbers that cannot be
represented in 32-bit ints and whether they include negative
numbers.
Template backend support included. check-template is now built with
--template, so we know we're testing it.
Tests included.
2011-12-12 20:01:20 -06:00
Jeffrey Altman
b8ce309acb
Permit TESTMechType array to initialize on Windows (C89)
...
Change-Id: I3c006b9c45f29b129ad6f5102792c1e912bd9c8e
2011-07-21 11:36:31 -04:00
Love Hornquist Astrand
1a77d64a97
check encoding of MechTypeList
2011-05-07 06:34:36 -07:00
Love Hornquist Astrand
fa4c84e6d6
make printablestring and ia5string octetstrings
2010-08-08 15:51:33 -07:00
Love Hornquist Astrand
e65154c6db
catch error from as.*printf
2010-05-30 14:48:48 -07:00
Love Hornquist Astrand
b939943b07
first stange of asn1 table driven compiler
2009-11-21 10:24:56 -08:00
Love Hörnquist Åstrand
0e6b5c5c22
remove trailing whitespace
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25232 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:17:17 +00:00
Love Hörnquist Åstrand
6937d41a02
remove trailing whitespace
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898
switch to utf8 encoding of all files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
7e39290a32
test SEQ OF SIZE (...)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21539 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-14 16:12:04 +00:00
Love Hörnquist Åstrand
d2c12f1435
(test_authenticator): free memory
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20837 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 13:24:47 +00:00
Love Hörnquist Åstrand
7c114c4051
(check_seq): free seq.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20546 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-24 09:50:37 +00:00
Love Hörnquist Åstrand
b9736129b2
Check all other silly bitstring combinations.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19569 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 17:25:21 +00:00
Love Hörnquist Åstrand
360e32e201
unbreak
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18791 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 20:51:17 +00:00
Love Hörnquist Åstrand
6f6a02b312
avoid leaking memory
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18769 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 18:27:59 +00:00
Love Hörnquist Åstrand
83a1f5bc00
Add sequence tests.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18014 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 14:15:53 +00:00
Love Hörnquist Åstrand
3ec55439c0
check for "tagless ANY OPTIONAL"
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16671 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-31 09:42:31 +00:00
Love Hörnquist Åstrand
88df0535c2
Check OPTIONAL context-tagless elements.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 17:26:25 +00:00
Love Hörnquist Åstrand
a1d193721c
Don't depend on malloc(very-very-larger-value) will fail.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16056 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-13 19:35:32 +00:00
Love Hörnquist Åstrand
3b70a5f5e3
Fix signedness warnings.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16055 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-13 19:24:23 +00:00
Love Hörnquist Åstrand
a1d804e568
change to c89 comment
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15771 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-27 11:53:39 +00:00
Love Hörnquist Åstrand
5dfc656f1e
Two implicit tests, one with all structures inlined
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15703 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-21 20:48:27 +00:00
Love Hörnquist Åstrand
f9186683ce
Added #ifdef out test for IMPLICIT tagging.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15698 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-21 19:47:58 +00:00
Love Hörnquist Åstrand
b49d932283
(cmp_Name): do at least some checking
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15626 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 18:05:29 +00:00
Love Hörnquist Åstrand
b838707d0e
Commit much improved ASN.1 compiler from joda-choice-branch.
...
Highlighs for the compiler is support for CHOICE and in general better
support for tags. This compiler support most of what is needed for
PK-INIT, LDAP, X.509, PKCS-12 and many other protocols.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 06:27:42 +00:00
Love Hörnquist Åstrand
0f49388ac2
test for: (length_type): TSequenceOf: add up the size of all the
...
elements, don't use just the size of the last element.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13313 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 22:15:42 +00:00
Johan Danielsson
92c75b1260
there is no \e escape sequence; replace everything with hex-codes, and
...
cast to unsigned char* to make some compilers happy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12219 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-06 16:21:19 +00:00
Love Hörnquist Åstrand
2185a5f683
add checks for Authenticator too
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11615 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-26 10:55:07 +00:00
Love Hörnquist Åstrand
350b97991f
add Principal check
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11601 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-23 10:22:39 +00:00