1ef5fc3feSchristos /*
2ef5fc3feSchristos  * Generated by util/mkerr.pl DO NOT EDIT
3*66bae5e7Schristos  * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
4ef5fc3feSchristos  *
5*66bae5e7Schristos  * Licensed under the Apache License 2.0 (the "License").  You may not use
6ef5fc3feSchristos  * this file except in compliance with the License.  You can obtain a copy
7ef5fc3feSchristos  * in the file LICENSE in the source distribution or at
8ef5fc3feSchristos  * https://www.openssl.org/source/license.html
9ef5fc3feSchristos  */
10ef5fc3feSchristos 
11ef5fc3feSchristos #include <openssl/err.h>
1205901b04Schristos #include <openssl/cterr.h>
13*66bae5e7Schristos #include "crypto/cterr.h"
14*66bae5e7Schristos 
15*66bae5e7Schristos #ifndef OPENSSL_NO_CT
16ef5fc3feSchristos 
17ef5fc3feSchristos # ifndef OPENSSL_NO_ERR
18ef5fc3feSchristos 
1905901b04Schristos static const ERR_STRING_DATA CT_str_reasons[] = {
2005901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_BASE64_DECODE_ERROR), "base64 decode error"},
2105901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_INVALID_LOG_ID_LENGTH),
2205901b04Schristos     "invalid log id length"},
2305901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_CONF_INVALID), "log conf invalid"},
2405901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_CONF_INVALID_KEY),
2505901b04Schristos     "log conf invalid key"},
2605901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_CONF_MISSING_DESCRIPTION),
27ef5fc3feSchristos     "log conf missing description"},
2805901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_CONF_MISSING_KEY),
2905901b04Schristos     "log conf missing key"},
3005901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_KEY_INVALID), "log key invalid"},
3105901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_FUTURE_TIMESTAMP),
3205901b04Schristos     "sct future timestamp"},
3305901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_INVALID), "sct invalid"},
3405901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_INVALID_SIGNATURE),
3505901b04Schristos     "sct invalid signature"},
3605901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_LIST_INVALID), "sct list invalid"},
3705901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_LOG_ID_MISMATCH), "sct log id mismatch"},
3805901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_NOT_SET), "sct not set"},
3905901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_UNSUPPORTED_VERSION),
4005901b04Schristos     "sct unsupported version"},
4105901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_UNRECOGNIZED_SIGNATURE_NID),
42ef5fc3feSchristos     "unrecognized signature nid"},
4305901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_UNSUPPORTED_ENTRY_TYPE),
4405901b04Schristos     "unsupported entry type"},
4505901b04Schristos     {ERR_PACK(ERR_LIB_CT, 0, CT_R_UNSUPPORTED_VERSION), "unsupported version"},
46ef5fc3feSchristos     {0, NULL}
47ef5fc3feSchristos };
48ef5fc3feSchristos 
49ef5fc3feSchristos # endif
50ef5fc3feSchristos 
ossl_err_load_CT_strings(void)51*66bae5e7Schristos int ossl_err_load_CT_strings(void)
52ef5fc3feSchristos {
53ef5fc3feSchristos # ifndef OPENSSL_NO_ERR
54*66bae5e7Schristos     if (ERR_reason_error_string(CT_str_reasons[0].error) == NULL)
5505901b04Schristos         ERR_load_strings_const(CT_str_reasons);
56ef5fc3feSchristos # endif
57ef5fc3feSchristos     return 1;
58ef5fc3feSchristos }
59*66bae5e7Schristos #else
60*66bae5e7Schristos NON_EMPTY_TRANSLATION_UNIT
61*66bae5e7Schristos #endif
62