]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/pkcs7/pkcs7err.c
ERR: Rebuild all generated error headers and source files
[thirdparty/openssl.git] / crypto / pkcs7 / pkcs7err.c
CommitLineData
62867571 1/*
0cd0a820 2 * Generated by util/mkerr.pl DO NOT EDIT
14a6c6a4 3 * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
6d311938 4 *
b7617a3a 5 * Licensed under the Apache License 2.0 (the "License"). You may not use
62867571
RS
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
d02b48c6 9 */
6d311938 10
ec577822 11#include <openssl/err.h>
52df25cf 12#include <openssl/pkcs7err.h>
14a6c6a4 13#include "crypto/pkcs7err.h"
d02b48c6 14
cf1b7d96 15#ifndef OPENSSL_NO_ERR
29dc3508 16
52df25cf
RS
17static const ERR_STRING_DATA PKCS7_str_reasons[] = {
18 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_CERTIFICATE_VERIFY_ERROR),
19 "certificate verify error"},
20 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER),
21 "cipher has no object identifier"},
22 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_CIPHER_NOT_INITIALIZED),
23 "cipher not initialized"},
24 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_CONTENT_AND_DATA_PRESENT),
25 "content and data present"},
26 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_CTRL_ERROR), "ctrl error"},
27 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_DECRYPT_ERROR), "decrypt error"},
28 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_DIGEST_FAILURE), "digest failure"},
29 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_ENCRYPTION_CTRL_FAILURE),
30 "encryption ctrl failure"},
31 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_ENCRYPTION_NOT_SUPPORTED_FOR_THIS_KEY_TYPE),
32 "encryption not supported for this key type"},
33 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_ERROR_ADDING_RECIPIENT),
34 "error adding recipient"},
35 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_ERROR_SETTING_CIPHER),
36 "error setting cipher"},
37 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_INVALID_NULL_POINTER),
38 "invalid null pointer"},
39 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_INVALID_SIGNED_DATA_TYPE),
40 "invalid signed data type"},
41 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_NO_CONTENT), "no content"},
42 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_NO_DEFAULT_DIGEST),
43 "no default digest"},
44 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_NO_MATCHING_DIGEST_TYPE_FOUND),
45 "no matching digest type found"},
46 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE),
47 "no recipient matches certificate"},
48 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_NO_SIGNATURES_ON_DATA),
49 "no signatures on data"},
50 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_NO_SIGNERS), "no signers"},
51 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE),
52 "operation not supported on this type"},
53 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR),
54 "pkcs7 add signature error"},
55 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_PKCS7_ADD_SIGNER_ERROR),
56 "pkcs7 add signer error"},
57 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_PKCS7_DATASIGN), "pkcs7 datasign"},
58 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE),
59 "private key does not match certificate"},
60 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_SIGNATURE_FAILURE),
61 "signature failure"},
62 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND),
63 "signer certificate not found"},
64 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_SIGNING_CTRL_FAILURE),
65 "signing ctrl failure"},
66 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE),
67 "signing not supported for this key type"},
68 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_SMIME_TEXT_ERROR), "smime text error"},
69 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_UNABLE_TO_FIND_CERTIFICATE),
70 "unable to find certificate"},
71 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_UNABLE_TO_FIND_MEM_BIO),
72 "unable to find mem bio"},
73 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST),
74 "unable to find message digest"},
75 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_UNKNOWN_DIGEST_TYPE),
76 "unknown digest type"},
77 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_UNKNOWN_OPERATION),
78 "unknown operation"},
79 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_UNSUPPORTED_CIPHER_TYPE),
80 "unsupported cipher type"},
81 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_UNSUPPORTED_CONTENT_TYPE),
82 "unsupported content type"},
83 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_WRONG_CONTENT_TYPE),
84 "wrong content type"},
85 {ERR_PACK(ERR_LIB_PKCS7, 0, PKCS7_R_WRONG_PKCS7_TYPE), "wrong pkcs7 type"},
0f113f3e
MC
86 {0, NULL}
87};
d02b48c6 88
58964a49
RE
89#endif
90
14a6c6a4 91int err_load_PKCS7_strings_int(void)
0f113f3e 92{
47a9d527 93#ifndef OPENSSL_NO_ERR
0cd1b144 94 if (ERR_reason_error_string(PKCS7_str_reasons[0].error) == NULL)
52df25cf 95 ERR_load_strings_const(PKCS7_str_reasons);
47a9d527 96#endif
69588edb 97 return 1;
0f113f3e 98}