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