f6193b2458c6f73178f3a6cf0d62501968f56843
[openssl.git] / crypto / kdf / kdf_err.c
1 /*
2  * Generated by util/mkerr.pl DO NOT EDIT
3  * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
4  *
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
9  */
10
11 #include <openssl/err.h>
12 #include <openssl/kdferr.h>
13
14 #ifndef OPENSSL_NO_ERR
15
16 static const ERR_STRING_DATA KDF_str_functs[] = {
17     {ERR_PACK(ERR_LIB_KDF, KDF_F_PKEY_HKDF_DERIVE, 0), "pkey_hkdf_derive"},
18     {ERR_PACK(ERR_LIB_KDF, KDF_F_PKEY_TLS1_PRF_CTRL_STR, 0),
19      "pkey_tls1_prf_ctrl_str"},
20     {ERR_PACK(ERR_LIB_KDF, KDF_F_PKEY_TLS1_PRF_DERIVE, 0),
21      "pkey_tls1_prf_derive"},
22     {0, NULL}
23 };
24
25 static const ERR_STRING_DATA KDF_str_reasons[] = {
26     {ERR_PACK(ERR_LIB_KDF, 0, KDF_R_INVALID_DIGEST), "invalid digest"},
27     {ERR_PACK(ERR_LIB_KDF, 0, KDF_R_MISSING_PARAMETER), "missing parameter"},
28     {ERR_PACK(ERR_LIB_KDF, 0, KDF_R_VALUE_MISSING), "value missing"},
29     {0, NULL}
30 };
31
32 #endif
33
34 int ERR_load_KDF_strings(void)
35 {
36 #ifndef OPENSSL_NO_ERR
37     if (ERR_func_error_string(KDF_str_functs[0].error) == NULL) {
38         ERR_load_strings_const(KDF_str_functs);
39         ERR_load_strings_const(KDF_str_reasons);
40     }
41 #endif
42     return 1;
43 }