Commit Graph

11 Commits

Author SHA1 Message Date
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
0f138cf2d5 Add missing hcrypto rename macros 2016-04-15 00:16:15 -05:00
Love Hörnquist Åstrand
56440edb0e add BN_CTX_{start,end}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24810 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:30:49 +00:00
Love Hörnquist Åstrand
15dec2cc3b remove var
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24809 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:30:40 +00:00
Love Hörnquist Åstrand
b62bc750a1 add BN_CTX_get
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24808 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:30:27 +00:00
Love Hörnquist Åstrand
93261f08f6 make types more typesafe.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24807 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:30:15 +00:00
Love Hörnquist Åstrand
aea6ecb992 add BN_CTX_new(), BN_CTX_free()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24806 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:30:06 +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
d274926bde (BN_is_negative): make argument const.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22260 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-09 06:23:47 +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