blob: 44b2f2757d2c2614c4042372f32d3380797b8ddd [file] [log] [blame]
David von Oheimba61b7f22018-11-16 14:05:31 +01001/*
2 * Generated by util/mkerr.pl DO NOT EDIT
Matt Caswell38fc02a2021-06-17 13:24:59 +01003 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
David von Oheimba61b7f22018-11-16 14:05:31 +01004 *
David von Oheimbce9b9962018-12-23 09:58:36 +01005 * Licensed under the Apache License 2.0 (the "License"). You may not use
David von Oheimba61b7f22018-11-16 14:05:31 +01006 * 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
9 */
10
11#include <openssl/err.h>
12#include <openssl/crmferr.h>
Richard Levitte14a6c6a2020-11-12 10:36:47 +010013#include "crypto/crmferr.h"
David von Oheimba61b7f22018-11-16 14:05:31 +010014
Richard Levitte14a6c6a2020-11-12 10:36:47 +010015#ifndef OPENSSL_NO_CRMF
16
17# ifndef OPENSSL_NO_ERR
David von Oheimba61b7f22018-11-16 14:05:31 +010018
David von Oheimba61b7f22018-11-16 14:05:31 +010019static const ERR_STRING_DATA CRMF_str_reasons[] = {
20 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_BAD_PBM_ITERATIONCOUNT),
21 "bad pbm iterationcount"},
22 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_CRMFERROR), "crmferror"},
23 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR), "error"},
24 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECODING_CERTIFICATE),
25 "error decoding certificate"},
26 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_CERTIFICATE),
27 "error decrypting certificate"},
28 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_SYMMETRIC_KEY),
29 "error decrypting symmetric key"},
30 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_FAILURE_OBTAINING_RANDOM),
31 "failure obtaining random"},
32 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ITERATIONCOUNT_BELOW_100),
33 "iterationcount below 100"},
34 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_MALFORMED_IV), "malformed iv"},
35 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_NULL_ARGUMENT), "null argument"},
Dr. David von Oheimb6d1f50b2020-08-13 17:44:54 +020036 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPOSKINPUT_NOT_SUPPORTED),
37 "poposkinput not supported"},
Dr. David von Oheimb62dcd2a2020-03-10 10:29:46 +010038 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_INCONSISTENT_PUBLIC_KEY),
39 "popo inconsistent public key"},
Dr. David von Oheimb72690712020-02-25 08:58:39 +010040 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING), "popo missing"},
Dr. David von Oheimb62dcd2a2020-03-10 10:29:46 +010041 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING_PUBLIC_KEY),
42 "popo missing public key"},
43 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING_SUBJECT),
44 "popo missing subject"},
45 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_RAVERIFIED_NOT_ACCEPTED),
46 "popo raverified not accepted"},
David von Oheimba61b7f22018-11-16 14:05:31 +010047 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_SETTING_MAC_ALGOR_FAILURE),
48 "setting mac algor failure"},
49 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_SETTING_OWF_ALGOR_FAILURE),
50 "setting owf algor failure"},
51 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_ALGORITHM),
52 "unsupported algorithm"},
David von Oheimba61b7f22018-11-16 14:05:31 +010053 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_CIPHER),
54 "unsupported cipher"},
55 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_METHOD_FOR_CREATING_POPO),
56 "unsupported method for creating popo"},
57 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_POPO_METHOD),
58 "unsupported popo method"},
David von Oheimba61b7f22018-11-16 14:05:31 +010059 {0, NULL}
60};
61
Richard Levitte14a6c6a2020-11-12 10:36:47 +010062# endif
David von Oheimba61b7f22018-11-16 14:05:31 +010063
Paulib93f6c22021-05-25 12:04:22 +100064int ossl_err_load_CRMF_strings(void)
David von Oheimba61b7f22018-11-16 14:05:31 +010065{
Richard Levitte14a6c6a2020-11-12 10:36:47 +010066# ifndef OPENSSL_NO_ERR
Richard Levitte0cd1b142019-09-04 21:45:56 +020067 if (ERR_reason_error_string(CRMF_str_reasons[0].error) == NULL)
David von Oheimba61b7f22018-11-16 14:05:31 +010068 ERR_load_strings_const(CRMF_str_reasons);
Richard Levitte14a6c6a2020-11-12 10:36:47 +010069# endif
David von Oheimba61b7f22018-11-16 14:05:31 +010070 return 1;
71}
Richard Levitte14a6c6a2020-11-12 10:36:47 +010072#else
73NON_EMPTY_TRANSLATION_UNIT
74#endif