1 /* |
|
2 * CDDL HEADER START |
|
3 * |
|
4 * The contents of this file are subject to the terms of the |
|
5 * Common Development and Distribution License (the "License"). |
|
6 * You may not use this file except in compliance with the License. |
|
7 * |
|
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 * or http://www.opensolaris.org/os/licensing. |
|
10 * See the License for the specific language governing permissions |
|
11 * and limitations under the License. |
|
12 * |
|
13 * When distributing Covered Code, include this CDDL HEADER in each |
|
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 * If applicable, add the following below this CDDL HEADER, with the |
|
16 * fields enclosed by brackets "[]" replaced with your own identifying |
|
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 * |
|
19 * CDDL HEADER END |
|
20 * |
|
21 * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. |
|
22 */ |
|
23 |
|
24 #ifndef HEADER_DEVCRYPTO_ERR_H |
|
25 #define HEADER_DEVCRYPTO_ERR_H |
|
26 |
|
27 static void ERR_load_devcrypto_strings(void); |
|
28 static void ERR_unload_devcrypto_strings(void); |
|
29 static void ERR_devcrypto_error(int function, int reason, char *file, int line); |
|
30 |
|
31 #define DEVCRYPTOerr(f, r) ERR_devcrypto_error((f), (r), __FILE__, __LINE__) |
|
32 |
|
33 |
|
34 /* Function codes */ |
|
35 #define DEVC_F_INIT 100 |
|
36 #define DEVC_F_DESTROY 101 |
|
37 #define DEVC_F_FINISH 102 |
|
38 #define DEVC_F_CIPHER_INIT 103 |
|
39 #define DEVC_F_CIPHER_DO_CIPHER 104 |
|
40 #define DEVC_F_CIPHER_CLEANUP 105 |
|
41 |
|
42 |
|
43 /* Reason codes */ |
|
44 #define DEVC_R_CIPHER_KEY 100 |
|
45 #define DEVC_R_CIPHER_NID 101 |
|
46 #define DEVC_R_KEY_OR_IV_LEN_PROBLEM 102 |
|
47 #define DEVC_R_MECH_STRING 103 |
|
48 #define DEVC_R_FIND_SLOT_BY_MECH 104 |
|
49 #define DEVC_R_OPEN_SESSION 105 |
|
50 #define DEVC_R_GET_MECHANISM_NUMBER 106 |
|
51 #define DEVC_R_ENCRYPT_INIT 107 |
|
52 #define DEVC_R_ENCRYPT_UPDATE 108 |
|
53 #define DEVC_R_ENCRYPT_FINAL 109 |
|
54 #define DEVC_R_DECRYPT_INIT 110 |
|
55 #define DEVC_R_DECRYPT_UPDATE 111 |
|
56 #define DEVC_R_DECRYPT_FINAL 112 |
|
57 #define DEVC_R_CLOSE_SESSION 113 |
|
58 |
|
59 #endif /* HEADER_DEVCRYPTO_ERR_H */ |
|