Jeffrey Altman
2660580507
lib/otp: opt_md_init do not leak ctx if malloc fails
...
Change-Id: I21d7d50e11430bea18832854d817405b761c254c
2022-01-15 22:49:56 -05:00
Marcin Cieślak
033001e732
Prefer BDB3/4/5 to BDB1/2
2016-11-08 15:48:40 -05:00
Nicolas Williams
490337f4f9
Make OpenSSL an hcrypto backend proper
...
This adds a new backend for libhcrypto: the OpenSSL backend.
Now libhcrypto has these backends:
- hcrypto itself (i.e., the algorithms coded in lib/hcrypto)
- Common Crypto (OS X)
- PKCS#11 (specifically for Solaris, but not Solaris-specific)
- Windows CNG (Windows)
- OpenSSL (generic)
The ./configure --with-openssl=... option no longer disables the use of
hcrypto. Instead it enables the use of OpenSSL as a (and the default)
backend in libhcrypto. The libhcrypto framework is now always used.
OpenSSL should no longer be used directly within Heimdal, except in the
OpenSSL hcrypto backend itself, and files where elliptic curve (EC)
crypto is needed.
Because libhcrypto's EC support is incomplete, we can only use OpenSSL
for EC. Currently that means separating all EC-using code so that it
does not use hcrypto, thus the libhx509/hxtool and PKINIT EC code has
been moved out of the files it used to be in.
2016-04-15 00:16:17 -05:00
Nicolas Williams
c6f24e99f0
Revamp cf/db.m4; test LMDB
2016-02-26 00:55:32 -06:00
Nicolas Williams
0b9891214e
Make lib/otp/Makefile.am use -I$(DBHEADER)
2013-10-04 19:00:57 -04: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
Linus Nordberg
2e35198908
Add version-script.map to _DEPENDENCIES.
...
Added to 11 out of 14 directories with map files. Not lib/ntlm,
lib/hcrypto and kdc which have the map file as an explicit dependency
to _OBBJECTS.
Signed-off-by: Love Hörnquist Åstrand <lha@h5l.org >
2011-07-24 14:07:59 -07:00
Love Hörnquist Åstrand
7aaba443bc
add NTMakefile and windows directories
2011-07-17 12:16:59 -07:00
Love Hörnquist Åstrand
45b9139cc4
if we are using db1 or db3 (really 3,4,5), when we will need LIB_db_create, otherwise use LIB_NDBM
2011-06-19 11:20:48 -07:00
Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Nicolas Williams
9cbe3298d7
Second attempt to make DB selection saner.
...
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2011-04-04 22:44:57 -07:00
Guillaume Rousse
bf208183dc
add version-script.map to distributed files
...
Signed-off-by: Guillaume Rousse <Guillaume.Rousse@inria.fr >
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2010-09-15 20:06:24 -07:00
Love Hornquist Astrand
936c3bbd7e
add otp_find_alg
2009-12-13 13:52:34 -08:00
Love Hornquist Astrand
e3044663df
add version script to libotp
2009-12-07 21:15:29 -08:00
Love Hornquist Astrand
c6bbdb545b
First drop of Windows build infrastructure from Secure Endpoints
2009-11-24 12:12:53 -08:00
Love Hornquist Astrand
4f7156de1a
switch to EVP_MD_CTX_create() and thus make smaller
2009-08-21 06:45:20 -07:00
Love Hornquist Astrand
c45ecc94bf
switch to use EVP interface instead of old MDX_ style interface
2009-08-16 18:28:40 +02:00
Love Hornquist Astrand
9b138fdec4
remove HAVE_CONFIG_H
2009-08-16 18:28:12 +02:00
Love Hörnquist Åstrand
14def0bbc0
rename different symbols
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24764 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-17 02:51:10 +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
55da941b89
Clean symlinks and built-files.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22642 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-24 21:53:03 +00:00
Love Hörnquist Åstrand
f8ec283391
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21618 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-17 07:28:59 +00:00
Love Hörnquist Åstrand
17ef5ec809
split source files in dist and nodist.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-17 07:28:19 +00:00
Love Hörnquist Åstrand
1142dc5244
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21449 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-10 12:47:07 +00:00
Love Hörnquist Åstrand
7c70697256
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21448 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-10 12:46:24 +00:00
Love Hörnquist Åstrand
cc4333b758
remove cvs ignore files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 03:09:59 +00:00
Assar Westerlund
61cdb8dc19
*** empty log message ***
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20988 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-07 21:06:54 +00:00
Assar Westerlund
c4819f4de8
NIIL should be NIL
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20987 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-07 21:06:00 +00:00
Love Hörnquist Åstrand
7ba2b2006c
rename des to hcrypto
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-20 08:29:05 +00:00
Love Hörnquist Åstrand
b6d9890960
update version number and remove depenency on libvers for libraries
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19974 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 17:30:31 +00:00
Love Hörnquist Åstrand
2bddc22c0e
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17517 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-08 14:15:32 +00:00
Love Hörnquist Åstrand
a7271a78b9
Less "pointer targets in passing argument differ in signedness" warnings.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17516 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-08 14:15:20 +00:00
Love Hörnquist Åstrand
117dcc115a
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15607 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 14:42:05 +00:00
Love Hörnquist Åstrand
faaa2e6d98
remove parameter names to avoid shadow warnings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15606 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 14:41:47 +00:00
Love Hörnquist Åstrand
e0ce376387
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15577 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-07 20:31:53 +00:00
Love Hörnquist Åstrand
fc24c4d403
(parse_words): avoid const warnings by making a (shorter) copy of the
...
string instead of truncating it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15576 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-07 20:31:07 +00:00
Love Hörnquist Åstrand
1ddf04ca40
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14499 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-08 23:06:02 +00:00
Love Hörnquist Åstrand
7d377c3e98
cast argument to tolower to unsigned char
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14498 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-08 23:05:07 +00:00
Johan Danielsson
0624b4457e
replace INCLUDES with AM_CPPFLAGS
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14164 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-26 11:55:29 +00:00
Love Hörnquist Åstrand
ce9c1eac40
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12054 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 16:36:17 +00:00
Love Hörnquist Åstrand
8b94fcd97e
rename strlcat, strlcpy
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12053 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 16:33:57 +00:00
Love Hörnquist Åstrand
8512bd5ac5
build with strlcat strlcpy
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12052 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 16:33:09 +00:00
Love Hörnquist Åstrand
815445af73
use strlcpy, from openbsd
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12050 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 16:28:03 +00:00
Love Hörnquist Åstrand
d1604b3dc5
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12049 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 16:21:08 +00:00
Love Hörnquist Åstrand
70a07c093d
use strlcat/strlcpy, from openbsd
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12048 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 16:19:33 +00:00
Love Hörnquist Åstrand
470fe54cee
do strdup again, we desupport ultrix
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12047 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 16:17:49 +00:00
Johan Danielsson
fe3c019a71
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11452 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 21:02:34 +00:00
Johan Danielsson
b1838de129
if we only have old hash names, we need to include functions here that
...
do the work
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11451 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 21:02:30 +00:00
Johan Danielsson
77de2f4011
use crypto-headers.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 20:03:49 +00:00