pem_err.c revision 59191
133965Sjdp/* crypto/pem/pem_err.c */ 2218822Sdim/* ==================================================================== 378828Sobrien * Copyright (c) 1999 The OpenSSL Project. All rights reserved. 433965Sjdp * 533965Sjdp * Redistribution and use in source and binary forms, with or without 6130561Sobrien * modification, are permitted provided that the following conditions 733965Sjdp * are met: 8130561Sobrien * 9130561Sobrien * 1. Redistributions of source code must retain the above copyright 10130561Sobrien * notice, this list of conditions and the following disclaimer. 11130561Sobrien * 1233965Sjdp * 2. Redistributions in binary form must reproduce the above copyright 13130561Sobrien * notice, this list of conditions and the following disclaimer in 14130561Sobrien * the documentation and/or other materials provided with the 15130561Sobrien * distribution. 16130561Sobrien * 1733965Sjdp * 3. All advertising materials mentioning features or use of this 18130561Sobrien * software must display the following acknowledgment: 19130561Sobrien * "This product includes software developed by the OpenSSL Project 20218822Sdim * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" 2133965Sjdp * 2233965Sjdp * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 2333965Sjdp * endorse or promote products derived from this software without 2433965Sjdp * prior written permission. For written permission, please contact 2533965Sjdp * openssl-core@OpenSSL.org. 2633965Sjdp * 2733965Sjdp * 5. Products derived from this software may not be called "OpenSSL" 2833965Sjdp * nor may "OpenSSL" appear in their names without prior written 2933965Sjdp * permission of the OpenSSL Project. 3033965Sjdp * 3177298Sobrien * 6. Redistributions of any form whatsoever must retain the following 3277298Sobrien * acknowledgment: 3377298Sobrien * "This product includes software developed by the OpenSSL Project 3477298Sobrien * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" 3577298Sobrien * 3633965Sjdp * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 3733965Sjdp * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3833965Sjdp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 3933965Sjdp * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 4033965Sjdp * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 4133965Sjdp * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 4233965Sjdp * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 4333965Sjdp * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4433965Sjdp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 4533965Sjdp * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 4633965Sjdp * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 4733965Sjdp * OF THE POSSIBILITY OF SUCH DAMAGE. 4889857Sobrien * ==================================================================== 4989857Sobrien * 5033965Sjdp * This product includes cryptographic software written by Eric Young 5133965Sjdp * (eay@cryptsoft.com). This product includes software written by Tim 5289857Sobrien * Hudson (tjh@cryptsoft.com). 5389857Sobrien * 5433965Sjdp */ 5577298Sobrien 5689857Sobrien/* NOTE: this file was auto generated by the mkerr.pl script: any changes 5789857Sobrien * made to it will be overwritten when the script next updates this file, 5877298Sobrien * only reason strings will be preserved. 5977298Sobrien */ 6089857Sobrien 6189857Sobrien#include <stdio.h> 6277298Sobrien#include <openssl/err.h> 6333965Sjdp#include <openssl/pem.h> 6433965Sjdp 6533965Sjdp/* BEGIN ERROR CODES */ 6633965Sjdp#ifndef NO_ERR 6733965Sjdpstatic ERR_STRING_DATA PEM_str_functs[]= 68218822Sdim { 6933965Sjdp{ERR_PACK(0,PEM_F_D2I_PKCS8PRIVATEKEY_BIO,0), "d2i_PKCS8PrivateKey_bio"}, 70218822Sdim{ERR_PACK(0,PEM_F_D2I_PKCS8PRIVATEKEY_FP,0), "d2i_PKCS8PrivateKey_fp"}, 7133965Sjdp{ERR_PACK(0,PEM_F_DEF_CALLBACK,0), "DEF_CALLBACK"}, 72218822Sdim{ERR_PACK(0,PEM_F_LOAD_IV,0), "LOAD_IV"}, 7333965Sjdp{ERR_PACK(0,PEM_F_PEM_ASN1_READ,0), "PEM_ASN1_read"}, 74218822Sdim{ERR_PACK(0,PEM_F_PEM_ASN1_READ_BIO,0), "PEM_ASN1_read_bio"}, 7533965Sjdp{ERR_PACK(0,PEM_F_PEM_ASN1_WRITE,0), "PEM_ASN1_write"}, 7633965Sjdp{ERR_PACK(0,PEM_F_PEM_ASN1_WRITE_BIO,0), "PEM_ASN1_write_bio"}, 7733965Sjdp{ERR_PACK(0,PEM_F_PEM_DO_HEADER,0), "PEM_do_header"}, 78218822Sdim{ERR_PACK(0,PEM_F_PEM_F_DO_PK8KEY_FP,0), "PEM_F_DO_PK8KEY_FP"}, 79218822Sdim{ERR_PACK(0,PEM_F_PEM_F_PEM_WRITE_PKCS8PRIVATEKEY,0), "PEM_F_PEM_WRITE_PKCS8PRIVATEKEY"}, 80218822Sdim{ERR_PACK(0,PEM_F_PEM_GET_EVP_CIPHER_INFO,0), "PEM_get_EVP_CIPHER_INFO"}, 81218822Sdim{ERR_PACK(0,PEM_F_PEM_READ,0), "PEM_read"}, 82218822Sdim{ERR_PACK(0,PEM_F_PEM_READ_BIO,0), "PEM_read_bio"}, 83218822Sdim{ERR_PACK(0,PEM_F_PEM_SEALFINAL,0), "PEM_SealFinal"}, 84218822Sdim{ERR_PACK(0,PEM_F_PEM_SEALINIT,0), "PEM_SealInit"}, 85218822Sdim{ERR_PACK(0,PEM_F_PEM_SIGNFINAL,0), "PEM_SignFinal"}, 86218822Sdim{ERR_PACK(0,PEM_F_PEM_WRITE,0), "PEM_write"}, 87218822Sdim{ERR_PACK(0,PEM_F_PEM_WRITE_BIO,0), "PEM_write_bio"}, 88218822Sdim{ERR_PACK(0,PEM_F_PEM_WRITE_BIO_PKCS8PRIVATEKEY,0), "PEM_write_bio_PKCS8PrivateKey"}, 89218822Sdim{ERR_PACK(0,PEM_F_PEM_X509_INFO_READ,0), "PEM_X509_INFO_read"}, 90218822Sdim{ERR_PACK(0,PEM_F_PEM_X509_INFO_READ_BIO,0), "PEM_X509_INFO_read_bio"}, 91218822Sdim{ERR_PACK(0,PEM_F_PEM_X509_INFO_WRITE_BIO,0), "PEM_X509_INFO_write_bio"}, 92218822Sdim{0,NULL} 93218822Sdim }; 9433965Sjdp 9533965Sjdpstatic ERR_STRING_DATA PEM_str_reasons[]= 9633965Sjdp { 9733965Sjdp{PEM_R_BAD_BASE64_DECODE ,"bad base64 decode"}, 98218822Sdim{PEM_R_BAD_DECRYPT ,"bad decrypt"}, 9933965Sjdp{PEM_R_BAD_END_LINE ,"bad end line"}, 10033965Sjdp{PEM_R_BAD_IV_CHARS ,"bad iv chars"}, 10133965Sjdp{PEM_R_BAD_PASSWORD_READ ,"bad password read"}, 10233965Sjdp{PEM_R_ERROR_CONVERTING_PRIVATE_KEY ,"error converting private key"}, 10333965Sjdp{PEM_R_NOT_DEK_INFO ,"not dek info"}, 10489857Sobrien{PEM_R_NOT_ENCRYPTED ,"not encrypted"}, 10589857Sobrien{PEM_R_NOT_PROC_TYPE ,"not proc type"}, 10689857Sobrien{PEM_R_NO_START_LINE ,"no start line"}, 10789857Sobrien{PEM_R_PROBLEMS_GETTING_PASSWORD ,"problems getting password"}, 10889857Sobrien{PEM_R_PUBLIC_KEY_NO_RSA ,"public key no rsa"}, 10989857Sobrien{PEM_R_READ_KEY ,"read key"}, 11089857Sobrien{PEM_R_SHORT_HEADER ,"short header"}, 11189857Sobrien{PEM_R_UNSUPPORTED_CIPHER ,"unsupported cipher"}, 11289857Sobrien{PEM_R_UNSUPPORTED_ENCRYPTION ,"unsupported encryption"}, 11389857Sobrien{0,NULL} 11489857Sobrien }; 11589857Sobrien 11689857Sobrien#endif 11789857Sobrien 11889857Sobrienvoid ERR_load_PEM_strings(void) 11989857Sobrien { 12089857Sobrien static int init=1; 12189857Sobrien 12289857Sobrien if (init) 12389857Sobrien { 12489857Sobrien init=0; 12589857Sobrien#ifndef NO_ERR 12689857Sobrien ERR_load_strings(ERR_LIB_PEM,PEM_str_functs); 12789857Sobrien ERR_load_strings(ERR_LIB_PEM,PEM_str_reasons); 12889857Sobrien#endif 12933965Sjdp 13033965Sjdp } 131218822Sdim } 13277298Sobrien