xref: /freebsd/crypto/heimdal/include/crypto-headers.h (revision 0b57cec536236d46e3dba9bd041533462f33dbb7)
1 #ifndef __crypto_header__
2 #define __crypto_header__
3 
4 #ifndef PACKAGE_NAME
5 #error "need config.h"
6 #endif
7 
8 #ifdef HAVE_OPENSSL
9 
10 #define OPENSSL_DES_LIBDES_COMPATIBILITY
11 
12 #include <openssl/evp.h>
13 #include <openssl/des.h>
14 #include <openssl/rc4.h>
15 #include <openssl/rc2.h>
16 #include <openssl/md4.h>
17 #include <openssl/md5.h>
18 #include <openssl/sha.h>
19 #include <openssl/ui.h>
20 #include <openssl/rand.h>
21 #include <openssl/engine.h>
22 #include <openssl/pkcs12.h>
23 #include <openssl/pem.h>
24 #include <openssl/hmac.h>
25 #include <openssl/ec.h>
26 #include <openssl/ecdsa.h>
27 #include <openssl/ecdh.h>
28 #ifndef BN_is_negative
29 #define BN_set_negative(bn, flag) ((bn)->neg=(flag)?1:0)
30 #define BN_is_negative(bn) ((bn)->neg != 0)
31 #endif
32 
33 #else /* !HAVE_OPENSSL */
34 
35 #ifdef KRB5
36 #include <krb5-types.h>
37 #endif
38 
39 #include <hcrypto/evp.h>
40 #include <hcrypto/des.h>
41 #include <hcrypto/md4.h>
42 #include <hcrypto/md5.h>
43 #include <hcrypto/sha.h>
44 #include <hcrypto/rc4.h>
45 #include <hcrypto/rc2.h>
46 #include <hcrypto/ui.h>
47 #include <hcrypto/rand.h>
48 #include <hcrypto/engine.h>
49 #include <hcrypto/pkcs12.h>
50 #include <hcrypto/hmac.h>
51 #include <hcrypto/ec.h>
52 #include <hcrypto/ecdsa.h>
53 #include <hcrypto/ecdh.h>
54 
55 #endif /* HAVE_OPENSSL */
56 
57 #endif /* __crypto_header__ */
58