summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/tsig-openssl.h
blob: 30345b6596f1ab39d39d2c24da05155805f3ff4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * tsig-openssl.h -- Interface to OpenSSL for TSIG support.
 *
 * Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
 *
 * See LICENSE for the license.
 *
 */

#ifndef _TSIG_OPENSSL_H_
#define _TSIG_OPENSSL_H_

#if defined(TSIG) && defined(HAVE_SSL)

#include "region-allocator.h"

#include <openssl/hmac.h>
#include <openssl/sha.h>

/*
 * Initialize OpenSSL support for TSIG.
 */
int tsig_openssl_init(region_type *region);

void tsig_openssl_finalize();

#endif /* defined(TSIG) && defined(HAVE_SSL) */

#endif /* _TSIG_H_ */