]> git.ipfire.org Git - thirdparty/openssl.git/blame - providers/common/provider_err.c
Regenerate mkerr files
[thirdparty/openssl.git] / providers / common / provider_err.c
CommitLineData
6caf7f3a
MC
1/*
2 * Generated by util/mkerr.pl DO NOT EDIT
3 * Copyright 1995-2019 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 "internal/providercommonerr.h"
13
14#ifndef OPENSSL_NO_ERR
15
6caf7f3a
MC
16static const ERR_STRING_DATA PROV_str_reasons[] = {
17 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_AES_KEY_SETUP_FAILED),
18 "aes key setup failed"},
19 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_BAD_DECRYPT), "bad decrypt"},
20 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_CIPHER_OPERATION_FAILED),
21 "cipher operation failed"},
22 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_GET_PARAMETER),
23 "failed to get parameter"},
24 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_FAILED_TO_SET_PARAMETER),
25 "failed to set parameter"},
26 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_INVALID_KEYLEN), "invalid keylen"},
27 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_OUTPUT_BUFFER_TOO_SMALL),
28 "output buffer too small"},
29 {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_WRONG_FINAL_BLOCK_LENGTH),
30 "wrong final block length"},
31 {0, NULL}
32};
33
34#endif
35
36int ERR_load_PROV_strings(void)
37{
38#ifndef OPENSSL_NO_ERR
cbfa5b03 39 if (ERR_func_error_string(PROV_str_reasons[0].error) == NULL)
6caf7f3a 40 ERR_load_strings_const(PROV_str_reasons);
6caf7f3a
MC
41#endif
42 return 1;
43}