> > 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?
//Magnus