libpq with ssl under win32

Started by Andreas Pflugalmost 23 years ago2 messagespatches
Jump to latest
#1Andreas Pflug
pgadmin@pse-consulting.de

The attached patch enables libpq to be linked with ssl support (openssl
0.9.7.b tested).
Client certificates are commented out because the implementation is *nix
specific, regarding the location resolution of the .pem files. It needs
to be discussed where these files should be located. For NT/W2K and up,
the natural way would be using GetUserProfileDirectory, but this would
exclude Win9x.

Regards,
Andreas

Attachments:

fe-secure.c.patchtext/plain; name=fe-secure.c.patchDownload+17-4
libpq-int.h.patchtext/plain; name=libpq-int.h.patchDownload+2-0
win32.mak.patchtext/plain; name=win32.mak.patchDownload+30-15
#2Bruce Momjian
bruce@momjian.us
In reply to: Andreas Pflug (#1)
Re: libpq with ssl under win32

Andreas Pflug wrote:

The attached patch enables libpq to be linked with ssl support (openssl
0.9.7.b tested).
Client certificates are commented out because the implementation is *nix
specific, regarding the location resolution of the .pem files. It needs
to be discussed where these files should be located. For NT/W2K and up,
the natural way would be using GetUserProfileDirectory, but this would
exclude Win9x.

Can't we check the OS version via the compiler? Maybe not portabily
between the various compilers supported.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073