result.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004-2008, 2012, 2014  Internet Systems Consortium, Inc. ("ISC")
00003  * Copyright (C) 1999-2001  Internet Software Consortium.
00004  *
00005  * Permission to use, copy, modify, and/or distribute this software for any
00006  * purpose with or without fee is hereby granted, provided that the above
00007  * copyright notice and this permission notice appear in all copies.
00008  *
00009  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00010  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00011  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00012  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00013  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00014  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00015  * PERFORMANCE OF THIS SOFTWARE.
00016  */
00017 
00018 /* $Id: result.h,v 1.9 2008/04/01 23:47:10 tbox Exp $ */
00019 
00020 #ifndef DST_RESULT_H
00021 #define DST_RESULT_H 1
00022 
00023 /*! \file dst/result.h */
00024 
00025 #include <isc/lang.h>
00026 #include <isc/resultclass.h>
00027 
00028 /*
00029  * Nothing in this file truly depends on <isc/result.h>, but the
00030  * DST result codes are considered to be publicly derived from
00031  * the ISC result codes, so including this file buys you the ISC_R_
00032  * namespace too.
00033  */
00034 #include <isc/result.h>         /* Contractual promise. */
00035 
00036 #define DST_R_UNSUPPORTEDALG            (ISC_RESULTCLASS_DST + 0)
00037 #define DST_R_CRYPTOFAILURE             (ISC_RESULTCLASS_DST + 1)
00038 /* compat */
00039 #define DST_R_OPENSSLFAILURE            DST_R_CRYPTOFAILURE
00040 #define DST_R_NOCRYPTO                  (ISC_RESULTCLASS_DST + 2)
00041 #define DST_R_NULLKEY                   (ISC_RESULTCLASS_DST + 3)
00042 #define DST_R_INVALIDPUBLICKEY          (ISC_RESULTCLASS_DST + 4)
00043 #define DST_R_INVALIDPRIVATEKEY         (ISC_RESULTCLASS_DST + 5)
00044 /* 6 is unused */
00045 #define DST_R_WRITEERROR                (ISC_RESULTCLASS_DST + 7)
00046 #define DST_R_INVALIDPARAM              (ISC_RESULTCLASS_DST + 8)
00047 /* 9 is unused */
00048 /* 10 is unused */
00049 #define DST_R_SIGNFAILURE               (ISC_RESULTCLASS_DST + 11)
00050 /* 12 is unused */
00051 /* 13 is unused */
00052 #define DST_R_VERIFYFAILURE             (ISC_RESULTCLASS_DST + 14)
00053 #define DST_R_NOTPUBLICKEY              (ISC_RESULTCLASS_DST + 15)
00054 #define DST_R_NOTPRIVATEKEY             (ISC_RESULTCLASS_DST + 16)
00055 #define DST_R_KEYCANNOTCOMPUTESECRET    (ISC_RESULTCLASS_DST + 17)
00056 #define DST_R_COMPUTESECRETFAILURE      (ISC_RESULTCLASS_DST + 18)
00057 #define DST_R_NORANDOMNESS              (ISC_RESULTCLASS_DST + 19)
00058 #define DST_R_BADKEYTYPE                (ISC_RESULTCLASS_DST + 20)
00059 #define DST_R_NOENGINE                  (ISC_RESULTCLASS_DST + 21)
00060 #define DST_R_EXTERNALKEY               (ISC_RESULTCLASS_DST + 22)
00061 
00062 #define DST_R_NRESULTS                  23      /* Number of results */
00063 
00064 ISC_LANG_BEGINDECLS
00065 
00066 const char *
00067 dst_result_totext(isc_result_t);
00068 
00069 void
00070 dst_result_register(void);
00071 
00072 ISC_LANG_ENDDECLS
00073 
00074 #endif /* DST_RESULT_H */

Generated on Tue Apr 28 17:41:04 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha