1e1051a39Sopenharmony_ci/* 2e1051a39Sopenharmony_ci * Generated by util/mkerr.pl DO NOT EDIT 3e1051a39Sopenharmony_ci * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4e1051a39Sopenharmony_ci * 5e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License"). You may not use 6e1051a39Sopenharmony_ci * this file except in compliance with the License. You can obtain a copy 7e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at 8e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html 9e1051a39Sopenharmony_ci */ 10e1051a39Sopenharmony_ci 11e1051a39Sopenharmony_ci#include <openssl/err.h> 12e1051a39Sopenharmony_ci#include <openssl/esserr.h> 13e1051a39Sopenharmony_ci#include "crypto/esserr.h" 14e1051a39Sopenharmony_ci 15e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_ERR 16e1051a39Sopenharmony_ci 17e1051a39Sopenharmony_cistatic const ERR_STRING_DATA ESS_str_reasons[] = { 18e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_EMPTY_ESS_CERT_ID_LIST), 19e1051a39Sopenharmony_ci "empty ess cert id list"}, 20e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_CERT_DIGEST_ERROR), 21e1051a39Sopenharmony_ci "ess cert digest error"}, 22e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_CERT_ID_NOT_FOUND), 23e1051a39Sopenharmony_ci "ess cert id not found"}, 24e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_CERT_ID_WRONG_ORDER), 25e1051a39Sopenharmony_ci "ess cert id wrong order"}, 26e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_DIGEST_ALG_UNKNOWN), 27e1051a39Sopenharmony_ci "ess digest alg unknown"}, 28e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_SIGNING_CERTIFICATE_ERROR), 29e1051a39Sopenharmony_ci "ess signing certificate error"}, 30e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_SIGNING_CERT_ADD_ERROR), 31e1051a39Sopenharmony_ci "ess signing cert add error"}, 32e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_SIGNING_CERT_V2_ADD_ERROR), 33e1051a39Sopenharmony_ci "ess signing cert v2 add error"}, 34e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_MISSING_SIGNING_CERTIFICATE_ATTRIBUTE), 35e1051a39Sopenharmony_ci "missing signing certificate attribute"}, 36e1051a39Sopenharmony_ci {0, NULL} 37e1051a39Sopenharmony_ci}; 38e1051a39Sopenharmony_ci 39e1051a39Sopenharmony_ci#endif 40e1051a39Sopenharmony_ci 41e1051a39Sopenharmony_ciint ossl_err_load_ESS_strings(void) 42e1051a39Sopenharmony_ci{ 43e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_ERR 44e1051a39Sopenharmony_ci if (ERR_reason_error_string(ESS_str_reasons[0].error) == NULL) 45e1051a39Sopenharmony_ci ERR_load_strings_const(ESS_str_reasons); 46e1051a39Sopenharmony_ci#endif 47e1051a39Sopenharmony_ci return 1; 48e1051a39Sopenharmony_ci} 49