Re: Client-side password encryption

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgadmin-hackers(at)postgresql(dot)org
Subject: Re: Client-side password encryption
Date: 2006-01-05 13:09:04
Message-ID: 43BD1A70.4060102@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Magnus Hagander wrote:
>>>The officially sanctioned function for this is now
>>
>>PQencryptPassword()
>>
>>>in libpq. Please consider using it when available.
>>
>>Ok, we'll use it ASAP. But how to detect if it's available or
>>not? Some #define PQENCRYPT_AVAILABLE 1 would be helpful.
>
>
> You're going to have to detect this at runtime, aren't you? With that,
> GetProcAddress() on win32 and whatever it's called on *nix should be the
> way to go?

We need this at compile time, to check if the prototype is present. If
it is, the function should be present in the lib we're linking to as
well. IFAIR there was consense some weeks ago that libpq should be
versioned on win32 too, so a libpq dev environment should have a
libpq.lib that references libpq-82.dll (or newer). On *ix, standard lib
versioning will do the job.

Regards,
Andreas

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2006-01-05 18:07:07 Re: Client-side password encryption
Previous Message Magnus Hagander 2006-01-05 12:23:50 Re: Client-side password encryption