e_ubsec_err.h revision 194206
1161475Sdelphij/* ====================================================================
260786Sps * Copyright (c) 2001 The OpenSSL Project.  All rights reserved.
360786Sps *
460786Sps * Redistribution and use in source and binary forms, with or without
5170256Sdelphij * modification, are permitted provided that the following conditions
660786Sps * are met:
760786Sps *
8170256Sdelphij * 1. Redistributions of source code must retain the above copyright
9170256Sdelphij *    notice, this list of conditions and the following disclaimer.
10170256Sdelphij *
11170256Sdelphij * 2. Redistributions in binary form must reproduce the above copyright
12170256Sdelphij *    notice, this list of conditions and the following disclaimer in
1360786Sps *    the documentation and/or other materials provided with the
14170256Sdelphij *    distribution.
15170256Sdelphij *
16161475Sdelphij * 3. All advertising materials mentioning features or use of this
17161475Sdelphij *    software must display the following acknowledgment:
18161475Sdelphij *    "This product includes software developed by the OpenSSL Project
19161475Sdelphij *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
20161475Sdelphij *
21161475Sdelphij * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
22170256Sdelphij *    endorse or promote products derived from this software without
23161475Sdelphij *    prior written permission. For written permission, please contact
24161475Sdelphij *    openssl-core@openssl.org.
25161475Sdelphij *
26161475Sdelphij * 5. Products derived from this software may not be called "OpenSSL"
27161475Sdelphij *    nor may "OpenSSL" appear in their names without prior written
28161475Sdelphij *    permission of the OpenSSL Project.
29170256Sdelphij *
3060786Sps * 6. Redistributions of any form whatsoever must retain the following
31170256Sdelphij *    acknowledgment:
32161475Sdelphij *    "This product includes software developed by the OpenSSL Project
33161475Sdelphij *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
3460786Sps *
35170256Sdelphij * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
36161475Sdelphij * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
37161475Sdelphij * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
3860786Sps * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
3960786Sps * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4060786Sps * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
4160786Sps * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
4260786Sps * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
4360786Sps * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
4460786Sps * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
4560786Sps * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
4660786Sps * OF THE POSSIBILITY OF SUCH DAMAGE.
47161475Sdelphij * ====================================================================
48161475Sdelphij *
4960786Sps * This product includes cryptographic software written by Eric Young
5060786Sps * (eay@cryptsoft.com).  This product includes software written by Tim
51170256Sdelphij * Hudson (tjh@cryptsoft.com).
5260786Sps *
5360786Sps */
5460786Sps
5560786Sps#ifndef HEADER_UBSEC_ERR_H
56161475Sdelphij#define HEADER_UBSEC_ERR_H
57161475Sdelphij
5860786Sps#ifdef  __cplusplus
59170256Sdelphijextern "C" {
6060786Sps#endif
61161475Sdelphij
62170256Sdelphij/* BEGIN ERROR CODES */
63170256Sdelphij/* The following lines are auto generated by the script mkerr.pl. Any changes
64161475Sdelphij * made after this point may be overwritten when the script is next run.
65170256Sdelphij */
66161475Sdelphijstatic void ERR_load_UBSEC_strings(void);
67161475Sdelphijstatic void ERR_unload_UBSEC_strings(void);
68161475Sdelphijstatic void ERR_UBSEC_error(int function, int reason, char *file, int line);
6960786Sps#define UBSECerr(f,r) ERR_UBSEC_error((f),(r),__FILE__,__LINE__)
7060786Sps
7160786Sps/* Error codes for the UBSEC functions. */
7260786Sps
7360786Sps/* Function codes. */
7460786Sps#define UBSEC_F_UBSEC_CTRL				 100
7560786Sps#define UBSEC_F_UBSEC_DH_COMPUTE_KEY			 101
7660786Sps#define UBSEC_F_UBSEC_DH_GENERATE_KEY			 111
7760786Sps#define UBSEC_F_UBSEC_DSA_DO_SIGN			 102
7860786Sps#define UBSEC_F_UBSEC_DSA_VERIFY			 103
7960786Sps#define UBSEC_F_UBSEC_FINISH				 104
8060786Sps#define UBSEC_F_UBSEC_INIT				 105
8160786Sps#define UBSEC_F_UBSEC_MOD_EXP				 106
8260786Sps#define UBSEC_F_UBSEC_MOD_EXP_CRT			 110
8360786Sps#define UBSEC_F_UBSEC_RAND_BYTES			 107
8460786Sps#define UBSEC_F_UBSEC_RSA_MOD_EXP			 108
8560786Sps#define UBSEC_F_UBSEC_RSA_MOD_EXP_CRT			 109
8660786Sps
8760786Sps/* Reason codes. */
8860786Sps#define UBSEC_R_ALREADY_LOADED				 100
8960786Sps#define UBSEC_R_BN_EXPAND_FAIL				 101
9060786Sps#define UBSEC_R_CTRL_COMMAND_NOT_IMPLEMENTED		 102
9160786Sps#define UBSEC_R_DSO_FAILURE				 103
9260786Sps#define UBSEC_R_MISSING_KEY_COMPONENTS			 104
9360786Sps#define UBSEC_R_NOT_LOADED				 105
9460786Sps#define UBSEC_R_REQUEST_FAILED				 106
9560786Sps#define UBSEC_R_SIZE_TOO_LARGE_OR_TOO_SMALL		 107
9660786Sps#define UBSEC_R_UNIT_FAILURE				 108
9760786Sps
98161475Sdelphij#ifdef  __cplusplus
99161475Sdelphij}
100161475Sdelphij#endif
10160786Sps#endif
102161475Sdelphij