bio_addr.h 691 B

1234567891011121314151617181920212223242526272829
  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. #ifndef OSSL_BIO_ADDR_H
  10. # define OSSL_BIO_ADDR_H
  11. # include "internal/e_os.h"
  12. # include "internal/sockets.h"
  13. # ifndef OPENSSL_NO_SOCK
  14. union bio_addr_st {
  15. struct sockaddr sa;
  16. # if OPENSSL_USE_IPV6
  17. struct sockaddr_in6 s_in6;
  18. # endif
  19. struct sockaddr_in s_in;
  20. # ifndef OPENSSL_NO_UNIX_SOCK
  21. struct sockaddr_un s_un;
  22. # endif
  23. };
  24. # endif
  25. #endif