|
1 /* |
|
2 * This product includes cryptographic software developed by the OpenSSL |
|
3 * Project for use in the OpenSSL Toolkit (http://www.openssl.org/). |
|
4 */ |
|
5 |
|
6 /* |
|
7 * ==================================================================== |
|
8 * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. |
|
9 * |
|
10 * Redistribution and use in source and binary forms, with or without |
|
11 * modification, are permitted provided that the following conditions |
|
12 * are met: |
|
13 * |
|
14 * 1. Redistributions of source code must retain the above copyright |
|
15 * notice, this list of conditions and the following disclaimer. |
|
16 * |
|
17 * 2. Redistributions in binary form must reproduce the above copyright |
|
18 * notice, this list of conditions and the following disclaimer in |
|
19 * the documentation and/or other materials provided with the |
|
20 * distribution. |
|
21 * |
|
22 * 3. All advertising materials mentioning features or use of this |
|
23 * software must display the following acknowledgment: |
|
24 * "This product includes software developed by the OpenSSL Project |
|
25 * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" |
|
26 * |
|
27 * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to |
|
28 * endorse or promote products derived from this software without |
|
29 * prior written permission. For written permission, please contact |
|
30 * [email protected]. |
|
31 * |
|
32 * 5. Products derived from this software may not be called "OpenSSL" |
|
33 * nor may "OpenSSL" appear in their names without prior written |
|
34 * permission of the OpenSSL Project. |
|
35 * |
|
36 * 6. Redistributions of any form whatsoever must retain the following |
|
37 * acknowledgment: |
|
38 * "This product includes software developed by the OpenSSL Project |
|
39 * for use in the OpenSSL Toolkit (http://www.openssl.org/)" |
|
40 * |
|
41 * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY |
|
42 * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|
43 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|
44 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR |
|
45 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
46 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
|
47 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|
48 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
|
49 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
|
50 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
|
51 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
|
52 * OF THE POSSIBILITY OF SUCH DAMAGE. |
|
53 * ==================================================================== |
|
54 */ |
|
55 |
|
56 /* |
|
57 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
58 */ |
|
59 |
|
60 #ifndef ENG_T4_ERR_H |
|
61 #define ENG_T4_ERR_H |
|
62 |
|
63 #ifdef __cplusplus |
|
64 extern "C" { |
|
65 #endif |
|
66 |
|
67 static void ERR_unload_t4_strings(void); |
|
68 #pragma inline(ERR_unload_t4_strings) |
|
69 static void ERR_t4_error(int function, int reason, char *file, int line); |
|
70 |
|
71 #define T4err(f, r) ERR_t4_error((f), (r), __FILE__, __LINE__) |
|
72 |
|
73 /* Function codes */ |
|
74 #define T4_F_INIT 100 |
|
75 #define T4_F_DESTROY 101 |
|
76 #define T4_F_FINISH 102 |
|
77 #define T4_F_CIPHER_INIT_AES 103 |
|
78 #define T4_F_ADD_NID 104 |
|
79 #define T4_F_GET_ALL_CIPHERS 105 |
|
80 #define T4_F_CIPHER_DO_AES 106 |
|
81 #define T4_F_CIPHER_CLEANUP 107 |
|
82 #define T4_F_CIPHER_INIT_DES 108 |
|
83 #define T4_F_CIPHER_DO_DES 109 |
|
84 |
|
85 /* Reason codes */ |
|
86 #define T4_R_CIPHER_KEY 100 |
|
87 #define T4_R_CIPHER_NID 101 |
|
88 #define T4_R_IV_LEN_INCORRECT 102 |
|
89 #define T4_R_KEY_LEN_INCORRECT 103 |
|
90 #define T4_R_ASN1_OBJECT_CREATE 104 |
|
91 #define T4_R_NOT_BLOCKSIZE_LENGTH 105 |
|
92 |
|
93 #ifdef __cplusplus |
|
94 } |
|
95 #endif |
|
96 |
|
97 #endif /* ENG_T4_ERR_H */ |