aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/dkim.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-24 09:49:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-24 09:49:32 +0000
commitccf2cbc6d00b0e8a2f63be214b6ccf121aa77c99 (patch)
tree1fc795e1ffa2348ccbaa597b1e28c57a6323ae45 /src/libserver/dkim.h
parent3c0b096b026aee96c2b8ff88dfa5d909c398fa2b (diff)
downloadrspamd-ccf2cbc6d00b0e8a2f63be214b6ccf121aa77c99.tar.gz
rspamd-ccf2cbc6d00b0e8a2f63be214b6ccf121aa77c99.zip
Use refcounting logic for dkim keys to avoid some races
Diffstat (limited to 'src/libserver/dkim.h')
-rw-r--r--src/libserver/dkim.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libserver/dkim.h b/src/libserver/dkim.h
index 97f54b912..59735aefe 100644
--- a/src/libserver/dkim.h
+++ b/src/libserver/dkim.h
@@ -28,6 +28,7 @@
#include "config.h"
#include "event.h"
#include "dns.h"
+#include "ref.h"
#ifdef HAVE_OPENSSL
#include <openssl/rsa.h>
#include <openssl/engine.h>
@@ -162,8 +163,8 @@ typedef struct rspamd_dkim_key_s {
BIO *key_bio;
EVP_PKEY *key_evp;
#endif
-}
-rspamd_dkim_key_t;
+ ref_entry_t ref;
+} rspamd_dkim_key_t;
struct rspamd_task;