1160814Ssimon/* ====================================================================
2160814Ssimon * Copyright (c) 2001 The OpenSSL Project.  All rights reserved.
3160814Ssimon *
4160814Ssimon * Redistribution and use in source and binary forms, with or without
5160814Ssimon * modification, are permitted provided that the following conditions
6160814Ssimon * are met:
7160814Ssimon *
8160814Ssimon * 1. Redistributions of source code must retain the above copyright
9296341Sdelphij *    notice, this list of conditions and the following disclaimer.
10160814Ssimon *
11160814Ssimon * 2. Redistributions in binary form must reproduce the above copyright
12160814Ssimon *    notice, this list of conditions and the following disclaimer in
13160814Ssimon *    the documentation and/or other materials provided with the
14160814Ssimon *    distribution.
15160814Ssimon *
16160814Ssimon * 3. All advertising materials mentioning features or use of this
17160814Ssimon *    software must display the following acknowledgment:
18160814Ssimon *    "This product includes software developed by the OpenSSL Project
19160814Ssimon *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
20160814Ssimon *
21160814Ssimon * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
22160814Ssimon *    endorse or promote products derived from this software without
23160814Ssimon *    prior written permission. For written permission, please contact
24160814Ssimon *    openssl-core@openssl.org.
25160814Ssimon *
26160814Ssimon * 5. Products derived from this software may not be called "OpenSSL"
27160814Ssimon *    nor may "OpenSSL" appear in their names without prior written
28160814Ssimon *    permission of the OpenSSL Project.
29160814Ssimon *
30160814Ssimon * 6. Redistributions of any form whatsoever must retain the following
31160814Ssimon *    acknowledgment:
32160814Ssimon *    "This product includes software developed by the OpenSSL Project
33160814Ssimon *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
34160814Ssimon *
35160814Ssimon * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
36160814Ssimon * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
37160814Ssimon * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
38160814Ssimon * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
39160814Ssimon * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40160814Ssimon * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
41160814Ssimon * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
42160814Ssimon * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
43160814Ssimon * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
44160814Ssimon * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
45160814Ssimon * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
46160814Ssimon * OF THE POSSIBILITY OF SUCH DAMAGE.
47160814Ssimon * ====================================================================
48160814Ssimon *
49160814Ssimon * This product includes cryptographic software written by Eric Young
50160814Ssimon * (eay@cryptsoft.com).  This product includes software written by Tim
51160814Ssimon * Hudson (tjh@cryptsoft.com).
52160814Ssimon *
53160814Ssimon */
54160814Ssimon
55160814Ssimon#ifndef HEADER_HWCRHK_ERR_H
56296341Sdelphij# define HEADER_HWCRHK_ERR_H
57160814Ssimon
58194206Ssimon#ifdef  __cplusplus
59194206Ssimonextern "C" {
60194206Ssimon#endif
61194206Ssimon
62160814Ssimon/* BEGIN ERROR CODES */
63296341Sdelphij/*
64296341Sdelphij * The following lines are auto generated by the script mkerr.pl. Any changes
65160814Ssimon * made after this point may be overwritten when the script is next run.
66160814Ssimon */
67160814Ssimonstatic void ERR_load_HWCRHK_strings(void);
68160814Ssimonstatic void ERR_unload_HWCRHK_strings(void);
69160814Ssimonstatic void ERR_HWCRHK_error(int function, int reason, char *file, int line);
70296341Sdelphij# define HWCRHKerr(f,r) ERR_HWCRHK_error((f),(r),__FILE__,__LINE__)
71160814Ssimon
72160814Ssimon/* Error codes for the HWCRHK functions. */
73160814Ssimon
74160814Ssimon/* Function codes. */
75296341Sdelphij# define HWCRHK_F_HWCRHK_CTRL                             100
76296341Sdelphij# define HWCRHK_F_HWCRHK_FINISH                           101
77296341Sdelphij# define HWCRHK_F_HWCRHK_GET_PASS                         102
78296341Sdelphij# define HWCRHK_F_HWCRHK_INIT                             103
79296341Sdelphij# define HWCRHK_F_HWCRHK_INSERT_CARD                      104
80296341Sdelphij# define HWCRHK_F_HWCRHK_LOAD_PRIVKEY                     105
81296341Sdelphij# define HWCRHK_F_HWCRHK_LOAD_PUBKEY                      106
82296341Sdelphij# define HWCRHK_F_HWCRHK_MOD_EXP                          107
83296341Sdelphij# define HWCRHK_F_HWCRHK_RAND_BYTES                       108
84296341Sdelphij# define HWCRHK_F_HWCRHK_RSA_MOD_EXP                      109
85160814Ssimon
86160814Ssimon/* Reason codes. */
87296341Sdelphij# define HWCRHK_R_ALREADY_LOADED                          100
88296341Sdelphij# define HWCRHK_R_BIO_WAS_FREED                           101
89296341Sdelphij# define HWCRHK_R_CHIL_ERROR                              102
90296341Sdelphij# define HWCRHK_R_CTRL_COMMAND_NOT_IMPLEMENTED            103
91296341Sdelphij# define HWCRHK_R_DSO_FAILURE                             104
92296341Sdelphij# define HWCRHK_R_MISSING_KEY_COMPONENTS                  105
93296341Sdelphij# define HWCRHK_R_NOT_INITIALISED                         106
94296341Sdelphij# define HWCRHK_R_NOT_LOADED                              107
95296341Sdelphij# define HWCRHK_R_NO_CALLBACK                             108
96296341Sdelphij# define HWCRHK_R_NO_KEY                                  109
97296341Sdelphij# define HWCRHK_R_PRIVATE_KEY_ALGORITHMS_DISABLED         110
98296341Sdelphij# define HWCRHK_R_REQUEST_FAILED                          111
99296341Sdelphij# define HWCRHK_R_REQUEST_FALLBACK                        112
100296341Sdelphij# define HWCRHK_R_UNIT_FAILURE                            113
101160814Ssimon
102160814Ssimon#ifdef  __cplusplus
103160814Ssimon}
104160814Ssimon#endif
105160814Ssimon#endif
106