
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.
26 lines
488 B
C
26 lines
488 B
C
#ifndef __crypto_header__
|
|
#define __crypto_header__
|
|
|
|
#ifndef PACKAGE_NAME
|
|
#error "need config.h"
|
|
#endif
|
|
|
|
#ifdef KRB5
|
|
#include <krb5-types.h>
|
|
#endif
|
|
|
|
#include <hcrypto/evp.h>
|
|
#include <hcrypto/des.h>
|
|
#include <hcrypto/md4.h>
|
|
#include <hcrypto/md5.h>
|
|
#include <hcrypto/sha.h>
|
|
#include <hcrypto/rc4.h>
|
|
#include <hcrypto/rc2.h>
|
|
#include <hcrypto/ui.h>
|
|
#include <hcrypto/rand.h>
|
|
#include <hcrypto/engine.h>
|
|
#include <hcrypto/pkcs12.h>
|
|
#include <hcrypto/hmac.h>
|
|
|
|
#endif /* __crypto_header__ */
|