"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.16.7/lib/dns/include/dst/result.h" (4 Sep 2020, 2158 Bytes) of package /linux/misc/dns/bind9/9.16.7/bind-9.16.7.tar.xz:


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 "result.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 #ifndef DST_RESULT_H
   13 #define DST_RESULT_H 1
   14 
   15 /*! \file dst/result.h */
   16 
   17 #include <isc/lang.h>
   18 #include <isc/resultclass.h>
   19 
   20 /*
   21  * Nothing in this file truly depends on <isc/result.h>, but the
   22  * DST result codes are considered to be publicly derived from
   23  * the ISC result codes, so including this file buys you the ISC_R_
   24  * namespace too.
   25  */
   26 #include <isc/result.h> /* Contractual promise. */
   27 
   28 #define DST_R_UNSUPPORTEDALG (ISC_RESULTCLASS_DST + 0)
   29 #define DST_R_CRYPTOFAILURE  (ISC_RESULTCLASS_DST + 1)
   30 /* compat */
   31 #define DST_R_OPENSSLFAILURE    DST_R_CRYPTOFAILURE
   32 #define DST_R_NOCRYPTO      (ISC_RESULTCLASS_DST + 2)
   33 #define DST_R_NULLKEY       (ISC_RESULTCLASS_DST + 3)
   34 #define DST_R_INVALIDPUBLICKEY  (ISC_RESULTCLASS_DST + 4)
   35 #define DST_R_INVALIDPRIVATEKEY (ISC_RESULTCLASS_DST + 5)
   36 /* 6 is unused */
   37 #define DST_R_WRITEERROR   (ISC_RESULTCLASS_DST + 7)
   38 #define DST_R_INVALIDPARAM (ISC_RESULTCLASS_DST + 8)
   39 /* 9 is unused */
   40 /* 10 is unused */
   41 #define DST_R_SIGNFAILURE (ISC_RESULTCLASS_DST + 11)
   42 /* 12 is unused */
   43 /* 13 is unused */
   44 #define DST_R_VERIFYFAILURE      (ISC_RESULTCLASS_DST + 14)
   45 #define DST_R_NOTPUBLICKEY       (ISC_RESULTCLASS_DST + 15)
   46 #define DST_R_NOTPRIVATEKEY      (ISC_RESULTCLASS_DST + 16)
   47 #define DST_R_KEYCANNOTCOMPUTESECRET (ISC_RESULTCLASS_DST + 17)
   48 #define DST_R_COMPUTESECRETFAILURE   (ISC_RESULTCLASS_DST + 18)
   49 #define DST_R_NORANDOMNESS       (ISC_RESULTCLASS_DST + 19)
   50 #define DST_R_BADKEYTYPE         (ISC_RESULTCLASS_DST + 20)
   51 #define DST_R_NOENGINE           (ISC_RESULTCLASS_DST + 21)
   52 #define DST_R_EXTERNALKEY        (ISC_RESULTCLASS_DST + 22)
   53 
   54 #define DST_R_NRESULTS 23 /* Number of results */
   55 
   56 ISC_LANG_BEGINDECLS
   57 
   58 const char *dst_result_totext(isc_result_t);
   59 
   60 void
   61 dst_result_register(void);
   62 
   63 ISC_LANG_ENDDECLS
   64 
   65 #endif /* DST_RESULT_H */