00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef DST_RESULT_H
00021 #define DST_RESULT_H 1
00022
00023
00024
00025 #include <isc/lang.h>
00026 #include <isc/resultclass.h>
00027
00028
00029
00030
00031
00032
00033
00034 #include <isc/result.h>
00035
00036 #define DST_R_UNSUPPORTEDALG (ISC_RESULTCLASS_DST + 0)
00037 #define DST_R_CRYPTOFAILURE (ISC_RESULTCLASS_DST + 1)
00038
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
00045 #define DST_R_WRITEERROR (ISC_RESULTCLASS_DST + 7)
00046 #define DST_R_INVALIDPARAM (ISC_RESULTCLASS_DST + 8)
00047
00048
00049 #define DST_R_SIGNFAILURE (ISC_RESULTCLASS_DST + 11)
00050
00051
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
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