]>
Commit | Line | Data |
---|---|---|
b6cff313 | 1 | /* |
0cd0a820 | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
aff636a4 | 3 | * Copyright 1995-2021 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> |
14a6c6a4 | 13 | #include "crypto/cryptoerr.h" |
58964a49 | 14 | |
cf1b7d96 | 15 | #ifndef OPENSSL_NO_ERR |
29dc3508 | 16 | |
52df25cf | 17 | static const ERR_STRING_DATA CRYPTO_str_reasons[] = { |
3d83c735 RL |
18 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_BAD_ALGORITHM_NAME), |
19 | "bad algorithm name"}, | |
20 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_CONFLICTING_NAMES), | |
21 | "conflicting names"}, | |
98ba251f DDO |
22 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_HEX_STRING_TOO_SHORT), |
23 | "hex string too short"}, | |
52df25cf RS |
24 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ILLEGAL_HEX_DIGIT), |
25 | "illegal hex digit"}, | |
3c93fbac P |
26 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INSUFFICIENT_DATA_SPACE), |
27 | "insufficient data space"}, | |
28 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INSUFFICIENT_PARAM_SIZE), | |
29 | "insufficient param size"}, | |
30 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INSUFFICIENT_SECURE_DATA_SPACE), | |
31 | "insufficient secure data space"}, | |
32 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INVALID_NULL_ARGUMENT), | |
33 | "invalid null argument"}, | |
34 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INVALID_OSSL_PARAM_TYPE), | |
35 | "invalid ossl param type"}, | |
52df25cf RS |
36 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ODD_NUMBER_OF_DIGITS), |
37 | "odd number of digits"}, | |
4c2883a9 RL |
38 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_PROVIDER_ALREADY_EXISTS), |
39 | "provider already exists"}, | |
abbc2c40 RL |
40 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_PROVIDER_SECTION_ERROR), |
41 | "provider section error"}, | |
44d2482b P |
42 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_RANDOM_SECTION_ERROR), |
43 | "random section error"}, | |
3c93fbac P |
44 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_SECURE_MALLOC_FAILURE), |
45 | "secure malloc failure"}, | |
46 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_STRING_TOO_LONG), "string too long"}, | |
47 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_TOO_MANY_BYTES), "too many bytes"}, | |
48 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_TOO_MANY_RECORDS), | |
49 | "too many records"}, | |
82bd7c2c RL |
50 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_TOO_SMALL_BUFFER), |
51 | "too small buffer"}, | |
44d2482b P |
52 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_UNKNOWN_NAME_IN_RANDOM_SECTION), |
53 | "unknown name in random section"}, | |
3c93fbac P |
54 | {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ZERO_LENGTH_NUMBER), |
55 | "zero length number"}, | |
0f113f3e MC |
56 | {0, NULL} |
57 | }; | |
58964a49 RE |
58 | |
59 | #endif | |
60 | ||
14a6c6a4 | 61 | int err_load_CRYPTO_strings_int(void) |
0f113f3e | 62 | { |
47a9d527 | 63 | #ifndef OPENSSL_NO_ERR |
0cd1b144 | 64 | if (ERR_reason_error_string(CRYPTO_str_reasons[0].error) == NULL) |
52df25cf | 65 | ERR_load_strings_const(CRYPTO_str_reasons); |
47a9d527 | 66 | #endif |
69588edb | 67 | return 1; |
0f113f3e | 68 | } |