Re: SSL (combined patches 1-4) - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: SSL (combined patches 1-4)
Date
Msg-id 200206171631.g5HGVQg09064@candle.pha.pa.us
Whole thread Raw
In response to SSL (combined patches 1-4)  (Bear Giles <bgiles@coyotesong.com>)
List pgsql-patches
I had to apply the following patch to get SSL to compile.  I changed:

    sin6->sin6_addr.in6_u.u6_addr8

to
    sin6->sin6_addr.s6_addr8

to match KAME's accessor macros.  I hope others have a matching macros
in their OS's.  This is with BSD/OS.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
Index: fe-secure.c
===================================================================
RCS file: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -c -r1.5 -r1.6
*** fe-secure.c    15 Jun 2002 22:06:09 -0000    1.5
--- fe-secure.c    17 Jun 2002 15:55:09 -0000    1.6
***************
*** 414,420 ****
          sin6 = (struct sockaddr_in6 *) &addr;
          for (s = h->h_addr_list; *s != NULL; s++)
          {
!             if (!memcmp(sin6->sin6_addr.in6_u.u6_addr8, *s, h->h_length))
                  return 0;
          }
          break;
--- 414,420 ----
          sin6 = (struct sockaddr_in6 *) &addr;
          for (s = h->h_addr_list; *s != NULL; s++)
          {
!             if (!memcmp(sin6->sin6_addr.s6_addr8, *s, h->h_length))
                  return 0;
          }
          break;

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 2nd revision of SSL patches
Next
From: Bruce Momjian
Date:
Subject: Re: Table Function (aka SRF) doc patch