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