2016-05-18 02:52:22 +08:00
|
|
|
/*
|
2016-05-24 03:02:34 +08:00
|
|
|
* Generated by util/mkerr.pl DO NOT EDIT
|
2021-06-17 20:24:59 +08:00
|
|
|
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
1999-04-24 08:15:18 +08:00
|
|
|
*
|
2018-12-06 20:49:51 +08:00
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 02:52:22 +08:00
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
1999-03-29 07:17:34 +08:00
|
|
|
*/
|
1999-04-24 08:15:18 +08:00
|
|
|
|
1999-04-24 06:13:45 +08:00
|
|
|
#include <openssl/err.h>
|
2017-06-08 03:12:03 +08:00
|
|
|
#include <openssl/pkcs12err.h>
|
2020-11-12 17:36:47 +08:00
|
|
|
#include "crypto/pkcs12err.h"
|
1999-03-29 07:17:34 +08:00
|
|
|
|
2001-02-20 00:06:34 +08:00
|
|
|
#ifndef OPENSSL_NO_ERR
|
2005-04-13 00:15:22 +08:00
|
|
|
|
2017-06-08 03:12:03 +08:00
|
|
|
static const ERR_STRING_DATA PKCS12_str_reasons[] = {
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_CANT_PACK_STRUCTURE),
|
|
|
|
"cant pack structure"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_CONTENT_TYPE_NOT_DATA),
|
|
|
|
"content type not data"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_DECODE_ERROR), "decode error"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_ENCODE_ERROR), "encode error"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_ENCRYPT_ERROR), "encrypt error"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_ERROR_SETTING_ENCRYPTED_DATA_TYPE),
|
|
|
|
"error setting encrypted data type"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_INVALID_NULL_ARGUMENT),
|
|
|
|
"invalid null argument"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_INVALID_NULL_PKCS12_POINTER),
|
|
|
|
"invalid null pkcs12 pointer"},
|
2019-09-19 13:39:13 +08:00
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_INVALID_TYPE), "invalid type"},
|
2017-06-08 03:12:03 +08:00
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_IV_GEN_ERROR), "iv gen error"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_KEY_GEN_ERROR), "key gen error"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_ABSENT), "mac absent"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_GENERATION_ERROR),
|
|
|
|
"mac generation error"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_SETUP_ERROR), "mac setup error"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_STRING_SET_ERROR),
|
|
|
|
"mac string set error"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_MAC_VERIFY_FAILURE),
|
|
|
|
"mac verify failure"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_PARSE_ERROR), "parse error"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_PKCS12_CIPHERFINAL_ERROR),
|
|
|
|
"pkcs12 cipherfinal error"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_UNKNOWN_DIGEST_ALGORITHM),
|
|
|
|
"unknown digest algorithm"},
|
|
|
|
{ERR_PACK(ERR_LIB_PKCS12, 0, PKCS12_R_UNSUPPORTED_PKCS12_MODE),
|
|
|
|
"unsupported pkcs12 mode"},
|
2015-01-22 11:40:55 +08:00
|
|
|
{0, NULL}
|
|
|
|
};
|
1999-03-29 07:17:34 +08:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2021-05-25 10:04:22 +08:00
|
|
|
int ossl_err_load_PKCS12_strings(void)
|
2015-01-22 11:40:55 +08:00
|
|
|
{
|
2006-11-22 05:29:44 +08:00
|
|
|
#ifndef OPENSSL_NO_ERR
|
2019-09-05 03:45:56 +08:00
|
|
|
if (ERR_reason_error_string(PKCS12_str_reasons[0].error) == NULL)
|
2017-06-08 03:12:03 +08:00
|
|
|
ERR_load_strings_const(PKCS12_str_reasons);
|
2006-11-22 05:29:44 +08:00
|
|
|
#endif
|
2016-07-12 21:50:06 +08:00
|
|
|
return 1;
|
2015-01-22 11:40:55 +08:00
|
|
|
}
|