]>
Commit | Line | Data |
---|---|---|
b6cff313 | 1 | /* |
0cd0a820 | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
14a6c6a4 | 3 | * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. |
3149baf8 | 4 | * |
5477e842 | 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
b6cff313 RS |
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 | |
3149baf8 AE |
9 | */ |
10 | ||
3149baf8 | 11 | #include <openssl/err.h> |
52df25cf | 12 | #include <openssl/cterr.h> |
14a6c6a4 | 13 | #include "crypto/cterr.h" |
3149baf8 | 14 | |
14a6c6a4 RL |
15 | #ifndef OPENSSL_NO_CT |
16 | ||
17 | # ifndef OPENSSL_NO_ERR | |
3149baf8 | 18 | |
52df25cf RS |
19 | static const ERR_STRING_DATA CT_str_reasons[] = { |
20 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_BASE64_DECODE_ERROR), "base64 decode error"}, | |
21 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_INVALID_LOG_ID_LENGTH), | |
22 | "invalid log id length"}, | |
23 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_CONF_INVALID), "log conf invalid"}, | |
24 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_CONF_INVALID_KEY), | |
25 | "log conf invalid key"}, | |
26 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_CONF_MISSING_DESCRIPTION), | |
27 | "log conf missing description"}, | |
28 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_CONF_MISSING_KEY), | |
29 | "log conf missing key"}, | |
30 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_KEY_INVALID), "log key invalid"}, | |
31 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_FUTURE_TIMESTAMP), | |
32 | "sct future timestamp"}, | |
33 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_INVALID), "sct invalid"}, | |
34 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_INVALID_SIGNATURE), | |
35 | "sct invalid signature"}, | |
36 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_LIST_INVALID), "sct list invalid"}, | |
37 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_LOG_ID_MISMATCH), "sct log id mismatch"}, | |
38 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_NOT_SET), "sct not set"}, | |
39 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_UNSUPPORTED_VERSION), | |
40 | "sct unsupported version"}, | |
41 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_UNRECOGNIZED_SIGNATURE_NID), | |
42 | "unrecognized signature nid"}, | |
43 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_UNSUPPORTED_ENTRY_TYPE), | |
44 | "unsupported entry type"}, | |
45 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_UNSUPPORTED_VERSION), "unsupported version"}, | |
3149baf8 AE |
46 | {0, NULL} |
47 | }; | |
48 | ||
14a6c6a4 | 49 | # endif |
3149baf8 | 50 | |
b93f6c2d | 51 | int ossl_err_load_CT_strings(void) |
3149baf8 | 52 | { |
14a6c6a4 | 53 | # ifndef OPENSSL_NO_ERR |
0cd1b144 | 54 | if (ERR_reason_error_string(CT_str_reasons[0].error) == NULL) |
52df25cf | 55 | ERR_load_strings_const(CT_str_reasons); |
14a6c6a4 | 56 | # endif |
69588edb | 57 | return 1; |
3149baf8 | 58 | } |
14a6c6a4 RL |
59 | #else |
60 | NON_EMPTY_TRANSLATION_UNIT | |
61 | #endif |