1. 17 2月, 2016 1 次提交
  2. 13 2月, 2016 1 次提交
    • R
      Better workaround for VMS getnameinfo() bug · 6faffd0a
      Richard Levitte 提交于
      The actual bug with current getnameinfo() on VMS is not that it puts
      gibberish in the service buffer, but that it doesn't touch it at all.
      The gibberish we dealt with before was simply stuff that happened to
      be on the stack.
      
      It's better to initialise the service buffer properly (with the empty
      string) and check if it's still an empty string after the
      getnameinfo() call, and fill it with the direct numerical translation
      of the raw port if that's the case.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      6faffd0a
  3. 11 2月, 2016 1 次提交
  4. 10 2月, 2016 1 次提交
  5. 09 2月, 2016 2 次提交
  6. 08 2月, 2016 1 次提交
  7. 06 2月, 2016 1 次提交
  8. 05 2月, 2016 1 次提交
  9. 04 2月, 2016 3 次提交
    • K
      Use WSAGetLastError() on windows · c86d1f19
      Kurt Roeckx 提交于
      Windows doesn't have h_error or hstrerror()
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      
      MR: #1848
      c86d1f19
    • K
      Make fallback addresses static so that we can initialize it · 37e3daf4
      Kurt Roeckx 提交于
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      
      MR: #1841
      37e3daf4
    • R
      Refactoring BIO: add wrappers around sockaddr et al · 28a0841b
      Richard Levitte 提交于
      Because different platforms have different levels of support for IPv6,
      different kinds of sockaddr variants, and some have getaddrinfo et al
      while others don't, we could end up with a mess if ifdefs, duplicate
      code and other maintainance nightmares.
      
      Instead, we're introducing wrappers around the common form for socket
      communication:
      BIO_ADDR, closely related to struct sockaddr and some of its variants.
      BIO_ADDRINFO, closely related to struct addrinfo.
      
      With that comes support routines, both convenient creators and
      accessors, plus a few utility functions:
      
      BIO_parse_hostserv, takes a string of the form host:service and
      splits it into host and service.  It checks for * in both parts, and
      converts any [ipv6-address] syntax to ust the IPv6 address.
      
      BIO_lookup, looks up information on a host.
      
      All routines handle IPv4 (AF_INET) and IPv6 (AF_INET6) addresses, and
      there is support for local sockets (AF_UNIX) as well.
      Reviewed-by: NKurt Roeckx <kurt@openssl.org>
      28a0841b