14Srgrimes/* crypto/ecdh/ech_err.c */
24Srgrimes/* ====================================================================
34Srgrimes * Copyright (c) 1999-2011 The OpenSSL Project.  All rights reserved.
44Srgrimes *
54Srgrimes * Redistribution and use in source and binary forms, with or without
64Srgrimes * modification, are permitted provided that the following conditions
74Srgrimes * are met:
84Srgrimes *
94Srgrimes * 1. Redistributions of source code must retain the above copyright
104Srgrimes *    notice, this list of conditions and the following disclaimer.
114Srgrimes *
124Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
134Srgrimes *    notice, this list of conditions and the following disclaimer in
144Srgrimes *    the documentation and/or other materials provided with the
154Srgrimes *    distribution.
164Srgrimes *
174Srgrimes * 3. All advertising materials mentioning features or use of this
184Srgrimes *    software must display the following acknowledgment:
194Srgrimes *    "This product includes software developed by the OpenSSL Project
204Srgrimes *    for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
214Srgrimes *
224Srgrimes * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
234Srgrimes *    endorse or promote products derived from this software without
244Srgrimes *    prior written permission. For written permission, please contact
254Srgrimes *    openssl-core@OpenSSL.org.
264Srgrimes *
274Srgrimes * 5. Products derived from this software may not be called "OpenSSL"
284Srgrimes *    nor may "OpenSSL" appear in their names without prior written
294Srgrimes *    permission of the OpenSSL Project.
304Srgrimes *
314Srgrimes * 6. Redistributions of any form whatsoever must retain the following
324Srgrimes *    acknowledgment:
334Srgrimes *    "This product includes software developed by the OpenSSL Project
344Srgrimes *    for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
354Srgrimes *
36619Srgrimes * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
3739526Sbde * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
384Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
394Srgrimes * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
403185Ssos * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4119173Sbde * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
4219173Sbde * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
4319173Sbde * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
4419173Sbde * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
453185Ssos * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
463185Ssos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
473185Ssos * OF THE POSSIBILITY OF SUCH DAMAGE.
483185Ssos * ====================================================================
492913Sache *
502913Sache * This product includes cryptographic software written by Eric Young
5116299Spst * (eay@cryptsoft.com).  This product includes software written by Tim
5233929Sphk * Hudson (tjh@cryptsoft.com).
5313228Swollman *
542056Swollman */
552056Swollman
562056Swollman/* NOTE: this file was auto generated by the mkerr.pl script: any changes
572056Swollman * made to it will be overwritten when the script next updates this file,
5831253Sbde * only reason strings will be preserved.
5931253Sbde */
6031253Sbde
6115508Sbde#include <stdio.h>
6215508Sbde#include <openssl/err.h>
634180Sbde#include <openssl/ecdh.h>
6415508Sbde
6515508Sbde/* BEGIN ERROR CODES */
6615508Sbde#ifndef OPENSSL_NO_ERR
6730805Sbde
682056Swollman#define ERR_FUNC(func) ERR_PACK(ERR_LIB_ECDH,func,0)
6926309Speter#define ERR_REASON(reason) ERR_PACK(ERR_LIB_ECDH,0,reason)
7028551Sbde
7132054Sphkstatic ERR_STRING_DATA ECDH_str_functs[]=
7234617Sphk	{
7334617Sphk{ERR_FUNC(ECDH_F_ECDH_CHECK),	"ECDH_CHECK"},
7434617Sphk{ERR_FUNC(ECDH_F_ECDH_COMPUTE_KEY),	"ECDH_compute_key"},
7534617Sphk{ERR_FUNC(ECDH_F_ECDH_DATA_NEW_METHOD),	"ECDH_DATA_new_method"},
7630805Sbde{0,NULL}
7730805Sbde	};
7830805Sbde
7928921Sfsmpstatic ERR_STRING_DATA ECDH_str_reasons[]=
8026949Sfsmp	{
8128921Sfsmp{ERR_REASON(ECDH_R_KDF_FAILED)           ,"KDF failed"},
8232054Sphk{ERR_REASON(ECDH_R_NON_FIPS_METHOD)      ,"non fips method"},
8315508Sbde{ERR_REASON(ECDH_R_NO_PRIVATE_VALUE)     ,"no private value"},
842056Swollman{ERR_REASON(ECDH_R_POINT_ARITHMETIC_FAILURE),"point arithmetic failure"},
852056Swollman{0,NULL}
862056Swollman	};
872056Swollman
884Srgrimes#endif
8928487Sfsmp
9028487Sfsmpvoid ERR_load_ECDH_strings(void)
9128921Sfsmp	{
9229000Sfsmp#ifndef OPENSSL_NO_ERR
9329000Sfsmp
9434058Stegge	if (ERR_func_error_string(ECDH_str_functs[0].error) == NULL)
9534571Stegge		{
9634571Stegge		ERR_load_strings(0,ECDH_str_functs);
9734058Stegge		ERR_load_strings(0,ECDH_str_reasons);
9834058Stegge		}
9934571Stegge#endif
10034571Stegge	}
10134571Stegge