1*913ec974Sbeck /* crypto/buffer/buf_err.c */ 2*913ec974Sbeck /* ==================================================================== 3*913ec974Sbeck * Copyright (c) 1999 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: 8*913ec974Sbeck * 9*913ec974Sbeck * 1. Redistributions of source code must retain the above copyright 105b37fcf3Sryker * notice, this list of conditions and the following disclaimer. 11*913ec974Sbeck * 125b37fcf3Sryker * 2. Redistributions in binary form must reproduce the above copyright 13*913ec974Sbeck * notice, this list of conditions and the following disclaimer in 14*913ec974Sbeck * the documentation and/or other materials provided with the 15*913ec974Sbeck * distribution. 165b37fcf3Sryker * 17*913ec974Sbeck * 3. All advertising materials mentioning features or use of this 18*913ec974Sbeck * software must display the following acknowledgment: 19*913ec974Sbeck * "This product includes software developed by the OpenSSL Project 20*913ec974Sbeck * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" 215b37fcf3Sryker * 22*913ec974Sbeck * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 23*913ec974Sbeck * endorse or promote products derived from this software without 24*913ec974Sbeck * prior written permission. For written permission, please contact 25*913ec974Sbeck * openssl-core@OpenSSL.org. 26*913ec974Sbeck * 27*913ec974Sbeck * 5. Products derived from this software may not be called "OpenSSL" 28*913ec974Sbeck * nor may "OpenSSL" appear in their names without prior written 29*913ec974Sbeck * permission of the OpenSSL Project. 30*913ec974Sbeck * 31*913ec974Sbeck * 6. Redistributions of any form whatsoever must retain the following 32*913ec974Sbeck * acknowledgment: 33*913ec974Sbeck * "This product includes software developed by the OpenSSL Project 34*913ec974Sbeck * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" 35*913ec974Sbeck * 36*913ec974Sbeck * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 37*913ec974Sbeck * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 38*913ec974Sbeck * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 39*913ec974Sbeck * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 40*913ec974Sbeck * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 41*913ec974Sbeck * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 42*913ec974Sbeck * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 43*913ec974Sbeck * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 44*913ec974Sbeck * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 45*913ec974Sbeck * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 46*913ec974Sbeck * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 47*913ec974Sbeck * OF THE POSSIBILITY OF SUCH DAMAGE. 48*913ec974Sbeck * ==================================================================== 49*913ec974Sbeck * 50*913ec974Sbeck * This product includes cryptographic software written by Eric Young 51*913ec974Sbeck * (eay@cryptsoft.com). This product includes software written by Tim 52*913ec974Sbeck * Hudson (tjh@cryptsoft.com). 53*913ec974Sbeck * 545b37fcf3Sryker */ 55*913ec974Sbeck 56*913ec974Sbeck /* NOTE: this file was auto generated by the mkerr.pl script: any changes 57*913ec974Sbeck * made to it will be overwritten when the script next updates this file. 58*913ec974Sbeck */ 59*913ec974Sbeck 605b37fcf3Sryker #include <stdio.h> 61*913ec974Sbeck #include <openssl/err.h> 62*913ec974Sbeck #include <openssl/buffer.h> 635b37fcf3Sryker 645b37fcf3Sryker /* BEGIN ERROR CODES */ 655b37fcf3Sryker #ifndef NO_ERR 665b37fcf3Sryker static ERR_STRING_DATA BUF_str_functs[]= 675b37fcf3Sryker { 685b37fcf3Sryker {ERR_PACK(0,BUF_F_BUF_MEM_GROW,0), "BUF_MEM_grow"}, 695b37fcf3Sryker {ERR_PACK(0,BUF_F_BUF_MEM_NEW,0), "BUF_MEM_new"}, 705b37fcf3Sryker {ERR_PACK(0,BUF_F_BUF_STRDUP,0), "BUF_strdup"}, 71*913ec974Sbeck {0,NULL} 72*913ec974Sbeck }; 73*913ec974Sbeck 74*913ec974Sbeck static ERR_STRING_DATA BUF_str_reasons[]= 75*913ec974Sbeck { 76*913ec974Sbeck {0,NULL} 775b37fcf3Sryker }; 785b37fcf3Sryker 795b37fcf3Sryker #endif 805b37fcf3Sryker 81*913ec974Sbeck void ERR_load_BUF_strings(void) 825b37fcf3Sryker { 835b37fcf3Sryker static int init=1; 845b37fcf3Sryker 85*913ec974Sbeck if (init) 86*913ec974Sbeck { 875b37fcf3Sryker init=0; 885b37fcf3Sryker #ifndef NO_ERR 895b37fcf3Sryker ERR_load_strings(ERR_LIB_BUF,BUF_str_functs); 90*913ec974Sbeck ERR_load_strings(ERR_LIB_BUF,BUF_str_reasons); 915b37fcf3Sryker #endif 925b37fcf3Sryker 935b37fcf3Sryker } 945b37fcf3Sryker } 95