"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/bin/confgen/keygen.h" (7 Sep 2020, 920 Bytes) of package /linux/misc/dns/bind9/9.11.23/bind-9.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "keygen.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 
   13 #ifndef RNDC_KEYGEN_H
   14 #define RNDC_KEYGEN_H 1
   15 
   16 /*! \file */
   17 
   18 #include <isc/lang.h>
   19 
   20 ISC_LANG_BEGINDECLS
   21 
   22 void generate_key(isc_mem_t *mctx, const char *randomfile, dns_secalg_t alg,
   23           int keysize, isc_buffer_t *key_txtbuffer);
   24 
   25 void write_key_file(const char *keyfile, const char *user,
   26             const char *keyname, isc_buffer_t *secret,
   27             dns_secalg_t alg);
   28 
   29 const char *alg_totext(dns_secalg_t alg);
   30 dns_secalg_t alg_fromtext(const char *name);
   31 int alg_bits(dns_secalg_t alg);
   32 
   33 ISC_LANG_ENDDECLS
   34 
   35 #endif /* RNDC_KEYGEN_H */