"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/lib/dns/include/dns/keyflags.h" (7 Sep 2020, 1277 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 "keyflags.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 DNS_KEYFLAGS_H
   14 #define DNS_KEYFLAGS_H 1
   15 
   16 /*! \file dns/keyflags.h */
   17 
   18 #include <isc/lang.h>
   19 
   20 #include <dns/types.h>
   21 
   22 ISC_LANG_BEGINDECLS
   23 
   24 isc_result_t
   25 dns_keyflags_fromtext(dns_keyflags_t *flagsp, isc_textregion_t *source);
   26 /*%<
   27  * Convert the text 'source' refers to into a DNSSEC KEY flags value.
   28  * The text may contain either a set of flag mnemonics separated by
   29  * vertical bars or a decimal flags value.  For compatibility with
   30  * older versions of BIND and the DNSSEC signer, octal values
   31  * prefixed with a zero and hexadecimal values prefixed with "0x"
   32  * are also accepted.
   33  *
   34  * Requires:
   35  *\li   'flagsp' is a valid pointer.
   36  *
   37  *\li   'source' is a valid text region.
   38  *
   39  * Returns:
   40  *\li   ISC_R_SUCCESS           on success
   41  *\li   ISC_R_RANGE         numeric flag value is out of range
   42  *\li   DNS_R_UNKNOWN           mnemonic flag is unknown
   43  */
   44 
   45 ISC_LANG_ENDDECLS
   46 
   47 #endif /* DNS_KEYFLAGS_H */