]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/bind9/lib/dns/include/dst/result.h
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / bind9 / lib / dns / include / dst / result.h
1 /*
2  * Copyright (C) 2004-2008, 2012  Internet Systems Consortium, Inc. ("ISC")
3  * Copyright (C) 1999-2001  Internet Software Consortium.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15  * PERFORMANCE OF THIS SOFTWARE.
16  */
17
18 /* $Id: result.h,v 1.9 2008/04/01 23:47:10 tbox Exp $ */
19
20 #ifndef DST_RESULT_H
21 #define DST_RESULT_H 1
22
23 /*! \file dst/result.h */
24
25 #include <isc/lang.h>
26 #include <isc/resultclass.h>
27
28 /*
29  * Nothing in this file truly depends on <isc/result.h>, but the
30  * DST result codes are considered to be publicly derived from
31  * the ISC result codes, so including this file buys you the ISC_R_
32  * namespace too.
33  */
34 #include <isc/result.h>         /* Contractual promise. */
35
36 #define DST_R_UNSUPPORTEDALG            (ISC_RESULTCLASS_DST + 0)
37 #define DST_R_CRYPTOFAILURE             (ISC_RESULTCLASS_DST + 1)
38 /* compat */
39 #define DST_R_OPENSSLFAILURE            DST_R_CRYPTOFAILURE
40 #define DST_R_NOCRYPTO                  (ISC_RESULTCLASS_DST + 2)
41 #define DST_R_NULLKEY                   (ISC_RESULTCLASS_DST + 3)
42 #define DST_R_INVALIDPUBLICKEY          (ISC_RESULTCLASS_DST + 4)
43 #define DST_R_INVALIDPRIVATEKEY         (ISC_RESULTCLASS_DST + 5)
44 /* 6 is unused */
45 #define DST_R_WRITEERROR                (ISC_RESULTCLASS_DST + 7)
46 #define DST_R_INVALIDPARAM              (ISC_RESULTCLASS_DST + 8)
47 /* 9 is unused */
48 /* 10 is unused */
49 #define DST_R_SIGNFAILURE               (ISC_RESULTCLASS_DST + 11)
50 /* 12 is unused */
51 /* 13 is unused */
52 #define DST_R_VERIFYFAILURE             (ISC_RESULTCLASS_DST + 14)
53 #define DST_R_NOTPUBLICKEY              (ISC_RESULTCLASS_DST + 15)
54 #define DST_R_NOTPRIVATEKEY             (ISC_RESULTCLASS_DST + 16)
55 #define DST_R_KEYCANNOTCOMPUTESECRET    (ISC_RESULTCLASS_DST + 17)
56 #define DST_R_COMPUTESECRETFAILURE      (ISC_RESULTCLASS_DST + 18)
57 #define DST_R_NORANDOMNESS              (ISC_RESULTCLASS_DST + 19)
58 #define DST_R_BADKEYTYPE                (ISC_RESULTCLASS_DST + 20)
59 #define DST_R_NOENGINE                  (ISC_RESULTCLASS_DST + 21)
60
61 #define DST_R_NRESULTS                  22      /* Number of results */
62
63 ISC_LANG_BEGINDECLS
64
65 const char *
66 dst_result_totext(isc_result_t);
67
68 void
69 dst_result_register(void);
70
71 ISC_LANG_ENDDECLS
72
73 #endif /* DST_RESULT_H */