]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/pkcs12/pk12err.c
Fix typos found by codespell
[thirdparty/openssl.git] / crypto / pkcs12 / pk12err.c
CommitLineData
b1322259 1/*
0cd0a820 2 * Generated by util/mkerr.pl DO NOT EDIT
e869c867 3 * Copyright 1995-2022 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>
14a6c6a4 13#include "crypto/pkcs12err.h"
8d8c7266 14
cf1b7d96 15#ifndef OPENSSL_NO_ERR
29dc3508 16
52df25cf 17static const ERR_STRING_DATA PKCS12_str_reasons[] = {
e869c867 18 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_CALLBACK_FAILED), "callback failed"},
52df25cf 19 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_CANT_PACK_STRUCTURE),
eb4129e1 20 "can't pack structure"},
52df25cf
RS
21 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_CONTENT_TYPE_NOT_DATA),
22 "content type not data"},
23 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_DECODE_ERROR), "decode error"},
24 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_ENCODE_ERROR), "encode error"},
25 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_ENCRYPT_ERROR), "encrypt error"},
26 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_ERROR_SETTING_ENCRYPTED_DATA_TYPE),
27 "error setting encrypted data type"},
28 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_INVALID_NULL_ARGUMENT),
29 "invalid null argument"},
30 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_INVALID_NULL_PKCS12_POINTER),
31 "invalid null pkcs12 pointer"},
c5ec6dcf 32 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_INVALID_TYPE), "invalid type"},
52df25cf
RS
33 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_IV_GEN_ERROR), "iv gen error"},
34 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_KEY_GEN_ERROR), "key gen error"},
35 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_ABSENT), "mac absent"},
36 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_GENERATION_ERROR),
37 "mac generation error"},
38 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_SETUP_ERROR), "mac setup error"},
39 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_STRING_SET_ERROR),
40 "mac string set error"},
41 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_VERIFY_FAILURE),
42 "mac verify failure"},
43 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_PARSE_ERROR), "parse error"},
52df25cf
RS
44 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_PKCS12_CIPHERFINAL_ERROR),
45 "pkcs12 cipherfinal error"},
52df25cf
RS
46 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_UNKNOWN_DIGEST_ALGORITHM),
47 "unknown digest algorithm"},
48 {ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_UNSUPPORTED_PKCS12_MODE),
49 "unsupported pkcs12 mode"},
0f113f3e
MC
50 {0, NULL}
51};
8d8c7266
DSH
52
53#endif
54
b93f6c2d 55int ossl_err_load_PKCS12_strings(void)
0f113f3e 56{
47a9d527 57#ifndef OPENSSL_NO_ERR
0cd1b144 58 if (ERR_reason_error_string(PKCS12_str_reasons[0].error) == NULL)
52df25cf 59 ERR_load_strings_const(PKCS12_str_reasons);
47a9d527 60#endif
69588edb 61 return 1;
0f113f3e 62}