2009-06-10 00:27:22 +00:00
|
|
|
/*
|
2009-06-11 23:47:56 +00:00
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2009-06-10 00:27:22 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
2021-06-03 08:37:05 +02:00
|
|
|
*
|
2009-06-10 00:27:22 +00:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 09:53:12 +01:00
|
|
|
*
|
2009-06-10 00:27:22 +00:00
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
* information regarding copyright ownership.
|
|
|
|
*/
|
|
|
|
|
2021-10-05 16:49:47 +02:00
|
|
|
#pragma once
|
2009-06-10 00:27:22 +00:00
|
|
|
|
|
|
|
/*! \file */
|
|
|
|
|
|
|
|
#include <isc/buffer.h>
|
|
|
|
#include <isc/mem.h>
|
2020-02-12 13:59:18 +01:00
|
|
|
|
2009-06-10 00:27:22 +00:00
|
|
|
#include <dns/secalg.h>
|
|
|
|
|
2018-04-22 14:56:28 +02:00
|
|
|
void
|
|
|
|
generate_key(isc_mem_t *mctx, dns_secalg_t alg, int keysize,
|
|
|
|
isc_buffer_t *key_txtbuffer);
|
2009-06-10 00:27:22 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
write_key_file(const char *keyfile, const char *user, const char *keyname,
|
2009-06-11 23:47:56 +00:00
|
|
|
isc_buffer_t *secret, dns_secalg_t alg);
|
2009-06-10 00:27:22 +00:00
|
|
|
|
|
|
|
const char *
|
|
|
|
alg_totext(dns_secalg_t alg);
|
|
|
|
dns_secalg_t
|
|
|
|
alg_fromtext(const char *name);
|
|
|
|
int
|
|
|
|
alg_bits(dns_secalg_t alg);
|