xref: /netbsd-src/external/mpl/bind/dist/lib/dns/tsig_p.h (revision bcda20f65a8566e103791ec395f7f499ef322704)
1*bcda20f6Schristos /*	$NetBSD: tsig_p.h,v 1.8 2025/01/26 16:25:25 christos Exp $	*/
2d68c78b8Schristos 
3d68c78b8Schristos /*
4d68c78b8Schristos  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
5d68c78b8Schristos  *
68596601aSchristos  * SPDX-License-Identifier: MPL-2.0
78596601aSchristos  *
8d68c78b8Schristos  * This Source Code Form is subject to the terms of the Mozilla Public
9d68c78b8Schristos  * License, v. 2.0. If a copy of the MPL was not distributed with this
10fce770bdSchristos  * file, you can obtain one at https://mozilla.org/MPL/2.0/.
11d68c78b8Schristos  *
12d68c78b8Schristos  * See the COPYRIGHT file distributed with this work for additional
13d68c78b8Schristos  * information regarding copyright ownership.
14d68c78b8Schristos  */
15d68c78b8Schristos 
16bb5aa156Schristos #pragma once
17d68c78b8Schristos 
18d68c78b8Schristos /*! \file */
19d68c78b8Schristos 
20d4a20c3eSchristos #include <stdbool.h>
21d4a20c3eSchristos 
22d68c78b8Schristos #include <isc/result.h>
235606745fSchristos 
24d68c78b8Schristos #include <dns/types.h>
25d68c78b8Schristos 
26d68c78b8Schristos /*%
27d68c78b8Schristos  *     These functions must not be used outside this module and
28d68c78b8Schristos  *     its associated unit tests.
29d68c78b8Schristos  */
30d68c78b8Schristos 
31d68c78b8Schristos ISC_LANG_BEGINDECLS
32d68c78b8Schristos 
33d4a20c3eSchristos bool
34d68c78b8Schristos dns__tsig_algvalid(unsigned int alg);
35*bcda20f6Schristos dst_algorithm_t
36d68c78b8Schristos dns__tsig_algfromname(const dns_name_t *algorithm);
37d68c78b8Schristos 
38d68c78b8Schristos ISC_LANG_ENDDECLS
39