]>
Commit | Line | Data |
---|---|---|
b1322259 | 1 | /* |
0cd0a820 | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
cbfa5b03 | 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. |
6d311938 | 4 | * |
54fffdf4 | 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
b1322259 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 | |
8d8c7266 | 9 | */ |
6d311938 | 10 | |
ec577822 | 11 | #include <openssl/err.h> |
52df25cf | 12 | #include <openssl/pkcs12err.h> |
8d8c7266 | 13 | |
cf1b7d96 | 14 | #ifndef OPENSSL_NO_ERR |
29dc3508 | 15 | |
52df25cf RS |
16 | static const ERR_STRING_DATA PKCS12_str_reasons[] = { |
17 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_CANT_PACK_STRUCTURE), | |
18 | "cant pack structure"}, | |
19 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_CONTENT_TYPE_NOT_DATA), | |
20 | "content type not data"}, | |
21 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_DECODE_ERROR), "decode error"}, | |
22 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_ENCODE_ERROR), "encode error"}, | |
23 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_ENCRYPT_ERROR), "encrypt error"}, | |
24 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_ERROR_SETTING_ENCRYPTED_DATA_TYPE), | |
25 | "error setting encrypted data type"}, | |
26 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_INVALID_NULL_ARGUMENT), | |
27 | "invalid null argument"}, | |
28 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_INVALID_NULL_PKCS12_POINTER), | |
29 | "invalid null pkcs12 pointer"}, | |
30 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_IV_GEN_ERROR), "iv gen error"}, | |
31 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_KEY_GEN_ERROR), "key gen error"}, | |
32 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_ABSENT), "mac absent"}, | |
33 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_GENERATION_ERROR), | |
34 | "mac generation error"}, | |
35 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_SETUP_ERROR), "mac setup error"}, | |
36 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_STRING_SET_ERROR), | |
37 | "mac string set error"}, | |
38 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_VERIFY_FAILURE), | |
39 | "mac verify failure"}, | |
40 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_PARSE_ERROR), "parse error"}, | |
41 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR), | |
42 | "pkcs12 algor cipherinit error"}, | |
43 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_PKCS12_CIPHERFINAL_ERROR), | |
44 | "pkcs12 cipherfinal error"}, | |
45 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_PKCS12_PBE_CRYPT_ERROR), | |
46 | "pkcs12 pbe crypt error"}, | |
47 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_UNKNOWN_DIGEST_ALGORITHM), | |
48 | "unknown digest algorithm"}, | |
49 | {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_UNSUPPORTED_PKCS12_MODE), | |
50 | "unsupported pkcs12 mode"}, | |
0f113f3e MC |
51 | {0, NULL} |
52 | }; | |
8d8c7266 DSH |
53 | |
54 | #endif | |
55 | ||
69588edb | 56 | int ERR_load_PKCS12_strings(void) |
0f113f3e | 57 | { |
47a9d527 | 58 | #ifndef OPENSSL_NO_ERR |
cbfa5b03 | 59 | if (ERR_func_error_string(PKCS12_str_reasons[0].error) == NULL) |
52df25cf | 60 | ERR_load_strings_const(PKCS12_str_reasons); |
47a9d527 | 61 | #endif |
69588edb | 62 | return 1; |
0f113f3e | 63 | } |