1 | /* |
2 | * Generated by util/mkerr.pl DO NOT EDIT |
3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. |
4 | * |
5 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
6 | * this file except in compliance with the License. You can obtain a copy |
7 | * in the file LICENSE in the source distribution or at |
8 | * https://www.openssl.org/source/license.html |
9 | */ |
10 | |
11 | #include <openssl/err.h> |
12 | #include <openssl/cmperr.h> |
13 | |
14 | #ifndef OPENSSL_NO_ERR |
15 | |
16 | static const ERR_STRING_DATA CMP_str_reasons[] = { |
17 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_BAD_REQUEST_ID), "bad request id" }, |
18 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTID_NOT_FOUND), "certid not found" }, |
19 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTIFICATE_NOT_FOUND), |
20 | "certificate not found" }, |
21 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTRESPONSE_NOT_FOUND), |
22 | "certresponse not found" }, |
23 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERT_AND_KEY_DO_NOT_MATCH), |
24 | "cert and key do not match" }, |
25 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CALCULATING_PROTECTION), |
26 | "error calculating protection" }, |
27 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_CERTCONF), |
28 | "error creating certconf" }, |
29 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_CERTREP), |
30 | "error creating certrep" }, |
31 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_ERROR), |
32 | "error creating error" }, |
33 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_GENM), |
34 | "error creating genm" }, |
35 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_GENP), |
36 | "error creating genp" }, |
37 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_P10CR), |
38 | "error creating p10cr" }, |
39 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_PKICONF), |
40 | "error creating pkiconf" }, |
41 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_POLLREP), |
42 | "error creating pollrep" }, |
43 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_POLLREQ), |
44 | "error creating pollreq" }, |
45 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_RP), "error creating rp" }, |
46 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_RR), "error creating rr" }, |
47 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_PARSING_PKISTATUS), |
48 | "error parsing pkistatus" }, |
49 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_PROTECTING_MESSAGE), |
50 | "error protecting message" }, |
51 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_SETTING_CERTHASH), |
52 | "error setting certhash" }, |
53 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_FAILURE_OBTAINING_RANDOM), |
54 | "failure obtaining random" }, |
55 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_FAIL_INFO_OUT_OF_RANGE), |
56 | "fail info out of range" }, |
57 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_INVALID_ARGS), "invalid args" }, |
58 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_KEY_INPUT_FOR_CREATING_PROTECTION), |
59 | "missing key input for creating protection" }, |
60 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_PRIVATE_KEY), |
61 | "missing private key" }, |
62 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_SENDER_IDENTIFICATION), |
63 | "missing sender identification" }, |
64 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MULTIPLE_SAN_SOURCES), |
65 | "multiple san sources" }, |
66 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_NO_STDIO), "no stdio" }, |
67 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_NULL_ARGUMENT), "null argument" }, |
68 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_PKISTATUSINFO_NOT_FOUND), |
69 | "pkistatusinfo not found" }, |
70 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNEXPECTED_PKIBODY), "unexpected pkibody" }, |
71 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNKNOWN_ALGORITHM_ID), |
72 | "unknown algorithm id" }, |
73 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNKNOWN_CERT_TYPE), "unknown cert type" }, |
74 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNSUPPORTED_ALGORITHM), |
75 | "unsupported algorithm" }, |
76 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNSUPPORTED_KEY_TYPE), |
77 | "unsupported key type" }, |
78 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_ALGORITHM_OID), |
79 | "wrong algorithm oid" }, |
80 | {0, NULL} |
81 | }; |
82 | |
83 | #endif |
84 | |
85 | int ERR_load_CMP_strings(void) |
86 | { |
87 | #ifndef OPENSSL_NO_ERR |
88 | if (ERR_reason_error_string(CMP_str_reasons[0].error) == NULL) |
89 | ERR_load_strings_const(CMP_str_reasons); |
90 | #endif |
91 | return 1; |
92 | } |
93 | |