1913ec974Sbeck /* crypto/buffer/buf_err.c */ 2913ec974Sbeck /* ==================================================================== 3*0a5d6edeSdjm * 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> 62913ec974Sbeck #include <openssl/err.h> 63913ec974Sbeck #include <openssl/buffer.h> 645b37fcf3Sryker 655b37fcf3Sryker /* BEGIN ERROR CODES */ 66da347917Sbeck #ifndef OPENSSL_NO_ERR 676d388760Sdjm 686d388760Sdjm #define ERR_FUNC(func) ERR_PACK(ERR_LIB_BUF,func,0) 696d388760Sdjm #define ERR_REASON(reason) ERR_PACK(ERR_LIB_BUF,0,reason) 706d388760Sdjm 715b37fcf3Sryker static ERR_STRING_DATA BUF_str_functs[]= 725b37fcf3Sryker { 734fcf65c5Sdjm {ERR_FUNC(BUF_F_BUF_MEMDUP), "BUF_memdup"}, 746d388760Sdjm {ERR_FUNC(BUF_F_BUF_MEM_GROW), "BUF_MEM_grow"}, 754fcf65c5Sdjm {ERR_FUNC(BUF_F_BUF_MEM_GROW_CLEAN), "BUF_MEM_grow_clean"}, 766d388760Sdjm {ERR_FUNC(BUF_F_BUF_MEM_NEW), "BUF_MEM_new"}, 776d388760Sdjm {ERR_FUNC(BUF_F_BUF_STRDUP), "BUF_strdup"}, 784fcf65c5Sdjm {ERR_FUNC(BUF_F_BUF_STRNDUP), "BUF_strndup"}, 79913ec974Sbeck {0,NULL} 80913ec974Sbeck }; 81913ec974Sbeck 82913ec974Sbeck static ERR_STRING_DATA BUF_str_reasons[]= 83913ec974Sbeck { 84913ec974Sbeck {0,NULL} 855b37fcf3Sryker }; 865b37fcf3Sryker 875b37fcf3Sryker #endif 885b37fcf3Sryker 89913ec974Sbeck void ERR_load_BUF_strings(void) 905b37fcf3Sryker { 91da347917Sbeck #ifndef OPENSSL_NO_ERR 924fcf65c5Sdjm 934fcf65c5Sdjm if (ERR_func_error_string(BUF_str_functs[0].error) == NULL) 944fcf65c5Sdjm { 956d388760Sdjm ERR_load_strings(0,BUF_str_functs); 966d388760Sdjm ERR_load_strings(0,BUF_str_reasons); 975b37fcf3Sryker } 984fcf65c5Sdjm #endif 995b37fcf3Sryker } 100