]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/crmf/crmf_err.c
Raise an error on syscall failure in tls_retry_write_records
[thirdparty/openssl.git] / crypto / crmf / crmf_err.c
CommitLineData
a61b7f2f
DO
1/*
2 * Generated by util/mkerr.pl DO NOT EDIT
38fc02a7 3 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
a61b7f2f 4 *
ce9b9964 5 * Licensed under the Apache License 2.0 (the "License"). You may not use
a61b7f2f
DO
6 * 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>
14a6c6a4 13#include "crypto/crmferr.h"
a61b7f2f 14
14a6c6a4
RL
15#ifndef OPENSSL_NO_CRMF
16
17# ifndef OPENSSL_NO_ERR
a61b7f2f 18
a61b7f2f
DO
19static 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"},
6d1f50b5
DDO
36 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPOSKINPUT_NOT_SUPPORTED),
37 "poposkinput not supported"},
62dcd2aa
DDO
38 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_INCONSISTENT_PUBLIC_KEY),
39 "popo inconsistent public key"},
7269071e 40 {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING), "popo missing"},
62dcd2aa
DDO
41 {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"},
a61b7f2f
DO
47 {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"},
a61b7f2f
DO
53 {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"},
a61b7f2f
DO
59 {0, NULL}
60};
61
14a6c6a4 62# endif
a61b7f2f 63
b93f6c2d 64int ossl_err_load_CRMF_strings(void)
a61b7f2f 65{
14a6c6a4 66# ifndef OPENSSL_NO_ERR
0cd1b144 67 if (ERR_reason_error_string(CRMF_str_reasons[0].error) == NULL)
a61b7f2f 68 ERR_load_strings_const(CRMF_str_reasons);
14a6c6a4 69# endif
a61b7f2f
DO
70 return 1;
71}
14a6c6a4
RL
72#else
73NON_EMPTY_TRANSLATION_UNIT
74#endif