109a25192SPierre Pronchery /* 209a25192SPierre Pronchery * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 309a25192SPierre Pronchery * 409a25192SPierre Pronchery * Licensed under the Apache License 2.0 (the "License"). You may not use 509a25192SPierre Pronchery * this file except in compliance with the License. You can obtain a copy 609a25192SPierre Pronchery * in the file LICENSE in the source distribution or at 709a25192SPierre Pronchery * https://www.openssl.org/source/license.html 809a25192SPierre Pronchery */ 909a25192SPierre Pronchery 1009a25192SPierre Pronchery #ifndef OSSL_BIO_ADDR_H 1109a25192SPierre Pronchery #define OSSL_BIO_ADDR_H 1209a25192SPierre Pronchery 1309a25192SPierre Pronchery #include "internal/e_os.h" 1409a25192SPierre Pronchery #include "internal/e_winsock.h" 1509a25192SPierre Pronchery #include "internal/sockets.h" 1609a25192SPierre Pronchery 1709a25192SPierre Pronchery #ifndef OPENSSL_NO_SOCK 1809a25192SPierre Pronchery union bio_addr_st { 1909a25192SPierre Pronchery struct sockaddr sa; 2009a25192SPierre Pronchery #if OPENSSL_USE_IPV6 2109a25192SPierre Pronchery struct sockaddr_in6 s_in6; 2209a25192SPierre Pronchery #endif 2309a25192SPierre Pronchery struct sockaddr_in s_in; 2409a25192SPierre Pronchery #ifndef OPENSSL_NO_UNIX_SOCK 2509a25192SPierre Pronchery struct sockaddr_un s_un; 2609a25192SPierre Pronchery #endif 2709a25192SPierre Pronchery }; 2809a25192SPierre Pronchery #endif 2909a25192SPierre Pronchery 3009a25192SPierre Pronchery #endif 31