crypto headers are now stable, provide posix krb5-types.h

This commit is contained in:
Love Hornquist Astrand
2009-09-16 00:24:25 -07:00
parent dc4e8669ea
commit cddc59924c
4 changed files with 80 additions and 120 deletions

54
include/crypto-headers.h Normal file
View File

@@ -0,0 +1,54 @@
#ifndef PACKAGE_NAME
#error "need config.h"
#endif
#ifdef HAVE__OPENSSL
#ifndef OPENSSL_DES_LIBDES_COMPATIBILITY
#define OPENSSL_DES_LIBDES_COMPATIBILITY
#endif
#include <openssl/evp.h>
#include <openssl/des.h>
#include <openssl/rc4.h>
#include <openssl/rc2.h>
#include <openssl/md2.h>
#include <openssl/md4.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
#include <openssl/ui.h>
#include <openssl/rand.h>
#include <openssl/engine.h>
#include <openssl/pkcs12.h>
#include <openssl/pem.h>
#include <openssl/hmac.h>
#include <openssl/ec.h>
#include <openssl/ecdsa.h>
#include <openssl/ecdh.h>
#ifndef BN_is_negative
#define BN_set_negative(bn, flag) ((bn)->neg=(flag)?1:0)
#define BN_is_negative(bn) ((bn)->neg != 0)
#endif
#else /* !HAVE_OPENSSL */
#ifdef KRB5
#include <krb5-types.h>
#endif
#include <hcrypto/evp.h>
#include <hcrypto/des.h>
#include <hcrypto/md2.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>
#include <hcrypto/ec.h>
#include <hcrypto/ecdsa.h>
#include <hcrypto/ecdh.h>
#endif /* HAVE_OPENSSL */