diff options
Diffstat (limited to 'usr.sbin/nsd/iterated_hash.h')
-rw-r--r-- | usr.sbin/nsd/iterated_hash.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/nsd/iterated_hash.h b/usr.sbin/nsd/iterated_hash.h index 2a6bef399d0..9997e62598b 100644 --- a/usr.sbin/nsd/iterated_hash.h +++ b/usr.sbin/nsd/iterated_hash.h @@ -1,7 +1,7 @@ /* * iterated_hash.h -- nsec3 hash calculation. * - * Copyright (c) 2001-2011, NLnet Labs. All rights reserved. + * Copyright (c) 2001-2006, NLnet Labs. All rights reserved. * * See LICENSE for the license. * @@ -10,10 +10,11 @@ #ifndef ITERATED_HASH_H #define ITERATED_HASH_H -#include "config.h" #ifdef NSEC3 #include <openssl/sha.h> +#define NSEC3_SHA1_HASH 1 /* same type code as DS hash */ + int iterated_hash(unsigned char out[SHA_DIGEST_LENGTH], const unsigned char *salt,int saltlength, const unsigned char *in,int inlength,int iterations); |