Re: PostgreSQL 7.3.3 with pgcrypto on FreeBSD 5.1 - Mailing list pgsql-bugs

From Sean Chittenden
Subject Re: PostgreSQL 7.3.3 with pgcrypto on FreeBSD 5.1
Date
Msg-id 20030804001836.GG46887@perrin.int.nxad.com
Whole thread Raw
In response to Re: PostgreSQL 7.3.3 with pgcrypto on FreeBSD 5.1  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: PostgreSQL 7.3.3 with pgcrypto on FreeBSD 5.1  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
> > Possible, but I'm a skeptical of that.  FreeBSD's openssl code
> > _should_ be stock (unless someone bungled the import) with the
> > exception of not including Win32 or other non-FreeBSD related
> > bits.  crypt() works when salted with only 2 chars, however it
> > shouldn't core with more than that...
>
> But maybe the problem is in crypt(3) and not in OpenSSL at all?  I'm
> quite willing to believe that neither Linux nor HPUX share crypt()
> source with FreeBSD...

Using the builtin crypt() solved this problem for the user though. I
wonder if the configure script isn't correctly detecting using the
builtin crypt() as opposed to the openssl version...  or visa versa.
Try applying the attached patch and seeing if that lets you reproduce
the crash.  random may still need to be silly on HPUX, I don't know if
it has a /dev/random.  -sc

--
Sean Chittenden

Attachment

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: PostgreSQL 7.3.3 with pgcrypto on FreeBSD 5.1
Next
From: Tom Lane
Date:
Subject: Re: PostgreSQL 7.3.3 with pgcrypto on FreeBSD 5.1