]>
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. |
3e30fa0a | 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 | |
3e30fa0a DSH |
9 | */ |
10 | ||
3e30fa0a | 11 | #include <openssl/err.h> |
52df25cf | 12 | #include <openssl/kdferr.h> |
3e30fa0a | 13 | |
3e30fa0a DSH |
14 | #ifndef OPENSSL_NO_ERR |
15 | ||
52df25cf RS |
16 | static const ERR_STRING_DATA KDF_str_functs[] = { |
17 | {ERR_PACK(ERR_LIB_KDF, KDF_F_PKEY_TLS1_PRF_CTRL_STR, 0), | |
18 | "pkey_tls1_prf_ctrl_str"}, | |
19 | {ERR_PACK(ERR_LIB_KDF, KDF_F_PKEY_TLS1_PRF_DERIVE, 0), | |
20 | "pkey_tls1_prf_derive"}, | |
3e30fa0a DSH |
21 | {0, NULL} |
22 | }; | |
23 | ||
52df25cf RS |
24 | static const ERR_STRING_DATA KDF_str_reasons[] = { |
25 | {ERR_PACK(ERR_LIB_KDF, 0, KDF_R_INVALID_DIGEST), "invalid digest"}, | |
26 | {ERR_PACK(ERR_LIB_KDF, 0, KDF_R_MISSING_PARAMETER), "missing parameter"}, | |
27 | {ERR_PACK(ERR_LIB_KDF, 0, KDF_R_VALUE_MISSING), "value missing"}, | |
3e30fa0a DSH |
28 | {0, NULL} |
29 | }; | |
30 | ||
31 | #endif | |
32 | ||
69588edb | 33 | int ERR_load_KDF_strings(void) |
3e30fa0a DSH |
34 | { |
35 | #ifndef OPENSSL_NO_ERR | |
3e30fa0a | 36 | if (ERR_func_error_string(KDF_str_functs[0].error) == NULL) { |
52df25cf RS |
37 | ERR_load_strings_const(KDF_str_functs); |
38 | ERR_load_strings_const(KDF_str_reasons); | |
3e30fa0a DSH |
39 | } |
40 | #endif | |
69588edb | 41 | return 1; |
3e30fa0a | 42 | } |