]>
Commit | Line | Data |
---|---|---|
b6cff313 | 1 | /* |
0cd0a820 | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
52df25cf | 3 | * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. |
6d311938 | 4 | * |
b6cff313 RS |
5 | * Licensed under the OpenSSL license (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 | |
6d311938 DSH |
9 | */ |
10 | ||
ec577822 | 11 | #include <openssl/err.h> |
52df25cf | 12 | #include <openssl/cryptoerr.h> |
58964a49 | 13 | |
cf1b7d96 | 14 | #ifndef OPENSSL_NO_ERR |
29dc3508 | 15 | |
52df25cf RS |
16 | static const ERR_STRING_DATA CRYPTO_str_functs[] = { |
17 | {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_CRYPTO_DUP_EX_DATA, 0), | |
18 | "CRYPTO_dup_ex_data"}, | |
19 | {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_CRYPTO_FREE_EX_DATA, 0), | |
20 | "CRYPTO_free_ex_data"}, | |
21 | {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX, 0), | |
22 | "CRYPTO_get_ex_new_index"}, | |
23 | {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_CRYPTO_MEMDUP, 0), "CRYPTO_memdup"}, | |
24 | {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_CRYPTO_NEW_EX_DATA, 0), | |
25 | "CRYPTO_new_ex_data"}, | |
26 | {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_CRYPTO_SET_EX_DATA, 0), | |
27 | "CRYPTO_set_ex_data"}, | |
28 | {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_FIPS_MODE_SET, 0), "FIPS_mode_set"}, | |
29 | {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_GET_AND_LOCK, 0), "get_and_lock"}, | |
30 | {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_OPENSSL_BUF2HEXSTR, 0), | |
31 | "OPENSSL_buf2hexstr"}, | |
32 | {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_OPENSSL_HEXSTR2BUF, 0), | |
33 | "OPENSSL_hexstr2buf"}, | |
34 | {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_OPENSSL_INIT_CRYPTO, 0), | |
35 | "OPENSSL_init_crypto"}, | |
0f113f3e MC |
36 | {0, NULL} |
37 | }; | |
6d311938 | 38 | |
52df25cf RS |
39 | static const ERR_STRING_DATA CRYPTO_str_reasons[] = { |
40 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_FIPS_MODE_NOT_SUPPORTED), | |
41 | "fips mode not supported"}, | |
42 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ILLEGAL_HEX_DIGIT), | |
43 | "illegal hex digit"}, | |
44 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ODD_NUMBER_OF_DIGITS), | |
45 | "odd number of digits"}, | |
0f113f3e MC |
46 | {0, NULL} |
47 | }; | |
58964a49 RE |
48 | |
49 | #endif | |
50 | ||
69588edb | 51 | int ERR_load_CRYPTO_strings(void) |
0f113f3e | 52 | { |
47a9d527 | 53 | #ifndef OPENSSL_NO_ERR |
0f113f3e | 54 | if (ERR_func_error_string(CRYPTO_str_functs[0].error) == NULL) { |
52df25cf RS |
55 | ERR_load_strings_const(CRYPTO_str_functs); |
56 | ERR_load_strings_const(CRYPTO_str_reasons); | |
0f113f3e | 57 | } |
47a9d527 | 58 | #endif |
69588edb | 59 | return 1; |
0f113f3e | 60 | } |