1*5067ae9fSbeck /* $OpenBSD: buf_err.c,v 1.11 2017/01/29 17:49:22 beck Exp $ */ 2913ec974Sbeck /* ==================================================================== 30a5d6edeSdjm * Copyright (c) 1999-2006 The OpenSSL Project. All rights reserved. 45b37fcf3Sryker * 55b37fcf3Sryker * Redistribution and use in source and binary forms, with or without 65b37fcf3Sryker * modification, are permitted provided that the following conditions 75b37fcf3Sryker * are met: 8913ec974Sbeck * 9913ec974Sbeck * 1. Redistributions of source code must retain the above copyright 105b37fcf3Sryker * notice, this list of conditions and the following disclaimer. 11913ec974Sbeck * 125b37fcf3Sryker * 2. Redistributions in binary form must reproduce the above copyright 13913ec974Sbeck * notice, this list of conditions and the following disclaimer in 14913ec974Sbeck * the documentation and/or other materials provided with the 15913ec974Sbeck * distribution. 165b37fcf3Sryker * 17913ec974Sbeck * 3. All advertising materials mentioning features or use of this 18913ec974Sbeck * software must display the following acknowledgment: 19913ec974Sbeck * "This product includes software developed by the OpenSSL Project 20913ec974Sbeck * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" 215b37fcf3Sryker * 22913ec974Sbeck * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 23913ec974Sbeck * endorse or promote products derived from this software without 24913ec974Sbeck * prior written permission. For written permission, please contact 25913ec974Sbeck * openssl-core@OpenSSL.org. 26913ec974Sbeck * 27913ec974Sbeck * 5. Products derived from this software may not be called "OpenSSL" 28913ec974Sbeck * nor may "OpenSSL" appear in their names without prior written 29913ec974Sbeck * permission of the OpenSSL Project. 30913ec974Sbeck * 31913ec974Sbeck * 6. Redistributions of any form whatsoever must retain the following 32913ec974Sbeck * acknowledgment: 33913ec974Sbeck * "This product includes software developed by the OpenSSL Project 34913ec974Sbeck * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" 35913ec974Sbeck * 36913ec974Sbeck * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 37913ec974Sbeck * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 38913ec974Sbeck * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 39913ec974Sbeck * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 40913ec974Sbeck * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 41913ec974Sbeck * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 42913ec974Sbeck * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 43913ec974Sbeck * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 44913ec974Sbeck * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 45913ec974Sbeck * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 46913ec974Sbeck * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 47913ec974Sbeck * OF THE POSSIBILITY OF SUCH DAMAGE. 48913ec974Sbeck * ==================================================================== 49913ec974Sbeck * 50913ec974Sbeck * This product includes cryptographic software written by Eric Young 51913ec974Sbeck * (eay@cryptsoft.com). This product includes software written by Tim 52913ec974Sbeck * Hudson (tjh@cryptsoft.com). 53913ec974Sbeck * 545b37fcf3Sryker */ 55913ec974Sbeck 56913ec974Sbeck /* NOTE: this file was auto generated by the mkerr.pl script: any changes 57f6e3f262Sbeck * made to it will be overwritten when the script next updates this file, 58f6e3f262Sbeck * only reason strings will be preserved. 59913ec974Sbeck */ 60913ec974Sbeck 615b37fcf3Sryker #include <stdio.h> 628cf4d6a6Sjsing 638cf4d6a6Sjsing #include <openssl/opensslconf.h> 648cf4d6a6Sjsing 65913ec974Sbeck #include <openssl/err.h> 66913ec974Sbeck #include <openssl/buffer.h> 675b37fcf3Sryker 685b37fcf3Sryker /* BEGIN ERROR CODES */ 69da347917Sbeck #ifndef OPENSSL_NO_ERR 706d388760Sdjm 716d388760Sdjm #define ERR_FUNC(func) ERR_PACK(ERR_LIB_BUF,func,0) 726d388760Sdjm #define ERR_REASON(reason) ERR_PACK(ERR_LIB_BUF,0,reason) 736d388760Sdjm 7479e8bed4Sjsing static ERR_STRING_DATA BUF_str_functs[] = { 75*5067ae9fSbeck {ERR_FUNC(0xfff), "CRYPTO_internal"}, 76913ec974Sbeck {0, NULL} 77913ec974Sbeck }; 78913ec974Sbeck 7979e8bed4Sjsing static ERR_STRING_DATA BUF_str_reasons[] = { 80913ec974Sbeck {0, NULL} 815b37fcf3Sryker }; 825b37fcf3Sryker 835b37fcf3Sryker #endif 845b37fcf3Sryker 8579e8bed4Sjsing void 8679e8bed4Sjsing ERR_load_BUF_strings(void) 875b37fcf3Sryker { 88da347917Sbeck #ifndef OPENSSL_NO_ERR 8979e8bed4Sjsing if (ERR_func_error_string(BUF_str_functs[0].error) == NULL) { 906d388760Sdjm ERR_load_strings(0, BUF_str_functs); 916d388760Sdjm ERR_load_strings(0, BUF_str_reasons); 925b37fcf3Sryker } 934fcf65c5Sdjm #endif 945b37fcf3Sryker } 95