QUIC APL: Implement SSL_poll backend
[openssl.git] / include / internal / bio_addr.h
1 /*
2  * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 #ifndef OSSL_BIO_ADDR_H
11 # define OSSL_BIO_ADDR_H
12
13 # include "internal/e_os.h"
14 # include "internal/sockets.h"
15
16 # ifndef OPENSSL_NO_SOCK
17 union bio_addr_st {
18     struct sockaddr sa;
19 #  if OPENSSL_USE_IPV6
20     struct sockaddr_in6 s_in6;
21 #  endif
22     struct sockaddr_in s_in;
23 #  ifndef OPENSSL_NO_UNIX_SOCK
24     struct sockaddr_un s_un;
25 #  endif
26 };
27 # endif
28
29 #endif