21abc979c6a50fdefb1326b4e8eda3cbd568cf7a
[openssl.git] / engines / afalg / e_afalg_err.h
1 /*
2  * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 /*
11  * NOTE: this file was auto generated by the mkerr.pl script: any changes
12  * made to it will be overwritten when the script next updates this file,
13  * only reason strings will be preserved.
14  */
15
16 #ifndef HEADER_AFALG_ERR_H
17 # define HEADER_AFALG_ERR_H
18
19 # ifdef  __cplusplus
20 extern "C" {
21 # endif
22
23 /* BEGIN ERROR CODES */
24 void ERR_load_AFALG_strings(void);
25 void ERR_unload_AFALG_strings(void);
26 void ERR_AFALG_error(int function, int reason, char *file, int line);
27 # define AFALGerr(f,r) ERR_AFALG_error((f),(r),__FILE__,__LINE__)
28
29 /* Error codes for the AFALG functions. */
30
31 /* Function codes. */
32 # define AFALG_F_AFALG_CHK_PLATFORM                       100
33 # define AFALG_F_AFALG_CREATE_BIND_SK                     106
34 # define AFALG_F_AFALG_CREATE_BIND_SOCKET                 105
35 # define AFALG_F_AFALG_CREATE_SK                          108
36 # define AFALG_F_AFALG_INIT_AIO                           101
37 # define AFALG_F_AFALG_SETUP_ASYNC_EVENT_NOTIFICATION     107
38 # define AFALG_F_AFALG_SET_KEY                            109
39 # define AFALG_F_AFALG_SOCKET                             102
40 # define AFALG_F_AFALG_START_CIPHER_SK                    103
41 # define AFALG_F_BIND_AFALG                               104
42
43 /* Reason codes. */
44 # define AFALG_R_EVENTFD_FAILED                           108
45 # define AFALG_R_FAILED_TO_GET_PLATFORM_INFO              111
46 # define AFALG_R_INIT_FAILED                              100
47 # define AFALG_R_IO_SETUP_FAILED                          105
48 # define AFALG_R_KERNEL_DOES_NOT_SUPPORT_AFALG            101
49 # define AFALG_R_KERNEL_DOES_NOT_SUPPORT_ASYNC_AFALG      107
50 # define AFALG_R_MEM_ALLOC_FAILED                         102
51 # define AFALG_R_SOCKET_ACCEPT_FAILED                     110
52 # define AFALG_R_SOCKET_BIND_FAILED                       103
53 # define AFALG_R_SOCKET_CREATE_FAILED                     109
54 # define AFALG_R_SOCKET_OPERATION_FAILED                  104
55 # define AFALG_R_SOCKET_SET_KEY_FAILED                    106
56
57 #ifdef  __cplusplus
58 }
59 #endif
60 #endif