2 * PDKIM - a RFC4871 (DKIM) implementation
4 * Copyright (C) 2017 Exim maintainers
6 * RSA signing/verification interface
11 #ifndef DISABLE_DKIM /* entire file */
13 #include "crypt_ver.h"
16 # include <openssl/rsa.h>
17 # include <openssl/ssl.h>
18 # include <openssl/err.h>
19 #elif defined(SIGN_GNUTLS)
20 # include <gnutls/gnutls.h>
21 # include <gnutls/x509.h>
22 # include <gnutls/abstract.h>
23 #elif defined(SIGN_GCRYPT)
25 # include <libtasn1.h>
41 #elif defined(SIGN_GNUTLS)
44 gnutls_x509_privkey_t key;
51 #elif defined(SIGN_GCRYPT)
74 extern void exim_dkim_init(void);
75 extern gstring * exim_dkim_data_append(gstring *, uschar *);
77 extern const uschar * exim_dkim_signing_init(uschar *, es_ctx *);
78 extern const uschar * exim_dkim_sign(es_ctx *, hashmethod, blob *, blob *);
79 extern const uschar * exim_dkim_verify_init(blob *, ev_ctx *);
80 extern const uschar * exim_dkim_verify(ev_ctx *, hashmethod, blob *, blob *);
82 #endif /*DISABLE_DKIM*/