/src/openssl32/crypto/pkcs7/pkcs7err.c
Line | Count | Source |
1 | | /* |
2 | | * Generated by util/mkerr.pl DO NOT EDIT |
3 | | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. |
4 | | * |
5 | | * Licensed under the Apache License 2.0 (the "License"). You may not use |
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/pkcs7err.h> |
13 | | #include "crypto/pkcs7err.h" |
14 | | |
15 | | #ifndef OPENSSL_NO_ERR |
16 | | |
17 | | static 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"}, |
86 | | {0, NULL} |
87 | | }; |
88 | | |
89 | | #endif |
90 | | |
91 | | int ossl_err_load_PKCS7_strings(void) |
92 | 133 | { |
93 | 133 | #ifndef OPENSSL_NO_ERR |
94 | 133 | if (ERR_reason_error_string(PKCS7_str_reasons[0].error) == NULL) |
95 | 133 | ERR_load_strings_const(PKCS7_str_reasons); |
96 | 133 | #endif |
97 | 133 | return 1; |
98 | 133 | } |