11cb0ef41Sopenharmony_ci/*
21cb0ef41Sopenharmony_ci * Generated by util/mkerr.pl DO NOT EDIT
31cb0ef41Sopenharmony_ci * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
41cb0ef41Sopenharmony_ci *
51cb0ef41Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License").  You may not use
61cb0ef41Sopenharmony_ci * this file except in compliance with the License.  You can obtain a copy
71cb0ef41Sopenharmony_ci * in the file LICENSE in the source distribution or at
81cb0ef41Sopenharmony_ci * https://www.openssl.org/source/license.html
91cb0ef41Sopenharmony_ci */
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ci#include <openssl/err.h>
121cb0ef41Sopenharmony_ci#include <openssl/crmferr.h>
131cb0ef41Sopenharmony_ci#include "crypto/crmferr.h"
141cb0ef41Sopenharmony_ci
151cb0ef41Sopenharmony_ci#ifndef OPENSSL_NO_CRMF
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_ci# ifndef OPENSSL_NO_ERR
181cb0ef41Sopenharmony_ci
191cb0ef41Sopenharmony_cistatic const ERR_STRING_DATA CRMF_str_reasons[] = {
201cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_BAD_PBM_ITERATIONCOUNT),
211cb0ef41Sopenharmony_ci    "bad pbm iterationcount"},
221cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_CRMFERROR), "crmferror"},
231cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR), "error"},
241cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECODING_CERTIFICATE),
251cb0ef41Sopenharmony_ci    "error decoding certificate"},
261cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_CERTIFICATE),
271cb0ef41Sopenharmony_ci    "error decrypting certificate"},
281cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_SYMMETRIC_KEY),
291cb0ef41Sopenharmony_ci    "error decrypting symmetric key"},
301cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_FAILURE_OBTAINING_RANDOM),
311cb0ef41Sopenharmony_ci    "failure obtaining random"},
321cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ITERATIONCOUNT_BELOW_100),
331cb0ef41Sopenharmony_ci    "iterationcount below 100"},
341cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_MALFORMED_IV), "malformed iv"},
351cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_NULL_ARGUMENT), "null argument"},
361cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPOSKINPUT_NOT_SUPPORTED),
371cb0ef41Sopenharmony_ci    "poposkinput not supported"},
381cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_INCONSISTENT_PUBLIC_KEY),
391cb0ef41Sopenharmony_ci    "popo inconsistent public key"},
401cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING), "popo missing"},
411cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING_PUBLIC_KEY),
421cb0ef41Sopenharmony_ci    "popo missing public key"},
431cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING_SUBJECT),
441cb0ef41Sopenharmony_ci    "popo missing subject"},
451cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_RAVERIFIED_NOT_ACCEPTED),
461cb0ef41Sopenharmony_ci    "popo raverified not accepted"},
471cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_SETTING_MAC_ALGOR_FAILURE),
481cb0ef41Sopenharmony_ci    "setting mac algor failure"},
491cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_SETTING_OWF_ALGOR_FAILURE),
501cb0ef41Sopenharmony_ci    "setting owf algor failure"},
511cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_ALGORITHM),
521cb0ef41Sopenharmony_ci    "unsupported algorithm"},
531cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_CIPHER),
541cb0ef41Sopenharmony_ci    "unsupported cipher"},
551cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_METHOD_FOR_CREATING_POPO),
561cb0ef41Sopenharmony_ci    "unsupported method for creating popo"},
571cb0ef41Sopenharmony_ci    {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_POPO_METHOD),
581cb0ef41Sopenharmony_ci    "unsupported popo method"},
591cb0ef41Sopenharmony_ci    {0, NULL}
601cb0ef41Sopenharmony_ci};
611cb0ef41Sopenharmony_ci
621cb0ef41Sopenharmony_ci# endif
631cb0ef41Sopenharmony_ci
641cb0ef41Sopenharmony_ciint ossl_err_load_CRMF_strings(void)
651cb0ef41Sopenharmony_ci{
661cb0ef41Sopenharmony_ci# ifndef OPENSSL_NO_ERR
671cb0ef41Sopenharmony_ci    if (ERR_reason_error_string(CRMF_str_reasons[0].error) == NULL)
681cb0ef41Sopenharmony_ci        ERR_load_strings_const(CRMF_str_reasons);
691cb0ef41Sopenharmony_ci# endif
701cb0ef41Sopenharmony_ci    return 1;
711cb0ef41Sopenharmony_ci}
721cb0ef41Sopenharmony_ci#else
731cb0ef41Sopenharmony_ciNON_EMPTY_TRANSLATION_UNIT
741cb0ef41Sopenharmony_ci#endif
75