]>
Commit | Line | Data |
---|---|---|
b6cff313 | 1 | /* |
0cd0a820 | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
4c2883a9 | 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. |
6d311938 | 4 | * |
0e9725bc | 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
b6cff313 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 | |
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_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"}, | |
3c93fbac P |
21 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INSUFFICIENT_DATA_SPACE), |
22 | "insufficient data space"}, | |
23 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INSUFFICIENT_PARAM_SIZE), | |
24 | "insufficient param size"}, | |
25 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INSUFFICIENT_SECURE_DATA_SPACE), | |
26 | "insufficient secure data space"}, | |
27 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INVALID_NULL_ARGUMENT), | |
28 | "invalid null argument"}, | |
29 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INVALID_OSSL_PARAM_TYPE), | |
30 | "invalid ossl param type"}, | |
52df25cf RS |
31 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ODD_NUMBER_OF_DIGITS), |
32 | "odd number of digits"}, | |
4c2883a9 RL |
33 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_PROVIDER_ALREADY_EXISTS), |
34 | "provider already exists"}, | |
abbc2c40 RL |
35 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_PROVIDER_SECTION_ERROR), |
36 | "provider section error"}, | |
3c93fbac P |
37 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_SECURE_MALLOC_FAILURE), |
38 | "secure malloc failure"}, | |
39 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_STRING_TOO_LONG), "string too long"}, | |
40 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_TOO_MANY_BYTES), "too many bytes"}, | |
41 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_TOO_MANY_RECORDS), | |
42 | "too many records"}, | |
43 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ZERO_LENGTH_NUMBER), | |
44 | "zero length number"}, | |
0f113f3e MC |
45 | {0, NULL} |
46 | }; | |
58964a49 RE |
47 | |
48 | #endif | |
49 | ||
69588edb | 50 | int ERR_load_CRYPTO_strings(void) |
0f113f3e | 51 | { |
47a9d527 | 52 | #ifndef OPENSSL_NO_ERR |
cbfa5b03 | 53 | if (ERR_func_error_string(CRYPTO_str_reasons[0].error) == NULL) |
52df25cf | 54 | ERR_load_strings_const(CRYPTO_str_reasons); |
47a9d527 | 55 | #endif |
69588edb | 56 | return 1; |
0f113f3e | 57 | } |