Commit Graph

126 Commits

Author SHA1 Message Date
Nicolas Williams
3e65dfbc32 Fix make dist missing files (#228) 2016-12-15 12:15:56 -06:00
Viktor Dukhovni
1017a594ef Use OpenSSL include path as needed
For consistency make "-I" part of the macro value set by autoconf.

For now, don't attempt to handle OpenSSL rpath in cf/crypto.m4.
That's much easier by just setting LDFLAGS when running configure.
Otherwise too many Makefiles to edit and libtool and automake do
their best to undo the rpath.
2016-05-07 05:29:12 -04:00
Viktor Dukhovni
131c8dd30e Export new ASN1 oid symbols and fix build
We added some new OID symbols in libasn1, make them public.

When an older Heimdal is already installed and its libraries don't
have some newly created symbols we run into build or test problems,
if libtool decides to use installed rather than just-built libraries.
This was happening with a few of test programs in libhx509.  Fixed.
2016-05-06 21:09:03 -04: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
Luke Howard
f789d8403e hx509: explicitly include ref/pkcs11.h
review comment from Nico Williams: explicitly include ref/pkcs11.h to
avoid any conflict with system PKCS#11 header
2015-12-09 11:03:48 +11:00
Love Hörnquist Åstrand
30768c75bb make quiet 2014-08-22 21:25:01 -07:00
Viktor Dukhovni
46e0bd3c68 Use P-256 for EC tests
Fedora/RedHat OpenSSL supports only P-256, P-384 and P-521.

The new mkcert.sh script can create updated certs when these
expire on Jan 17th 2038.
2014-03-12 21:18:03 -04:00
Love Hörnquist Åstrand
dbf523a15d clean files 2014-02-16 11:52:22 -08:00
Love Hörnquist Åstrand
762a72d650 use noinst_HEADERS for hx509-private.h 2014-02-16 09:15:48 -08:00
Love Hörnquist Åstrand
cae2e6f168 include hx509-private.h 2014-02-16 09:15:39 -08:00
Philip Boulain
12f7c3248b dd include flags for test cases.
When building with OpenSSL at a custom prefix, some test cases will fail
 to compile due to missing include path compiler options. This patch adds
 them, as well as defining CPPFLAGS and LDADD for test_expr.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2012-09-10 08:39:42 -07:00
Roland C. Dowdeswell
be5afdbf7f Make concurrent builds work.
To stop the errors when building concurrently, we make a number of
changes:

        1.  stop including generated files in *_SOURCES,

        2.  make *-protos.h and *-private.h depend on the *_SOURCES,

        3.  make all objects depend on *-{protos,private}.h,

        4.  in a few places change dir/header.h to $(srcdir)/dir/header.h,

This appears to work for me with make -j16 on a 4-way box.
2012-08-08 00:04:04 +01:00
Nicolas Williams
98809e86ce Move base into lib
This involves reverting dd267e8fc3,
    but that gets lost in the move.

    This builds on Ubuntu and Windows at this time.
2012-06-20 19:32:08 -05:00
Love Hörnquist Åstrand
01ddeee37f use heim_verbose 2011-11-13 10:01:40 -08:00
Love Hornquist Astrand
9f46874cfb add heimbase.la 2011-09-25 18:59:10 +02: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
12403a31ce sprinkle more windows files 2011-07-23 11:18:21 -07:00
Love Hörnquist Åstrand
7aaba443bc add NTMakefile and windows directories 2011-07-17 12:16:59 -07:00
Love Hörnquist Åstrand
e72940c962 more frameworks for test_name 2011-06-13 21:19:10 -07:00
Love Hornquist Astrand
5c34efcef1 add data/win-u16-in-printablestring.der 2010-09-13 00:04:47 -07:00
Love Hornquist Astrand
1ddb13e34a add missing files 2010-09-13 00:04:33 -07:00
Love Hornquist Astrand
ed7a5175fb add opt files 2010-09-12 23:37:36 -07:00
Love Hornquist Astrand
fab9dd38e1 use option file 2009-11-22 13:51:09 -08:00
Love Hornquist Astrand
70e2dd4bd6 add more depencies 2009-11-21 23:08:00 -08:00
Love Hornquist Astrand
824ac40a10 add data/n0ll.pem 2009-09-30 01:18:34 -07:00
Love Hornquist Astrand
2ef2c451a4 drop $Id$ 2009-09-21 19:14:50 -07:00
Love Hornquist Astrand
3d7488398a abstract out depenecy tracking for tools 2009-09-16 05:40:55 -07:00
Love Hornquist Astrand
dc4e8669ea Abstract out asn1_compile and slc 2009-09-16 00:12:13 -07:00
Love Hornquist Astrand
aee7858b16 Clean new files 2009-08-21 15:14:57 -07:00
Love Hornquist Astrand
658a7b52ca clean better 2009-08-06 10:19:51 +02:00
Love Hornquist Astrand
1fc7af5bcf Add missing files 2009-08-05 11:13:01 +02:00
Love Hörnquist Åstrand
b57571d609 add depencies for ocsp_asn1.h pkcs10_asn1.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25265 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-06-03 17:25:28 +00:00
Love Hörnquist Åstrand
673f326a7f add ec certs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25008 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 21:15:20 +00:00
Love Hörnquist Åstrand
a10f8dad8e drop libnhx509
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:45:18 +00:00
Love Hörnquist Åstrand
ba69102e6b add flags to hx509_cms_verify_signed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24192 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:30:52 +00:00
Love Hörnquist Åstrand
ae6f751fc0 support egrep
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24065 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:51:49 +00:00
Love Hörnquist Åstrand
3ecc00cd39 provide convenice lib
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23885 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-13 02:59:28 +00:00
Love Hörnquist Åstrand
fcf5432599 bump version
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23325 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-26 03:54:55 +00:00
Love Hörnquist Åstrand
8ccb49daf4 Update make-proto usage.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23009 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-17 10:00:43 +00:00
Love Hörnquist Åstrand
7776ed30a9 Add language to support querying certificates to find a match. Support constructs like "1.3.6.1.5.2.3.5" IN %{certificate.eku} AND %{certificate.subject} TAILMATCH "C=SE"".
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22677 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-13 17:35:49 +00:00
Love Hörnquist Åstrand
faa8fc7e88 libhx509_la_OBJECTS depends on hx_locl.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22649 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-25 07:40:05 +00:00
Love Hörnquist Åstrand
8b9c6c4121 Use ldap-prep (with libwind) to compare names
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-11 20:46:21 +00:00
Love Hörnquist Åstrand
781d1c3f15 add java pkcs11 test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22459 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-15 21:46:20 +00:00
Love Hörnquist Åstrand
b88db65522 Bump version.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22457 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-15 20:23:14 +00:00
Love Hörnquist Åstrand
fbf8876015 remove p11dbg.log
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22442 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-14 21:21:22 +00:00
Love Hörnquist Åstrand
c9f443454e Add a PKCS11 provider supporting signing and verifing sigatures.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22435 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-14 20:53:56 +00:00
Love Hörnquist Åstrand
168dc868fe add doxygen.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22217 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-08 07:40:19 +00:00
Love Hörnquist Åstrand
ec82df5025 drop data/serial
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 18:38:04 +00:00
Love Hörnquist Åstrand
ce00901078 remove index.txt*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22078 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-15 07:20:02 +00:00
Love Hörnquist Åstrand
6df0c89dc8 nist pkits tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21802 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 10:38:52 +00:00