"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/lib/dns/include/dns/cert.h" (7 Sep 2020, 1465 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 "cert.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_CERT_H
   14 #define DNS_CERT_H 1
   15 
   16 /*! \file dns/cert.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_cert_fromtext(dns_cert_t *certp, isc_textregion_t *source);
   26 /*%<
   27  * Convert the text 'source' refers to into a certificate type.
   28  * The text may contain either a mnemonic type name or a decimal type number.
   29  *
   30  * Requires:
   31  *\li   'certp' is a valid pointer.
   32  *
   33  *\li   'source' is a valid text region.
   34  *
   35  * Returns:
   36  *\li   #ISC_R_SUCCESS          on success
   37  *\li   #ISC_R_RANGE            numeric type is out of range
   38  *\li   #DNS_R_UNKNOWN          mnemonic type is unknown
   39  */
   40 
   41 isc_result_t
   42 dns_cert_totext(dns_cert_t cert, isc_buffer_t *target);
   43 /*%<
   44  * Put a textual representation of certificate type 'cert' into 'target'.
   45  *
   46  * Requires:
   47  *\li   'cert' is a valid cert.
   48  *
   49  *\li   'target' is a valid text buffer.
   50  *
   51  * Ensures:
   52  *\li   If the result is success:
   53  *      The used space in 'target' is updated.
   54  *
   55  * Returns:
   56  *\li   #ISC_R_SUCCESS          on success
   57  *\li   #ISC_R_NOSPACE          target buffer is too small
   58  */
   59 
   60 ISC_LANG_ENDDECLS
   61 
   62 #endif /* DNS_CERT_H */