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/crmferr.h> 13e1051a39Sopenharmony_ci#include "crypto/crmferr.h" 14e1051a39Sopenharmony_ci 15e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_CRMF 16e1051a39Sopenharmony_ci 17e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_ERR 18e1051a39Sopenharmony_ci 19e1051a39Sopenharmony_cistatic const ERR_STRING_DATA CRMF_str_reasons[] = { 20e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_BAD_PBM_ITERATIONCOUNT), 21e1051a39Sopenharmony_ci "bad pbm iterationcount"}, 22e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_CRMFERROR), "crmferror"}, 23e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR), "error"}, 24e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECODING_CERTIFICATE), 25e1051a39Sopenharmony_ci "error decoding certificate"}, 26e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_CERTIFICATE), 27e1051a39Sopenharmony_ci "error decrypting certificate"}, 28e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_SYMMETRIC_KEY), 29e1051a39Sopenharmony_ci "error decrypting symmetric key"}, 30e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_FAILURE_OBTAINING_RANDOM), 31e1051a39Sopenharmony_ci "failure obtaining random"}, 32e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ITERATIONCOUNT_BELOW_100), 33e1051a39Sopenharmony_ci "iterationcount below 100"}, 34e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_MALFORMED_IV), "malformed iv"}, 35e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_NULL_ARGUMENT), "null argument"}, 36e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPOSKINPUT_NOT_SUPPORTED), 37e1051a39Sopenharmony_ci "poposkinput not supported"}, 38e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_INCONSISTENT_PUBLIC_KEY), 39e1051a39Sopenharmony_ci "popo inconsistent public key"}, 40e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING), "popo missing"}, 41e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING_PUBLIC_KEY), 42e1051a39Sopenharmony_ci "popo missing public key"}, 43e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING_SUBJECT), 44e1051a39Sopenharmony_ci "popo missing subject"}, 45e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_RAVERIFIED_NOT_ACCEPTED), 46e1051a39Sopenharmony_ci "popo raverified not accepted"}, 47e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_SETTING_MAC_ALGOR_FAILURE), 48e1051a39Sopenharmony_ci "setting mac algor failure"}, 49e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_SETTING_OWF_ALGOR_FAILURE), 50e1051a39Sopenharmony_ci "setting owf algor failure"}, 51e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_ALGORITHM), 52e1051a39Sopenharmony_ci "unsupported algorithm"}, 53e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_CIPHER), 54e1051a39Sopenharmony_ci "unsupported cipher"}, 55e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_METHOD_FOR_CREATING_POPO), 56e1051a39Sopenharmony_ci "unsupported method for creating popo"}, 57e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_POPO_METHOD), 58e1051a39Sopenharmony_ci "unsupported popo method"}, 59e1051a39Sopenharmony_ci {0, NULL} 60e1051a39Sopenharmony_ci}; 61e1051a39Sopenharmony_ci 62e1051a39Sopenharmony_ci# endif 63e1051a39Sopenharmony_ci 64e1051a39Sopenharmony_ciint ossl_err_load_CRMF_strings(void) 65e1051a39Sopenharmony_ci{ 66e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_ERR 67e1051a39Sopenharmony_ci if (ERR_reason_error_string(CRMF_str_reasons[0].error) == NULL) 68e1051a39Sopenharmony_ci ERR_load_strings_const(CRMF_str_reasons); 69e1051a39Sopenharmony_ci# endif 70e1051a39Sopenharmony_ci return 1; 71e1051a39Sopenharmony_ci} 72e1051a39Sopenharmony_ci#else 73e1051a39Sopenharmony_ciNON_EMPTY_TRANSLATION_UNIT 74e1051a39Sopenharmony_ci#endif 75