sl@0: /* crypto/bio/bio_err.c */ sl@0: /* ==================================================================== sl@0: * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. sl@0: * sl@0: * Redistribution and use in source and binary forms, with or without sl@0: * modification, are permitted provided that the following conditions sl@0: * are met: sl@0: * sl@0: * 1. Redistributions of source code must retain the above copyright sl@0: * notice, this list of conditions and the following disclaimer. sl@0: * sl@0: * 2. Redistributions in binary form must reproduce the above copyright sl@0: * notice, this list of conditions and the following disclaimer in sl@0: * the documentation and/or other materials provided with the sl@0: * distribution. sl@0: * sl@0: * 3. All advertising materials mentioning features or use of this sl@0: * software must display the following acknowledgment: sl@0: * "This product includes software developed by the OpenSSL Project sl@0: * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" sl@0: * sl@0: * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to sl@0: * endorse or promote products derived from this software without sl@0: * prior written permission. For written permission, please contact sl@0: * openssl-core@OpenSSL.org. sl@0: * sl@0: * 5. Products derived from this software may not be called "OpenSSL" sl@0: * nor may "OpenSSL" appear in their names without prior written sl@0: * permission of the OpenSSL Project. sl@0: * sl@0: * 6. Redistributions of any form whatsoever must retain the following sl@0: * acknowledgment: sl@0: * "This product includes software developed by the OpenSSL Project sl@0: * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" sl@0: * sl@0: * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY sl@0: * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE sl@0: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR sl@0: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR sl@0: * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, sl@0: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT sl@0: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; sl@0: * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) sl@0: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, sl@0: * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) sl@0: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED sl@0: * OF THE POSSIBILITY OF SUCH DAMAGE. sl@0: * ==================================================================== sl@0: * sl@0: * This product includes cryptographic software written by Eric Young sl@0: * (eay@cryptsoft.com). This product includes software written by Tim sl@0: * Hudson (tjh@cryptsoft.com). sl@0: * sl@0: */ sl@0: /* sl@0: © Portions copyright (c) 2006 Nokia Corporation. All rights reserved. sl@0: */ sl@0: sl@0: sl@0: /* NOTE: this file was auto generated by the mkerr.pl script: any changes sl@0: * made to it will be overwritten when the script next updates this file, sl@0: * only reason strings will be preserved. sl@0: */ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #if (defined(SYMBIAN) && (defined(__WINSCW__) || defined(__WINS__))) sl@0: #include "libcrypto_wsd_macros.h" sl@0: #include "libcrypto_wsd.h" sl@0: #endif sl@0: sl@0: /* BEGIN ERROR CODES */ sl@0: #ifndef OPENSSL_NO_ERR sl@0: sl@0: #define ERR_FUNC(func) ERR_PACK(ERR_LIB_BIO,func,0) sl@0: #define ERR_REASON(reason) ERR_PACK(ERR_LIB_BIO,0,reason) sl@0: sl@0: #ifndef EMULATOR sl@0: static ERR_STRING_DATA BIO_str_functs[]= sl@0: { sl@0: {ERR_FUNC(BIO_F_ACPT_STATE), "ACPT_STATE"}, sl@0: {ERR_FUNC(BIO_F_BIO_ACCEPT), "BIO_accept"}, sl@0: {ERR_FUNC(BIO_F_BIO_BER_GET_HEADER), "BIO_BER_GET_HEADER"}, sl@0: {ERR_FUNC(BIO_F_BIO_CALLBACK_CTRL), "BIO_callback_ctrl"}, sl@0: {ERR_FUNC(BIO_F_BIO_CTRL), "BIO_ctrl"}, sl@0: {ERR_FUNC(BIO_F_BIO_GETHOSTBYNAME), "BIO_gethostbyname"}, sl@0: {ERR_FUNC(BIO_F_BIO_GETS), "BIO_gets"}, sl@0: {ERR_FUNC(BIO_F_BIO_GET_ACCEPT_SOCKET), "BIO_get_accept_socket"}, sl@0: {ERR_FUNC(BIO_F_BIO_GET_HOST_IP), "BIO_get_host_ip"}, sl@0: {ERR_FUNC(BIO_F_BIO_GET_PORT), "BIO_get_port"}, sl@0: {ERR_FUNC(BIO_F_BIO_MAKE_PAIR), "BIO_MAKE_PAIR"}, sl@0: {ERR_FUNC(BIO_F_BIO_NEW), "BIO_new"}, sl@0: {ERR_FUNC(BIO_F_BIO_NEW_FILE), "BIO_new_file"}, sl@0: {ERR_FUNC(BIO_F_BIO_NEW_MEM_BUF), "BIO_new_mem_buf"}, sl@0: {ERR_FUNC(BIO_F_BIO_NREAD), "BIO_nread"}, sl@0: {ERR_FUNC(BIO_F_BIO_NREAD0), "BIO_nread0"}, sl@0: {ERR_FUNC(BIO_F_BIO_NWRITE), "BIO_nwrite"}, sl@0: {ERR_FUNC(BIO_F_BIO_NWRITE0), "BIO_nwrite0"}, sl@0: {ERR_FUNC(BIO_F_BIO_PUTS), "BIO_puts"}, sl@0: {ERR_FUNC(BIO_F_BIO_READ), "BIO_read"}, sl@0: {ERR_FUNC(BIO_F_BIO_SOCK_INIT), "BIO_sock_init"}, sl@0: {ERR_FUNC(BIO_F_BIO_WRITE), "BIO_write"}, sl@0: {ERR_FUNC(BIO_F_BUFFER_CTRL), "BUFFER_CTRL"}, sl@0: {ERR_FUNC(BIO_F_CONN_CTRL), "CONN_CTRL"}, sl@0: {ERR_FUNC(BIO_F_CONN_STATE), "CONN_STATE"}, sl@0: {ERR_FUNC(BIO_F_FILE_CTRL), "FILE_CTRL"}, sl@0: {ERR_FUNC(BIO_F_FILE_READ), "FILE_READ"}, sl@0: {ERR_FUNC(BIO_F_LINEBUFFER_CTRL), "LINEBUFFER_CTRL"}, sl@0: {ERR_FUNC(BIO_F_MEM_READ), "MEM_READ"}, sl@0: {ERR_FUNC(BIO_F_MEM_WRITE), "MEM_WRITE"}, sl@0: {ERR_FUNC(BIO_F_SSL_NEW), "SSL_new"}, sl@0: {ERR_FUNC(BIO_F_WSASTARTUP), "WSASTARTUP"}, sl@0: {0,NULL} sl@0: }; sl@0: sl@0: static ERR_STRING_DATA BIO_str_reasons[]= sl@0: { sl@0: {ERR_REASON(BIO_R_ACCEPT_ERROR) ,"accept error"}, sl@0: {ERR_REASON(BIO_R_BAD_FOPEN_MODE) ,"bad fopen mode"}, sl@0: {ERR_REASON(BIO_R_BAD_HOSTNAME_LOOKUP) ,"bad hostname lookup"}, sl@0: {ERR_REASON(BIO_R_BROKEN_PIPE) ,"broken pipe"}, sl@0: {ERR_REASON(BIO_R_CONNECT_ERROR) ,"connect error"}, sl@0: {ERR_REASON(BIO_R_EOF_ON_MEMORY_BIO) ,"EOF on memory BIO"}, sl@0: {ERR_REASON(BIO_R_ERROR_SETTING_NBIO) ,"error setting nbio"}, sl@0: {ERR_REASON(BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET),"error setting nbio on accepted socket"}, sl@0: {ERR_REASON(BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET),"error setting nbio on accept socket"}, sl@0: {ERR_REASON(BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET),"gethostbyname addr is not af inet"}, sl@0: {ERR_REASON(BIO_R_INVALID_ARGUMENT) ,"invalid argument"}, sl@0: {ERR_REASON(BIO_R_INVALID_IP_ADDRESS) ,"invalid ip address"}, sl@0: {ERR_REASON(BIO_R_IN_USE) ,"in use"}, sl@0: {ERR_REASON(BIO_R_KEEPALIVE) ,"keepalive"}, sl@0: {ERR_REASON(BIO_R_NBIO_CONNECT_ERROR) ,"nbio connect error"}, sl@0: {ERR_REASON(BIO_R_NO_ACCEPT_PORT_SPECIFIED),"no accept port specified"}, sl@0: {ERR_REASON(BIO_R_NO_HOSTNAME_SPECIFIED) ,"no hostname specified"}, sl@0: {ERR_REASON(BIO_R_NO_PORT_DEFINED) ,"no port defined"}, sl@0: {ERR_REASON(BIO_R_NO_PORT_SPECIFIED) ,"no port specified"}, sl@0: {ERR_REASON(BIO_R_NO_SUCH_FILE) ,"no such file"}, sl@0: {ERR_REASON(BIO_R_NULL_PARAMETER) ,"null parameter"}, sl@0: {ERR_REASON(BIO_R_TAG_MISMATCH) ,"tag mismatch"}, sl@0: {ERR_REASON(BIO_R_UNABLE_TO_BIND_SOCKET) ,"unable to bind socket"}, sl@0: {ERR_REASON(BIO_R_UNABLE_TO_CREATE_SOCKET),"unable to create socket"}, sl@0: {ERR_REASON(BIO_R_UNABLE_TO_LISTEN_SOCKET),"unable to listen socket"}, sl@0: {ERR_REASON(BIO_R_UNINITIALIZED) ,"uninitialized"}, sl@0: {ERR_REASON(BIO_R_UNSUPPORTED_METHOD) ,"unsupported method"}, sl@0: {ERR_REASON(BIO_R_WRITE_TO_READ_ONLY_BIO),"write to read only BIO"}, sl@0: {ERR_REASON(BIO_R_WSASTARTUP) ,"WSAStartup"}, sl@0: {0,NULL} sl@0: }; sl@0: sl@0: sl@0: #else //EMULATOR sl@0: const ERR_STRING_DATA temp_BIO_str_functs[]= sl@0: { sl@0: {ERR_FUNC(BIO_F_ACPT_STATE), "ACPT_STATE"}, sl@0: {ERR_FUNC(BIO_F_BIO_ACCEPT), "BIO_accept"}, sl@0: {ERR_FUNC(BIO_F_BIO_BER_GET_HEADER), "BIO_BER_GET_HEADER"}, sl@0: {ERR_FUNC(BIO_F_BIO_CALLBACK_CTRL), "BIO_callback_ctrl"}, sl@0: {ERR_FUNC(BIO_F_BIO_CTRL), "BIO_ctrl"}, sl@0: {ERR_FUNC(BIO_F_BIO_GETHOSTBYNAME), "BIO_gethostbyname"}, sl@0: {ERR_FUNC(BIO_F_BIO_GETS), "BIO_gets"}, sl@0: {ERR_FUNC(BIO_F_BIO_GET_ACCEPT_SOCKET), "BIO_get_accept_socket"}, sl@0: {ERR_FUNC(BIO_F_BIO_GET_HOST_IP), "BIO_get_host_ip"}, sl@0: {ERR_FUNC(BIO_F_BIO_GET_PORT), "BIO_get_port"}, sl@0: {ERR_FUNC(BIO_F_BIO_MAKE_PAIR), "BIO_MAKE_PAIR"}, sl@0: {ERR_FUNC(BIO_F_BIO_NEW), "BIO_new"}, sl@0: {ERR_FUNC(BIO_F_BIO_NEW_FILE), "BIO_new_file"}, sl@0: {ERR_FUNC(BIO_F_BIO_NEW_MEM_BUF), "BIO_new_mem_buf"}, sl@0: {ERR_FUNC(BIO_F_BIO_NREAD), "BIO_nread"}, sl@0: {ERR_FUNC(BIO_F_BIO_NREAD0), "BIO_nread0"}, sl@0: {ERR_FUNC(BIO_F_BIO_NWRITE), "BIO_nwrite"}, sl@0: {ERR_FUNC(BIO_F_BIO_NWRITE0), "BIO_nwrite0"}, sl@0: {ERR_FUNC(BIO_F_BIO_PUTS), "BIO_puts"}, sl@0: {ERR_FUNC(BIO_F_BIO_READ), "BIO_read"}, sl@0: {ERR_FUNC(BIO_F_BIO_SOCK_INIT), "BIO_sock_init"}, sl@0: {ERR_FUNC(BIO_F_BIO_WRITE), "BIO_write"}, sl@0: {ERR_FUNC(BIO_F_BUFFER_CTRL), "BUFFER_CTRL"}, sl@0: {ERR_FUNC(BIO_F_CONN_CTRL), "CONN_CTRL"}, sl@0: {ERR_FUNC(BIO_F_CONN_STATE), "CONN_STATE"}, sl@0: {ERR_FUNC(BIO_F_FILE_CTRL), "FILE_CTRL"}, sl@0: {ERR_FUNC(BIO_F_FILE_READ), "FILE_READ"}, sl@0: {ERR_FUNC(BIO_F_LINEBUFFER_CTRL), "LINEBUFFER_CTRL"}, sl@0: {ERR_FUNC(BIO_F_MEM_READ), "MEM_READ"}, sl@0: {ERR_FUNC(BIO_F_MEM_WRITE), "MEM_WRITE"}, sl@0: {ERR_FUNC(BIO_F_SSL_NEW), "SSL_new"}, sl@0: {ERR_FUNC(BIO_F_WSASTARTUP), "WSASTARTUP"}, sl@0: {0,NULL} sl@0: }; sl@0: sl@0: const ERR_STRING_DATA temp_BIO_str_reasons[]= sl@0: { sl@0: {ERR_REASON(BIO_R_ACCEPT_ERROR) ,"accept error"}, sl@0: {ERR_REASON(BIO_R_BAD_FOPEN_MODE) ,"bad fopen mode"}, sl@0: {ERR_REASON(BIO_R_BAD_HOSTNAME_LOOKUP) ,"bad hostname lookup"}, sl@0: {ERR_REASON(BIO_R_BROKEN_PIPE) ,"broken pipe"}, sl@0: {ERR_REASON(BIO_R_CONNECT_ERROR) ,"connect error"}, sl@0: {ERR_REASON(BIO_R_EOF_ON_MEMORY_BIO) ,"EOF on memory BIO"}, sl@0: {ERR_REASON(BIO_R_ERROR_SETTING_NBIO) ,"error setting nbio"}, sl@0: {ERR_REASON(BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET),"error setting nbio on accepted socket"}, sl@0: {ERR_REASON(BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET),"error setting nbio on accept socket"}, sl@0: {ERR_REASON(BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET),"gethostbyname addr is not af inet"}, sl@0: {ERR_REASON(BIO_R_INVALID_ARGUMENT) ,"invalid argument"}, sl@0: {ERR_REASON(BIO_R_INVALID_IP_ADDRESS) ,"invalid ip address"}, sl@0: {ERR_REASON(BIO_R_IN_USE) ,"in use"}, sl@0: {ERR_REASON(BIO_R_KEEPALIVE) ,"keepalive"}, sl@0: {ERR_REASON(BIO_R_NBIO_CONNECT_ERROR) ,"nbio connect error"}, sl@0: {ERR_REASON(BIO_R_NO_ACCEPT_PORT_SPECIFIED),"no accept port specified"}, sl@0: {ERR_REASON(BIO_R_NO_HOSTNAME_SPECIFIED) ,"no hostname specified"}, sl@0: {ERR_REASON(BIO_R_NO_PORT_DEFINED) ,"no port defined"}, sl@0: {ERR_REASON(BIO_R_NO_PORT_SPECIFIED) ,"no port specified"}, sl@0: {ERR_REASON(BIO_R_NO_SUCH_FILE) ,"no such file"}, sl@0: {ERR_REASON(BIO_R_NULL_PARAMETER) ,"null parameter"}, sl@0: {ERR_REASON(BIO_R_TAG_MISMATCH) ,"tag mismatch"}, sl@0: {ERR_REASON(BIO_R_UNABLE_TO_BIND_SOCKET) ,"unable to bind socket"}, sl@0: {ERR_REASON(BIO_R_UNABLE_TO_CREATE_SOCKET),"unable to create socket"}, sl@0: {ERR_REASON(BIO_R_UNABLE_TO_LISTEN_SOCKET),"unable to listen socket"}, sl@0: {ERR_REASON(BIO_R_UNINITIALIZED) ,"uninitialized"}, sl@0: {ERR_REASON(BIO_R_UNSUPPORTED_METHOD) ,"unsupported method"}, sl@0: {ERR_REASON(BIO_R_WRITE_TO_READ_ONLY_BIO),"write to read only BIO"}, sl@0: {ERR_REASON(BIO_R_WSASTARTUP) ,"WSAStartup"}, sl@0: {0,NULL} sl@0: }; sl@0: GET_STATIC_ARRAY_FROM_TLS(BIO_str_functs,bio_err,ERR_STRING_DATA) sl@0: GET_STATIC_ARRAY_FROM_TLS(BIO_str_reasons,bio_err,ERR_STRING_DATA) sl@0: #define BIO_str_functs (GET_WSD_VAR_NAME(BIO_str_functs,bio_err, s)()) sl@0: #define BIO_str_reasons (GET_WSD_VAR_NAME(BIO_str_reasons,bio_err, s)()) sl@0: #endif //EMULATOR sl@0: #endif sl@0: sl@0: sl@0: sl@0: EXPORT_C void ERR_load_BIO_strings(void) sl@0: { sl@0: #ifndef OPENSSL_NO_ERR sl@0: sl@0: if (ERR_func_error_string(BIO_str_functs[0].error) == NULL) sl@0: { sl@0: ERR_load_strings(0,BIO_str_functs); sl@0: ERR_load_strings(0,BIO_str_reasons); sl@0: } sl@0: #endif sl@0: }