Commit | Line | Data |
---|---|---|
63af6f3a JH |
1 | /* |
2 | * PDKIM - a RFC4871 (DKIM) implementation | |
3 | * | |
f9ba5e22 | 4 | * Copyright (C) 1995 - 2018 Exim maintainers |
63af6f3a JH |
5 | * |
6 | * Hash interface functions | |
7 | */ | |
8 | ||
9 | #include "../exim.h" | |
10 | ||
11 | #if !defined(HASH_H) /* entire file */ | |
12 | #define HASH_H | |
13 | ||
14 | #ifndef SUPPORT_TLS | |
15 | # error Need SUPPORT_TLS for DKIM | |
16 | #endif | |
17 | ||
18 | #include "crypt_ver.h" | |
19 | #include "../blob.h" | |
20 | #include "../hash.h" | |
21 | ||
d73e45df | 22 | #ifdef SIGN_OPENSSL |
63af6f3a JH |
23 | # include <openssl/rsa.h> |
24 | # include <openssl/ssl.h> | |
25 | # include <openssl/err.h> | |
d73e45df | 26 | #elif defined(SIGN_GNUTLS) |
63af6f3a JH |
27 | # include <gnutls/gnutls.h> |
28 | # include <gnutls/x509.h> | |
29 | #endif | |
30 | ||
31 | #if defined(SHA_OPENSSL) | |
32 | # include "pdkim.h" | |
33 | #elif defined(SHA_GCRYPT) | |
34 | # include "pdkim.h" | |
35 | #endif | |
36 | ||
37 | #endif | |
38 | /* End of File */ |