aboutsummaryrefslogtreecommitdiff
path: root/contrib/unbound/validator/val_sigcrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/unbound/validator/val_sigcrypt.c')
-rw-r--r--contrib/unbound/validator/val_sigcrypt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/unbound/validator/val_sigcrypt.c b/contrib/unbound/validator/val_sigcrypt.c
index 9251d2b1f38a..86de6fb8e80f 100644
--- a/contrib/unbound/validator/val_sigcrypt.c
+++ b/contrib/unbound/validator/val_sigcrypt.c
@@ -57,6 +57,7 @@
#include "sldns/sbuffer.h"
#include "sldns/parseutil.h"
#include "sldns/wire2str.h"
+#include "services/mesh.h"
#include <ctype.h>
#if !defined(HAVE_SSL) && !defined(HAVE_NSS) && !defined(HAVE_NETTLE)
@@ -1677,6 +1678,10 @@ dnskey_verify_rrset_sig(struct regional* region, sldns_buffer* buf,
/* verify */
sec = verify_canonrrset(buf, (int)sig[2+2],
sigblock, sigblock_len, key, keylen, reason);
+
+ /* count validation operation */
+ if(qstate && qstate->env && qstate->env->mesh)
+ qstate->env->mesh->val_ops++;
if(sec == sec_status_secure) {
/* check if TTL is too high - reduce if so */