1e1051a39Sopenharmony_ci/* 2e1051a39Sopenharmony_ci * Generated by util/mkerr.pl DO NOT EDIT 3e1051a39Sopenharmony_ci * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4e1051a39Sopenharmony_ci * 5e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License"). You may not use 6e1051a39Sopenharmony_ci * this file except in compliance with the License. You can obtain a copy 7e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at 8e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html 9e1051a39Sopenharmony_ci */ 10e1051a39Sopenharmony_ci 11e1051a39Sopenharmony_ci#include <openssl/err.h> 12e1051a39Sopenharmony_ci#include <openssl/bioerr.h> 13e1051a39Sopenharmony_ci#include "crypto/bioerr.h" 14e1051a39Sopenharmony_ci 15e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_ERR 16e1051a39Sopenharmony_ci 17e1051a39Sopenharmony_cistatic const ERR_STRING_DATA BIO_str_reasons[] = { 18e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_ACCEPT_ERROR), "accept error"}, 19e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET), 20e1051a39Sopenharmony_ci "addrinfo addr is not af inet"}, 21e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_AMBIGUOUS_HOST_OR_SERVICE), 22e1051a39Sopenharmony_ci "ambiguous host or service"}, 23e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_BAD_FOPEN_MODE), "bad fopen mode"}, 24e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_BROKEN_PIPE), "broken pipe"}, 25e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_CONNECT_ERROR), "connect error"}, 26e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_CONNECT_TIMEOUT), "connect timeout"}, 27e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET), 28e1051a39Sopenharmony_ci "gethostbyname addr is not af inet"}, 29e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_GETSOCKNAME_ERROR), "getsockname error"}, 30e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_GETSOCKNAME_TRUNCATED_ADDRESS), 31e1051a39Sopenharmony_ci "getsockname truncated address"}, 32e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_GETTING_SOCKTYPE), "getting socktype"}, 33e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_INVALID_ARGUMENT), "invalid argument"}, 34e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_INVALID_SOCKET), "invalid socket"}, 35e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_IN_USE), "in use"}, 36e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_LENGTH_TOO_LONG), "length too long"}, 37e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_LISTEN_V6_ONLY), "listen v6 only"}, 38e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_LOOKUP_RETURNED_NOTHING), 39e1051a39Sopenharmony_ci "lookup returned nothing"}, 40e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_MALFORMED_HOST_OR_SERVICE), 41e1051a39Sopenharmony_ci "malformed host or service"}, 42e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_NBIO_CONNECT_ERROR), "nbio connect error"}, 43e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_NO_ACCEPT_ADDR_OR_SERVICE_SPECIFIED), 44e1051a39Sopenharmony_ci "no accept addr or service specified"}, 45e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_NO_HOSTNAME_OR_SERVICE_SPECIFIED), 46e1051a39Sopenharmony_ci "no hostname or service specified"}, 47e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_NO_PORT_DEFINED), "no port defined"}, 48e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_NO_SUCH_FILE), "no such file"}, 49e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_TRANSFER_ERROR), "transfer error"}, 50e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_TRANSFER_TIMEOUT), "transfer timeout"}, 51e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_UNABLE_TO_BIND_SOCKET), 52e1051a39Sopenharmony_ci "unable to bind socket"}, 53e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_UNABLE_TO_CREATE_SOCKET), 54e1051a39Sopenharmony_ci "unable to create socket"}, 55e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_UNABLE_TO_KEEPALIVE), 56e1051a39Sopenharmony_ci "unable to keepalive"}, 57e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_UNABLE_TO_LISTEN_SOCKET), 58e1051a39Sopenharmony_ci "unable to listen socket"}, 59e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_UNABLE_TO_NODELAY), "unable to nodelay"}, 60e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_UNABLE_TO_REUSEADDR), 61e1051a39Sopenharmony_ci "unable to reuseaddr"}, 62e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_UNAVAILABLE_IP_FAMILY), 63e1051a39Sopenharmony_ci "unavailable ip family"}, 64e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_UNINITIALIZED), "uninitialized"}, 65e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_UNKNOWN_INFO_TYPE), "unknown info type"}, 66e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_UNSUPPORTED_IP_FAMILY), 67e1051a39Sopenharmony_ci "unsupported ip family"}, 68e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_UNSUPPORTED_METHOD), "unsupported method"}, 69e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_UNSUPPORTED_PROTOCOL_FAMILY), 70e1051a39Sopenharmony_ci "unsupported protocol family"}, 71e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_WRITE_TO_READ_ONLY_BIO), 72e1051a39Sopenharmony_ci "write to read only BIO"}, 73e1051a39Sopenharmony_ci {ERR_PACK(ERR_LIB_BIO, 0, BIO_R_WSASTARTUP), "WSAStartup"}, 74e1051a39Sopenharmony_ci {0, NULL} 75e1051a39Sopenharmony_ci}; 76e1051a39Sopenharmony_ci 77e1051a39Sopenharmony_ci#endif 78e1051a39Sopenharmony_ci 79e1051a39Sopenharmony_ciint ossl_err_load_BIO_strings(void) 80e1051a39Sopenharmony_ci{ 81e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_ERR 82e1051a39Sopenharmony_ci if (ERR_reason_error_string(BIO_str_reasons[0].error) == NULL) 83e1051a39Sopenharmony_ci ERR_load_strings_const(BIO_str_reasons); 84e1051a39Sopenharmony_ci#endif 85e1051a39Sopenharmony_ci return 1; 86e1051a39Sopenharmony_ci} 87