]> git.ipfire.org Git - thirdparty/openssl.git/blob - crypto/cpt_err.c
Regenerate mkerr files
[thirdparty/openssl.git] / crypto / cpt_err.c
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 <openssl/cryptoerr.h>
13
14 #ifndef OPENSSL_NO_ERR
15
16 static const ERR_STRING_DATA CRYPTO_str_reasons[] = {
17 {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_FIPS_MODE_NOT_SUPPORTED),
18 "fips mode not supported"},
19 {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ILLEGAL_HEX_DIGIT),
20 "illegal hex digit"},
21 {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ODD_NUMBER_OF_DIGITS),
22 "odd number of digits"},
23 {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_PROVIDER_ALREADY_EXISTS),
24 "provider already exists"},
25 {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_PROVIDER_SECTION_ERROR),
26 "provider section error"},
27 {0, NULL}
28 };
29
30 #endif
31
32 int ERR_load_CRYPTO_strings(void)
33 {
34 #ifndef OPENSSL_NO_ERR
35 if (ERR_func_error_string(CRYPTO_str_reasons[0].error) == NULL)
36 ERR_load_strings_const(CRYPTO_str_reasons);
37 #endif
38 return 1;
39 }