xref: /openssl/include/internal/bio_addr.h (revision 0022bc81)
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/e_winsock.h"
15 # include "internal/sockets.h"
16 
17 # ifndef OPENSSL_NO_SOCK
18 union bio_addr_st {
19     struct sockaddr sa;
20 #  if OPENSSL_USE_IPV6
21     struct sockaddr_in6 s_in6;
22 #  endif
23     struct sockaddr_in s_in;
24 #  ifndef OPENSSL_NO_UNIX_SOCK
25     struct sockaddr_un s_un;
26 #  endif
27 };
28 # endif
29 
30 #endif
31