Commit Graph

22 Commits

Author SHA1 Message Date
Jeffrey Altman
1dd38cc3de lib/hx509: declare and apply HX509_LIB_xxx macros
libhx509 is not built according to the same export and calling conventions
on Windows as the other libraries.  This change declares and applies
HX509_LIB_FUNCTION, HX509_LIB_NORETURN_FUNCTION, HX509_LIB_CALL and
HX509_LIB_VARIABLE to lib/hx509.

As a result of this change the calling convention for exported functions
will be __stdcall instead of __cdecl.

Change-Id: Ibc3f05e8088030ef7d13798f1d9c9b190bc57797
2019-01-02 10:23:39 -06:00
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
Love Hornquist Astrand
f5f9014c90 Warning fixes from Christos Zoulas
- shadowed variables
- signed/unsigned confusion
- const lossage
- incomplete structure initializations
- unused code
2011-04-29 20:25:05 -07:00
Love Hornquist Astrand
50de7c4203 (hx509_lock_free): allow freeing NULL 2009-09-29 11:12:32 -07:00
Love Hörnquist Åstrand
ff5dab4f4a remove rcsid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24795 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:28:18 +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
b3efcbda59 more documentation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22327 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-15 04:49:37 +00:00
Love Hörnquist Åstrand
0be84e946a Add page referance
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22323 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-15 03:48:01 +00:00
Love Hörnquist Åstrand
dcc23a24d0 Match the prompt type PROMPT exact.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18452 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 09:41:05 +00:00
Love Hörnquist Åstrand
744eef1102 (hx509_prompt_hidden): reshuffle to avoid gcc warning
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17552 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-12 10:14:07 +00:00
Love Hörnquist Åstrand
fc61c200df (hx509_prompt_hidden): return if the prompt should be hidden or not
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17550 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-12 10:12:32 +00:00
Love Hörnquist Åstrand
12349fd46a Deal with that hx509_prompt.reply is no longer a pointer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17416 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-03 16:39:11 +00:00
Love Hörnquist Åstrand
43470798fb update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16739 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-14 10:45:47 +00:00
Love Hörnquist Åstrand
163c6cb7b5 delete crypto_headers.h, use global file instead
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16560 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 14:02:49 +00:00
Love Hörnquist Åstrand
8845ce15db Use "crypto_headers.h".
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16487 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 22:02:14 +00:00
Love Hörnquist Åstrand
7dcf3289bb add a hx509_context where we can store configuration
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16476 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 20:33:31 +00:00
Love Hörnquist Åstrand
3580639950 (_hx509_lock_unlock_certs): return unlock certificates
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16451 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 16:33:30 +00:00
Love Hörnquist Åstrand
f1778e69af Implement prompter.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16031 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-04 15:25:59 +00:00
Love Hörnquist Åstrand
0ee0cae9ed Add hx509_lock_command_string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16020 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-03 20:49:59 +00:00
Love Hörnquist Åstrand
9a65106a30 fix id tags
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15718 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-24 20:05:40 +00:00
Love Hörnquist Åstrand
0a70228c08 Initial revision
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15716 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-24 16:59:14 +00:00