1 /* $NetBSD: result.h,v 1.6 2014/12/10 04:37:58 christos Exp $ */
4 * Copyright (C) 2004-2008, 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
5 * Copyright (C) 1999-2001 Internet Software Consortium.
7 * Permission to use, copy, modify, and/or distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
11 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 * PERFORMANCE OF THIS SOFTWARE.
20 /* Id: result.h,v 1.9 2008/04/01 23:47:10 tbox Exp */
23 #define DST_RESULT_H 1
25 /*! \file dst/result.h */
28 #include <isc/resultclass.h>
31 * Nothing in this file truly depends on <isc/result.h>, but the
32 * DST result codes are considered to be publicly derived from
33 * the ISC result codes, so including this file buys you the ISC_R_
36 #include <isc/result.h> /* Contractual promise. */
38 #define DST_R_UNSUPPORTEDALG (ISC_RESULTCLASS_DST + 0)
39 #define DST_R_CRYPTOFAILURE (ISC_RESULTCLASS_DST + 1)
41 #define DST_R_OPENSSLFAILURE DST_R_CRYPTOFAILURE
42 #define DST_R_NOCRYPTO (ISC_RESULTCLASS_DST + 2)
43 #define DST_R_NULLKEY (ISC_RESULTCLASS_DST + 3)
44 #define DST_R_INVALIDPUBLICKEY (ISC_RESULTCLASS_DST + 4)
45 #define DST_R_INVALIDPRIVATEKEY (ISC_RESULTCLASS_DST + 5)
47 #define DST_R_WRITEERROR (ISC_RESULTCLASS_DST + 7)
48 #define DST_R_INVALIDPARAM (ISC_RESULTCLASS_DST + 8)
51 #define DST_R_SIGNFAILURE (ISC_RESULTCLASS_DST + 11)
54 #define DST_R_VERIFYFAILURE (ISC_RESULTCLASS_DST + 14)
55 #define DST_R_NOTPUBLICKEY (ISC_RESULTCLASS_DST + 15)
56 #define DST_R_NOTPRIVATEKEY (ISC_RESULTCLASS_DST + 16)
57 #define DST_R_KEYCANNOTCOMPUTESECRET (ISC_RESULTCLASS_DST + 17)
58 #define DST_R_COMPUTESECRETFAILURE (ISC_RESULTCLASS_DST + 18)
59 #define DST_R_NORANDOMNESS (ISC_RESULTCLASS_DST + 19)
60 #define DST_R_BADKEYTYPE (ISC_RESULTCLASS_DST + 20)
61 #define DST_R_NOENGINE (ISC_RESULTCLASS_DST + 21)
62 #define DST_R_EXTERNALKEY (ISC_RESULTCLASS_DST + 22)
64 #define DST_R_NRESULTS 23 /* Number of results */
69 dst_result_totext(isc_result_t
);
72 dst_result_register(void);
76 #endif /* DST_RESULT_H */